rpm supports doing multiple rpm files in one command line:
rpm -Uvh kde-2.2* glibc-* imlib-*
When checking for dependancies it will see if what it is installing will meet
the dependencies of the other rpms.
> > I upgraded to KDE 2.2 on a RedHat 7.1 system, and it wasn't fun. Here's my
> > advice: Download every stinkin' .rpm that is listed (even the "add-ons")
> > for your platform. Then run this command:
> >
> > for file in *rpm; do rpm -U --nodeps $file; done
> >
> > If you actually try to workout all the dependencies in their correct order,
> > you'll go insane.
> > Anyway, check it out. KDE is really looking nice now.
> > ~M