How to Use RPM to Effectively Manage Your Computer
RPM Package Manager (originally Red Hat Package Manager, abbreviated RPM) is
a package management system. The name RPM refers to two things: a software
package file format, and a free software tool which installs, updates, uninstalls, verifies
and queries software packaged in this format. RPM was intended primarily for Linux
distributions; the file format RPM is the baseline package format of the Linux Standard
RPM is Package Manager for
and many other Linux distributions
Install RPM package / file
To install a new package use command rpm – I packagename.rpm
rpm -i — What does it do?
Of the many things RPM can do, probably the one that people think of first is the installation of software. As mentioned earlier, installing new software is a complex, error-prone job. RPM turns that process into a single command.
rpm -i (–install is equivalent) installs software that’s been packaged into an RPM package file. It does this by:
Performing dependency checks.
Checking for conflicts.
Performing any tasks required before the install.
Deciding what to do with config files.
Unpacking files from the package and putting them in the proper place.
Performing any tasks required after the install.
Keeping track of what it did.
Let’s go through each of these steps in a bit more detail.
Upgrade a package /file To upgrade an existing package use the command : rpm -U packagename.rpm
rpm -U — What Does it Do?
If there was one RPM command that could win over friends, it would be RPM’s upgrade command. After all, anyone who has ever tried to install a newer version of any software knows what a traumatic experience it can be. With RPM, though, this process is reduced to a single command: rpm -U. The rpm -U command (–upgrade is equivalent) performs two distinct operations:
Installs the desired package.
Erases all older versions of the package, if any exist.
To erase a package rpm -e packagename.rpm
rpm -e — What Does it Do?
The rpm -e command (–erase is equivalent) removes, or erases, one or more
packages from the system.
RPM performs a series of steps whenever it erases a package:
It checks the RPM database to make sure that no other packages depend on the package being erased.
It executes a pre-uninstall script (if one exists).
It checks to see if any of the package’s config files have been modified. If so, it saves copies of them.
It reviews the RPM database to find every file listed as being part of the package, and if they do not belong to another package, deletes them.
It executes a post-uninstall script (if one exists).
It removes all traces of the package (and the files belonging to it) from the RPM database.
That’s quite a bit of activity for a single command. No wonder RPM can be such a time-saver!
Verify a package in your system use the command rpm -V packagename.rpm
rpm -V — What Does it Do?
The command rpm -V (The options -y and –verify are equivalent) verifies an installed
package that does it verify ?
every file installed by RPM is examined. No less than nine different attributes of each file can be checked. Here is the list of attributes:
Symbolic Link String
Related Articles By Tags :