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 :
Like us on Facebook
We need your assistance to stay live
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- News from Kaspersky Lab: Tor is protecting criminals : In a previous article I wrote a bit about Tor. Free browser, relays bouncing your IP all over the ...1 comment |
- Grive: An Unofficial, Open Source Linux Client For Google Drive : A couple of months before, we have featured a Linux client for Google Drive named Syncdrive, which w...0 comments |
- How To Access A LVM Drive / Partition in Ubuntu : Hey Guys, I installed Fedora on an external drive (LVM) recently and was trying to access it from U...0 comments |
- Adding and Deleting Cluster Resources (corosync pacemaker) : In our previous tutorial, we have shown you how to install corosync and pacemaker. We will show y...0 comments |
- Install Satis On Ubuntu Sever 13.10/13.04 : Satis is a simple static composer repository generator. It is used in any composer.json file as i...0 comments |
- Canonical Works with Cisco!
- Android Intercom: An Excellent Intercom App For Bikers Or Hiking Fans
- Install Google Talk Plugin In Fedora 20
- Adding and Deleting Cluster Resources (corosync pacemaker)
- News from Kaspersky Lab: Tor is protecting criminals
- Install Satis On Ubuntu Sever 13.10/13.04
- How To Access A LVM Drive / Partition in Ubuntu
- How To Disable Remember Open Files in Sublime Text 3
- Install Sublime Text 3 In Fedora Easily With Fedy
- Grive: An Unofficial, Open Source Linux Client For Google Drive
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .