LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2004, 04:53 PM   #1
miskiw
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Rep: Reputation: 0
RPM Files.... They just don't like me!


Well I am obviously new to linux and I am having trouble installing things with rpm packages...

I have tried the following to install a rpm package...
logged in as root.... tried to just double click on the file in my gnome gui... the "installer" opened when I did this... and some files would just kinda start up then close on me.. but some would let me hit continue to fully install the package (I don't know why some install and some don't)
I think tried to go terminal based... I went to the directory where the rpm's were located.. and typed : rpm -U filename.rpm ...... and the files just hang... then I tried: rpm -Uvh filename.rpm so I could see some progress... but nothing comes up... the system just "hangs"... (it doesn't go back to the prompt).. (I let it run for a while to)


am I doing something fundamentally wrong here??

I am using Red Hat 9 with all my updates installed (from the update utility)....


any help would be great


thanks
 
Old 03-25-2004, 04:56 PM   #2
madcat1117
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
I had to use -> rpm -ivh package-name-here.rpm <--- from the terminal (logged in as root) to get my linux system to install anything
 
Old 03-25-2004, 04:57 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hmm, you *might* have a stale lock file stuck in the rpm system. try the console command again, but add a couple of extra -v's to see what's really going on. if i remember vaguely correctly, the lock file should be in /var/db/rpm/ or along those lines.
 
Old 03-25-2004, 04:59 PM   #4
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
Which distro are you using?
 
Old 03-25-2004, 05:13 PM   #5
miskiw
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Original Poster
Rep: Reputation: 0
red hat ....9
 
Old 03-25-2004, 05:19 PM   #6
miskiw
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by acid_kewpie
hmm, you *might* have a stale lock file stuck in the rpm system. try the console command again, but add a couple of extra -v's to see what's really going on. if i remember vaguely correctly, the lock file should be in /var/db/rpm/ or along those lines.
I don't actually seem to have any directories or files in my /var/db/ directory...
 
Old 03-25-2004, 05:20 PM   #7
miskiw
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by madcat1117
I had to use -> rpm -ivh package-name-here.rpm <--- from the terminal (logged in as root) to get my linux system to install anything
this seems to be working for me.... I though -U would work no matter what.. I guess if I don't have the file Ineed a good -i or nothing haha

thanks
 
Old 03-25-2004, 05:22 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
try /var/lib/rpm
 
Old 03-25-2004, 05:22 PM   #9
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
I recommend using apt

http://freshrpms.net/apt/

It is similiar to the Debian tool and will pretty much keep you out of rpm dependency hell.
 
Old 03-25-2004, 08:04 PM   #10
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
yeah apt is really easy to use u just type apt-get install <package name> and it will download it from the net and its dependancies also and install it for u.

to make things even easier there is a gui for it called synaptic

http://www.nongnu.org/synaptic/
 
Old 04-30-2004, 05:05 PM   #11
arsham
Member
 
Registered: Mar 2004
Location: London
Distribution: Arch Linux, Debian
Posts: 184

Rep: Reputation: 30
hi
I had no problems for a while
but about a week , I have the same problem
the only solution I found was to restart the computer!! even logging out/in didn't work to prevent rpm for hanging
each time it goes mad , just a kill -s KILL helps , and after that , a restart!!


anyone found a way?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 05:24 PM
preserve configuration files during RPM upgrade (rpm -U) charrua Red Hat 3 03-14-2004 01:18 PM
How do you install tar/gz files, and rpm files? Fear58 Linux - Software 6 02-14-2004 04:35 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM
Building RPM files from TAR files parle Linux - Software 3 05-05-2002 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration