Installing RPM's using the Redhat Package Manager in Linux

By: Jason Lambert Emailed: 1642 times Printed: 2113 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Redhat RPM's offer a flexable and easy method to install new software. Software installed from an RPM package differs from compiling from source in a few ways, but the most important one of all is the software is already compiled for you. Essentially all you are doing is extracting the pre-built binaries and copying them to their pre-selected destination. RPM's are files that have a ".rpm" extenstion. The good point about RPM's is installation of new software, and maintaining the software currently installed is much easier than doing so for individual packages compiled from source. The downside to RPM's is that you dont have as much choice about where software is installed on your system, how it is compiled, and how it is configured. 

Using the RPM system is fairly straight forward. To install a package, you can use the following command:
rpm -i <filename.rpm> When using rpm, you must be logged in as the root user. The "-i" flag in the above command means "install".

Un installing a package is just as easy:
rpm -e <package> The "-e" switch used here means "erase" (un install). 
Note that <package> is different from <filename> used when installing.

For example, if you are installing an application called "mysoftware", you may use a command like "rpm -i mysoftware-1.0.2-i386.rpm" to install "mysoftware", when removing we dont follow the filename for installation, but rather the name of the software itself.

For further uses of RPM, please use "rpm --help" and "man rpm". Also see this page, which has some fairly useful information.

If you need to find & download the RPM file for a piece of software, I recommend using 
RPM Find and RPM Pbone Search Note that not all applications are available as RPM's, in these cases you will need to compile the software from source.


Linux Home | All Linux Tutorials | Latest Linux Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Jason Lambert
Installing using Debian apt-get in Linux
Installing RPM's using the Redhat Package Manager in Linux
Compiling and Installing software from source in Linux

More Tutorials in Linux
smskannel SMS gateway run in background
Running jar files in background in ssh window
Could not open '': No such file or directory at lib/ExtUtils/MM_Unix.pm line 2697
Can't locate ExtUtils/MakeMaker.pm in @INC ...
bash: make: command not found
apxs: command not found
bash: svn: command not found
make: Nothing to be done for `all'.
How to burn your CD / DVD ISO image using Media Creator (Adaptec/Roxio) on Windows
How to burn your CD / DVD ISO image using Nero Burning ROM (Ahead Software) on Windows
How to burn your CD / DVD ISO image using Nero Express (Ahead Software) on Windows
How to burn your CD / DVD ISO image using NISO Recorder V2 Power Toy on Windows
How to burn your CD / DVD ISO image using k3b on CentOS
Compiling and Installing software from source in Linux
Installing RPM's using the Redhat Package Manager in Linux

More Latest News
Most Viewed Articles (in Linux )
Sort numbers using arrays in Shell Script
Nested if-else-fi in Linux Shell Script
smskannel SMS gateway run in background
for loop in Linux Shell Script
sum of all digits in a given number using Shell Script
Formating text in Shell Script
How to burn your CD / DVD ISO image using Nero Express (Ahead Software) on Windows
Nested for loop in Linux Shell Script
Check for leap year in Shell Script
while loop in Linux Shell Script
How to use Linux?
How to define User defined variables in Linux Shell Script
Rules for Naming variable names in Linux Shell Script
Filter in Linux
Download Linux. Which linux and where?
Most Emailed Articles (in Linux)
bash: make: command not found
How to use Linux?
Input - Output redirection in Linux Shell Script
How to burn your CD / DVD ISO image using NISO Recorder V2 Power Toy on Windows
smskannel SMS gateway run in background
sum of all digits in a given number using Shell Script
Command line arguments in Shell Script
Could not open '': No such file or directory at lib/ExtUtils/MM_Unix.pm line 2697
How to write your first Shell Script in linux?
Variables in Linux Shell Script
Exit Status in Linux Shell Script
Download Linux. Which linux and where?
if...else...fi in Linux Shell Script
getopts tutorial in Shell Script
How to burn your CD / DVD ISO image using Nero Burning ROM (Ahead Software) on Windows