For installing I find that yum works better than the rest (except apt)
Quick for RPM itself:
You can install an RPM using this command
rpm -Uvh <package>
U updates and installs if there is nothing to update. In the package variable you can put the whole URL to the rpm and rpm will download and install it for you.
rpm won't resolve dependancies for you. yum or apt will.
I suggest adding these entries to /etc/yum.conf:
[freshrpms]
name=Fedora Linux $releasever - $basearch - freshrpms
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
[newrpms.sunsite.dk]
name=Fedora Core 2 NewRPMS.sunsite.dk
baseurl=http://newrpms.sunsite.dk/apt/redhat/en/i386/fc2
[dag]
name=Dag RPM Repository for Fedora Core 2
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag
[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=http://dries.studentenweb.org/yum/fedora/linux/$releasever/$basearch/dries
Don't need to edit anything just add them. (There are equivlent entries for apt but I use yum exclusively so I only have them on hand)
Once you have your yum.conf editted you can then run:
yum -y check-update
-y tells yum to say yes to all questions.
That will update your headers and allow you to dload the packages from those sites.
yum -y update
That will update your distro and any 3rd party apps installed
yum -y install <package>
That will install any package listed.
To get a list of available packages
yum list > packages.list
That will create a file called packages.list (edittable in any text editor) in your current dir with a list of all installable packages.
yum list install
That will list all packages installed.
I use yum instead of up2date or apt to keep my FC2 updated and to install new packages.
I haven't had any problems using yum at all except to upgrade php and thats because php-mmcache hasn't been packaged as an update yet.
Since I spend more time configuring RH boxes remotely I have created this simple menu script that will run in the bash shell for using yum and some RPM functions.
http://5150wtwm.com/yummenu-1.25.tar.gz
Depending on the function it may be a little buggy. Like installing yum or rpm if you don't have them (I haven't been able to test it yet). It also includes my yum.conf for RH9 anf FC2.