How to install .rpm files in Linux?

  • hijibiji
  • Born
  • Born
  • hijibiji
  • Posts: 1

Post 3+ Months Ago

I have Mandrake Linux and I am a new user of Linux. I am facing lots of problem installing software packages in Linux, especially .rpm files.

Can anyone help me out?
  • Anonymous_coward
  • Student
  • Student
  • Anonymous_coward
  • Posts: 67
  • Loc: A Cold Wet England

Post 3+ Months Ago

Here is what I learned and wrote down to be the standard install routines for rpm and tar.gz files. You can find out what the switches mean by executing the following from the command line (CLI):

man rpm
rpm --help

man tar
tar --help

Install a RPM package


Code: [ Select ]
rpm –ivh packagename.rpm


Upgrade a RPM package


Code: [ Select ]
rpm –Uvh packagename.rpm


Verify a RPM package was installed


Code: [ Select ]
rpm -qa | grep packagename
locate packagename
  1. rpm -qa | grep packagename
  2. locate packagename


Create a tar file


Code: [ Select ]
tar –cvf myfiles.tar mydir/


Create a tar file gzipped


Similar to above, but add a z for creating .tgz (.tar.gz) files)
Code: [ Select ]
tar –cvzf myfiles.tgz mydir/


Standard install from source


A common way to install software from source will be done similarly to the below:
Code: [ Select ]
tar –xvzf Apackage.tar.gz
cd Apackage
./configure
make
make install
  1. tar –xvzf Apackage.tar.gz
  2. cd Apackage
  3. ./configure
  4. make
  5. make install
  • pan
  • Born
  • Born
  • pan
  • Posts: 2
  • Loc: New York

Post 3+ Months Ago

Chris,
I tried to install and rpm and I got the following:

Code: [ Select ]
[root@localhost RPMS]# rpm -ivh linuxwacom-0.6.6-5.i386.rpm
warning: waiting for transaction lock on /var/lib/rpm/__db.000
Preparing...        ########################################### [100%]
  1:linuxwacom       ########################################### [100%]
  1. [root@localhost RPMS]# rpm -ivh linuxwacom-0.6.6-5.i386.rpm
  2. warning: waiting for transaction lock on /var/lib/rpm/__db.000
  3. Preparing...        ########################################### [100%]
  4.   1:linuxwacom       ########################################### [100%]


How can I check whether the rpm was actually installed and where?

Thanks
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2515
  • Loc: /usr/src/MI

Post 3+ Months Ago

Looks like the original answer was updated to include information on how to verify that the RPM file was indeed installed. Was also answered over at Where did rpm install go?

Some other related RPM links on Ozzu:

1. Removing RPMs
2. A few questions to handling RPM Files
3. Can anyone tell me where can I find "rpm" tool..
4. How to install .rpm from other location?
  • Bamini
  • Born
  • Born
  • Bamini
  • Posts: 4
  • Loc: India

Post 3+ Months Ago

Try this command to figure out if the RPM was actually installed:

Code: [ Select ]
rpm -qa <rpm name>


This must match the exact RPM name. If you don't know the exact RPM name, for example if the actual RPM name is:

hotrod-1.0-1.i386.rpm

You can find it by running this command:

Code: [ Select ]
rpm -qa | grep hotrod


This will list out all the installed rpms and filter out the result to only show the ones with the word hotrod in it.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 24 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2015. Ozzu® is a registered trademark of Unmelted, LLC.