SBDavid
May 4th, 2009
May 4th, 2009
Administering RPM based distro
Description
rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages. A package consists of an archive of files and meta-data used to install and erase the archive files.
RPM Commands:
- To install a RPM package.
-
rpm -ivh elinks.rpm
- To uninstall a RPM package.
-
rpm -e elinks.rpm
- To upgrade a RPM package. RPM automatically uninstall the old version of the foo package and Install the new package.
-
rpm -Uvh elinks.rpm
- To query all installed packages.
-
rpm -qa
- To query a RPM package.
-
rpm -q elinks
- To display package information.
-
rpm -qi elinks
- To list files in installed package.
-
rpm -ql elinks
- To find out which package owns a file?
-
rpm -qf /usr/bin/elinks
- How to find out the list files in RPM file.
-
rpm -qpl elinks.rpm
- To verify an installed package.
-
rpm –verify elinks
Note:
–replacefiles
Install the packages even if they replace files from other, already installed, packages.
–replacepkgs
Install the packages even if some of them are already installed on this system.
–test
Do not install the package, simply check for and report potential conflicts.