Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-01-2004, 07:38 PM   #1
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Rep: Reputation: 30
Can't install rpm's!!!

I've read that i cqn install a rpm like this:

Run Program --> rpm -Uvh <...> or rpm - Ivh <...> for upgrading or installing

unfortunatelly nothing of these 2 work! When i click run nothing seems to happen. When i run the same command i expetcted , if everything went ok, to get a command that the package is already installed but i don't!

I use the red hat linux 9

A!Also i get a kernel panic at startup when the system loads cups (a printing spooler) . Any ideas???
Old 01-01-2004, 07:45 PM   #2
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
hmmmm. First, make sure that you are root. Only root can install and remove packages. Your prompt tells you if you are either root or not, eg:

1 - bash-2.5b$
2 - bash-2.5b#

At the case 1, you are a regular user. The dollar symbol tells it. The case 2 you are root. To become root, if you didn't know, type su

Ok, now installing the packages. You are using wrong commands. Linux is a case sensitive OS, unlike windblows.

rpm -ivh <name or the package.rpm>

is different of

rpm -Ivh <name of the package.rpm>

You can only use rpm- Uvh if a package is already installed and you want to Upgrade it. The letters means:

i = install
v = verbose
h = hash (to show ### hashes while installing)
U = update.

Tell me if it works and welcome to and a Happy New Year!

Last edited by Mega Man X; 01-01-2004 at 07:46 PM.
Old 01-02-2004, 04:09 AM   #3
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Original Poster
Rep: Reputation: 30
I went to Run Program runned bash (in terminal) and choose to rpm -Uvh root/up2date- . I get the message "up2date = 3.1.23 is needed by (installed) up2date-gnome-3.1.23-1"

Any ideas?

P.S. I have double clicked the above package quite a few times. Could that be the problem?
Old 01-02-2004, 06:58 AM   #4
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Rep: Reputation: 15
I'm not familiar with RedHat (which uses Up2date, I believe) but it sounds like a dependency problem... You are trying to install something that needs another program to run. Find the earlier program, install it, and you *should* be able to install the second program.

This is known as dependency hell, and it's what stinks about rpms... Sometimes you need to install a whole slew of stuff just to get one application to work.

Old 01-02-2004, 10:20 AM   #5
Registered: Sep 2003
Location: Malaysia
Distribution: Slackware 9.1
Posts: 145

Rep: Reputation: 15
You'll need to use apt-get if you're on Red Hat. Not sure where you can find it, though, nor do I have any information about it.

However, on Mandrake, I just use rpm -Uvh with no problems whatsoever. It's actually better, since even if the package is already installed, you don't have to retype the command again and change the i flag to the U flag.
Old 01-02-2004, 10:20 AM   #6
Registered: Oct 2003
Posts: 64

Rep: Reputation: 15
Braveheart, I agree with hindenbergbaby, use up2date (you can get a free subscription for one machine, or you could as of september of 2003).
Once you have updated with up2date, then you can consider using rpms to get things that aren't yet supported by RH.
Old 01-02-2004, 10:28 AM   #7
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Braveheart, the way to run the up2date rpms is: rpm -Uvh up2date- up2date<whatever 2nd rpm is>.rpm

Both on one line, that stops one rpm from asking for the other rpm. Bearing in mind that RH9 is going end of life some time this year, I don't know for how long you'll be able to continue using up2date. Probably worth your while to track down apt4rpm and install that.
Old 01-02-2004, 05:20 PM   #8
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Thanks a lot guys!U sure do helped me a lot.I'll follow your advise and see what happens.

Now I would like some help with my other problem : cups.
Whenever my system boots it crashes(kernel panic) when it loads cups (a print spooler as far as I know).Now why?Could it be my mobo (asus p4g8x)?Do i need to change any setting from my bios? Thanks anyway!
Old 01-02-2004, 05:25 PM   #9
Registered: Jan 2004
Location: Greece!
Distribution: Ubuntu 9.10
Posts: 633
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Hey I fixed the prob i had with the rpms!I used the --force switch and it worked fine!(i also before installed apr of course!)

Any help now about the cups problem?


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are source RPM's and binary RPM's installed the same way? Simon Adebisi Linux - Software 3 06-28-2005 03:45 AM
RPM's won't install Hoops66 Red Hat 2 10-16-2003 04:15 PM
RPM's won't install DigiDave Linux - Newbie 10 09-29-2003 05:48 AM
Can't install RPM's kronchev Linux - Software 1 07-30-2003 09:05 AM
rpm's won't install -- help drumma64 Linux - Software 5 06-05-2003 08:02 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:12 PM.

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