Saturday, 24 August 2013

RPM Package administration

RPM Package administration

The RPM Package Manager (RPM) is an open packaging system, which runs on Red Hat Enterprise Linux as well as other Linux and UNIX systems.The name RPM variously refers to the .rpm file format, files in this format, software packaged in such files, and the package manager itself.

Here I  am going to discuss about simple and straight forward commands related to rpms installations and un-installations.

Package Manager

1) Installing 

To Installing rpm package
rpm –ivh package-x.x-x.rpm
i=install v=verbose h=shows progress

2) Updating

For  updating a package (keeps configuration files for packages already installed)
rpm –ivh package-x.x-x.rpm

3) Verify that the package in an rpm is installed

  rpm –Vp package-x.x-x.rpm

4) Uninstall a package 

 rpm –e package or rpm –e package-x.x-x

RPM Queries

Display version of a package that is installed rpm –q package
Display info about package that owns a file (must specify absolute pathname of file) rpm –qf /sbin/fdisk
Display info about all installed packages rpm –qa
Display info about package in a rpm file rpm –qip package-x.x-x.rpm
Displays info about an installed package rpm –qi package
Display all the files installed by a package rpm –ql package
Display config. files installed by a package rpm –qc package
Display documentation installed by a package rpm –qd package
Displays the state of the files installed by a package (normal, not installed or replaced) rpm –qs package

0 blogger-disqus:

Post a Comment