how to install .rpm files in linux?

  • hijibiji
  • Born
  • Born
  • No Avatar
  • Joined: Sep 28, 2004
  • Posts: 1
  • Status: Offline

Post September 28th, 2004, 10:30 pm

hi
i have mandrake linux 10 and as i am a new user of linux ,facing lots of problem regarding installation softwares in linux especially .rpm files.
can anyone help me out ?. :?: .please reply..
regards,
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 28th, 2004, 10:30 pm

  • Daemonguy
  • Moderator
  • Mastermind
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2486
  • Loc: Somewhere outside the box in RTP, NC.
  • Status: Offline

Post September 29th, 2004, 6:12 am

Type the following on the command line;

man rpm

That should give you a nice little manual page about the rpm command.

Cheers.
"It's always a long day, 86,400 won't fit into a short."
  • Anonymous_coward
  • Student
  • Student
  • No Avatar
  • Joined: Aug 05, 2004
  • Posts: 68
  • Loc: A Cold Wet England
  • Status: Offline

Post September 29th, 2004, 6:15 am

here's what I learnt and wrote down to be the standard install routines for rpm and tar.gz files.
you can find out what the switches mean by doing a rpm --help or tar --help from the command line.

Install a package
rpm –ivh packagename
upgrade a package
rpm –Uvh packagename

create a tar file
tar –cvf myfiles.tar mydir/
(add z if you are dealing with or creating .tgz (.tar.gz) files)

standard install from source
tar –xvzf Apackage.tar.gz
cd Apackage
./configure
make
make install


cheers

Chris
  • Daemonguy
  • Moderator
  • Mastermind
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2486
  • Loc: Somewhere outside the box in RTP, NC.
  • Status: Offline

Post September 29th, 2004, 6:23 am

Sigh.

I thought it might be important for this person to understand the flags and their use, and not just be fed the answer.
My bad I guess.

Cheers.
"It's always a long day, 86,400 won't fit into a short."
  • Anonymous_coward
  • Student
  • Student
  • No Avatar
  • Joined: Aug 05, 2004
  • Posts: 68
  • Loc: A Cold Wet England
  • Status: Offline

Post September 29th, 2004, 6:52 am

sorry did'nt see your response before I posted mine, that said its probably the one area where I almost never vary the command syntax, so I just cut and pasted. I can see your point though and probably would'nt do the same for an rm question !

Chris
  • pan
  • Born
  • Born
  • No Avatar
  • Joined: Mar 06, 2007
  • Posts: 2
  • Loc: New York
  • Status: Offline

Post March 6th, 2007, 4:19 pm

Anonymous_coward wrote:
here's what I learnt and wrote down to be the standard install routines for rpm and tar.gz files.
you can find out what the switches mean by doing a rpm --help or tar --help from the command line.

Install a package
rpm –ivh packagename
upgrade a package
rpm –Uvh packagename

create a tar file
tar –cvf myfiles.tar mydir/
(add z if you are dealing with or creating .tgz (.tar.gz) files)

standard install from source
tar –xvzf Apackage.tar.gz
cd Apackage
./configure
make
make install


cheers

Chris


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 wether the rpm was actually installed and where?

Thanks

Post March 7th, 2007, 6:32 am

pan wrote:
Anonymous_coward wrote:
here's what I learnt and wrote down to be the standard install routines for rpm and tar.gz files.
you can find out what the switches mean by doing a rpm --help or tar --help from the command line.

Install a package
rpm –ivh packagename
upgrade a package
rpm –Uvh packagename

create a tar file
tar –cvf myfiles.tar mydir/
(add z if you are dealing with or creating .tgz (.tar.gz) files)

standard install from source
tar –xvzf Apackage.tar.gz
cd Apackage
./configure
make
make install


cheers

Chris


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 wether the rpm was actually installed and where?

Thanks



Answered here
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • Bamini
  • Born
  • Born
  • No Avatar
  • Joined: Jul 16, 2007
  • Posts: 4
  • Loc: India
  • Status: Offline

Post July 17th, 2007, 3:12 am

Try this command !

rpm -qa <rpm name> or if u don't know the exact rpm name
for examble if its hotrod-1.0-1.i386.rpm u can give as
rpm -qa | grep hotrod
this will list out all the installed rpm's.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 87 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
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.