HI

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?

add a comment
0

4 Answers

  • Votes
  • Oldest
  • Latest
AC

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

rpm –ivh packagename.rpm

Upgrade a RPM package

rpm –Uvh packagename.rpm

Verify a RPM package was installed

rpm -qa | grep packagename
locate packagename

Create a tar file

tar –cvf myfiles.tar mydir/

Create a tar file gzipped

Similar to above, but add a z for creating .tgz (.tar.gz) files)

tar –cvzf myfiles.tgz mydir/

Standard install from source

A common way to install software from source will be done similarly to the below:

tar –xvzf Apackage.tar.gz
cd Apackage
./configure
make
make install
add a comment
1
PA

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

[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%]

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

Thanks

add a comment
0
BA

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

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:

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.

add a comment
0