RPM Package Management Utility

RPM full form = Red Hat's Package Manager, and this is a powerful software manager which can install, remove, query and verify the software on a system. To execute the RPM application you need to be root user. Following are the common commands associated with RPM package managemnt utility.

1). "rpm -ivh filename.rpm" -> This commands install RPM package or packages and then provide a detailed output on what was accomplished. The -ivh parameters identify that package should be :-

i -> installed.
v -> provide verbose output.
h -> and display hashes.

2). "rpm -qpi filename.rpm" -> This commands read the content of the RPM file without installing the actual RPM and provides information about package. The "-qpi" parameters provide following functionality:-

q -> query to perform.
p -> yet to be installed package or without preinstalling package.
i -> display the information that the package contains.

ok so you might have noticed/observed we have "i" command in both the (1) & (2) function, and both of them has different functionality. So the theory in this is, whenever "i" comes with dashes infront like "-i" than this defines the function as install property, and when it comes @ 2nd or 3rd place or non-1st place than "i" has the property of providing information. :)

3). "rpm -qpl filename.rpm" -> As the above command was giving the information, similarily this commands lists the file that package contains, so all the parameter meanings are same except we have used here "l" (l=L lower case) which means list all package instead of earlier used "i" which function was to give information of files.

4). "rpm -gf filename" -> This command displays the name of the ".rpm" package to which the file "filename" belongs. This is useful command if the origianl RPM package is unknwon and there is no need to re-install the application.

5). "rpm -e packagename" -> This command uninstalls the RPM package name "packagename". The packagename is same name as the origianal RPM package installed but without the dash and version number or ".rpm" extension.

All the above commands under RPM package manager utility were basic commands to start with. More will be put on users demand.


Loading ...

Related Results :

  1. RPM Package Management Utility
Note :
  • Related Posts are generally User Blog posts.
  • or Other tutorials from other networks of w3clan.com.
  • Any registered user can create related posts based on search term tags.

About the Author