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
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 |
- Is Ubuntu Going To Replace Windows XP In South Korea? : As we all know the Windows XP apocalypse is approaching gradually and Windows XP is still one of Mic...1 comment |
- How To Download Videos From Youtube With ClipGrab : I have explained to you guys how to download youtube videos from Linux with the youtube-dl tool, but...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- DNS Server Installation Step by Step Using CentOS 6.5/6.4/6.3 : DNS, Domain Name System, translates hostnames or URLs into IP addresses. For example if we type www....1 comment |
- Check System Information With Hardinfo
- Pandora FMS – An Universal Monitoring System For Your Organization
- How To Fix “google-chrome-stable depends on libxss1″ error
- Is Ubuntu Going To Replace Windows XP In South Korea?
- Fedora 20 “Heisenbug” Officially Released!
- How To Download Videos From Youtube With ClipGrab
- Fix “W: ubuntu_dists_saucy_main_binary-amd64_Packages”
- How To Fix “E: Unable to locate Ubuntu-restricted-extras”
- How To Install KeePassx 2.0 Alpha 4 In Ubuntu
- Add Package Management Tool On FreeBSD 10
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .