Set of binary files, which are compiled programs. This is similar to add/remove programs in windows. RPM is used to manage installation packages including installation and un-installation.
The database that contains information of all rpms is stored in /var/lib/rpm/.
# rpm -ivh : i = To install a package.
# rpm -e <rpm’s base=”” name=””> : to remove an rpm.
# rpm -q <rpm’s base=”” name=””> : query an rpm
# rpm -qa : Query all rpms
# rpm -qa | grep ldap : List all rpms installed that had the word ldap in it
# rpm -qf /bin/cat : This will display the name of rpm associated with cat.
# rpm -force coreutils-5.2.1-31.i386.rpm : This will erase the old coreutils rpm and install the new one.
# rpm -ql coreutils : This will list all the files that was installed by this rpm.
# rpm httpd.rpm –aid : This will install the httpd rpm along with its dependencies.
# rpm -qi coreutils : Information of am rpm including manufacturer, developer, etc
Rpmdb-redhat is the rpm that contains all the dependencies of rpm
# rpm -qpi zsh-4.2.rpm : View information of a package before installation
# rpm -qc httpd-3.rpm : List the configuration files of the rpm
# rpm -V httpd : This will check the default files installed by the rpm and display any missing files.
# rpm -qR vsftpd : Display all the dependencies of a package.
# rpm -Uvh vsftpd : Upgrade am rpm. Do not use this to upgrade the kernal. This will uninstall the old kernal and install a new one. It is always good to keep the old one too till the functionality of the new kernal is tested.
# rpm -q : This will display the scripts used at the time of installation.