LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 05: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, 05: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, 05:57 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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, 05: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, 06:13 PM   #5
miskiw
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Original Poster
Rep: Reputation: 0
red hat ....9
 
Old 03-25-2004, 06: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, 06: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, 06:22 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
try /var/lib/rpm
 
Old 03-25-2004, 06: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: 46
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, 09: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, 06: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:24 PM
preserve configuration files during RPM upgrade (rpm -U) charrua Red Hat 3 03-14-2004 02:18 PM
How do you install tar/gz files, and rpm files? Fear58 Linux - Software 6 02-14-2004 05:35 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 07:12 PM
Building RPM files from TAR files parle Linux - Software 3 05-06-2002 12:02 AM

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

All times are GMT -5. The time now is 08:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration