LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2003, 07:59 AM   #1
digitized_funk
Member
 
Registered: Sep 2002
Location: Australia
Distribution: Suse 8.0
Posts: 50

Rep: Reputation: 15
right way to install rpm software?


I am trying to install kdevelop that I downloaded from kdevelop.org. I use the command rpm -U rpmname.rpm. And I get greeted with a list of dependencies. So I try to find these rpm's and add them to the command line, these in turn introduce new dependencies, ad near infinitum. This is really, really frustrating, it's taken up to 4 hours trying to install 1 rpm and I still can't install it. So incredibly frustrating.

Is there an easier way to install software than rpm -U?

How would a linux expert go about installing kdevelop 3.0 alpha?

cheers

Rich.


oh my distro is Suse 8.0
 
Old 08-02-2003, 08:38 AM   #2
Tesl
Member
 
Registered: Jun 2003
Location: Durham, UK
Distribution: Slackware 9, Mandrake 9.1
Posts: 163

Rep: Reputation: 30
iv always used

rpm -i <filename>

rpm -U is used to upgrade a package, not install it. the dependancies may have appeared because your trying to upgrade using -U, and not install using -i.

rpm's are well known for 'dependancy hell' mind, so have you attempted installing from source?
 
Old 08-02-2003, 09:09 AM   #3
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
The previous post-er was correct, you are trying to upgrade something that's not there.

I would put all the rpms in one dir and do something like:

rpm -ihv *.rpm

This will install all the rpms in the order needed, provided you downloaded the correct dependencies. Good luck.
 
Old 08-02-2003, 08:49 PM   #4
digitized_funk
Member
 
Registered: Sep 2002
Location: Australia
Distribution: Suse 8.0
Posts: 50

Original Poster
Rep: Reputation: 15
thanks for the replies. Unfortunately it's not exactly what I was looking for. -U option is correct by my reckoning, see the man entry below. I use this option in case I am installing over an old package, one of the things with SUSE is it installs so much 'crap' onto my system that I don't know what is there and what isn't.

rpm -U [install-options] <package_file>+

This upgrades or installs the package currently installed
to the version in the new RPM. This is the same as
install, except all other version of the package are
removed from the system.

Back to the problem, I need to find out how to go about resolving dependencies and downloading the correct rpms. I just last night spent 9 hours using something called apt-get to download about 75mb of kdevelop3 and supposed dependent packages. Well imagine my surprise when I get up this morning and see this:

Fetched 73.3MB in 9h56m1s (2051B/s)
Executing RPM (-e)...
Executing RPM (-Uvh)...
error: failed dependencies:
(null) is needed by xdevel-4.2.0-174
(null) is needed by libpng-devel-2.1.0.12-160
E: Sub-process /bin/rpm returned an error code (38)

So very frustrated, so long and such effort to install 1 piece of software.

Rich.
 
Old 08-02-2003, 11:22 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
your best bet would be to get apt-get for suse to install a program like this that has the dependancy hell...you are correct and you can use rpm -U if you wish as it will be the same as rpm -i, so no this is not what was causing the depedancies problem...
 
Old 08-03-2003, 12:36 AM   #6
digitized_funk
Member
 
Registered: Sep 2002
Location: Australia
Distribution: Suse 8.0
Posts: 50

Original Poster
Rep: Reputation: 15
yep I did use apt-get, it helped a lot, but it still didn't install correctly. There is a package called sp that seems to yo-yo between being installed and not being installed. If I do 'apt-get -f install' it will update this sp package, but then when I do apt-get install kdevelop3 it will again update the sp package and report breakage trying to install the rpms and tell me to do apt-get -f install to fix and so on and so on.

At least apt-get comes close to resolving the dependencies though. it's just that error in my previous post that gives me trouble. What package is <null>, why would it say that?? I tried to install just xdevel package and there seems to be a conflict between xdevel and xf86 so I'm now updating xf86 and will hopefully fix some of the problem, yet another 20MB download :-(. I am about to throw my computer out the window.

Are there any projects in the pipeline that have the potential to alleviate these rpm problems??
 
Old 08-03-2003, 01:44 AM   #7
emetib
Member
 
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
hey man, take a chill and don't throw the box out the window, ship it to me, i'll pay the postage.

the only rpm, so called apt-get package, that i know of is mandrakes urpmi. this will install all of the deps that are required for the upgrade/install.

for your problem, i guess that i would do an update db of the rpms db first. then try the apt-get install, do another updatedb, and then try the apt-get update/upgrade. i know that with my debian i have to do this sometimes. not the rpm updatedb, but get things in order before i try and update/upgrade. most people that use debian think that apt-get is the best thing in the world, i will say that it is nice, but it still has some bugs. hey it's linux, it's going to have some bugs in it. (better than windows that has lots of the critters running around though).

don't think that really helps much, but you might give it a try.

cheers.
 
Old 08-03-2003, 10:05 AM   #8
Disruptor
LQ Newbie
 
Registered: Jul 2003
Location: Hellas - Crete - Heraklion
Distribution: Red Hat 9
Posts: 24

Rep: Reputation: 15
About rpm: `rpm -U' is equivalent to `rpm -i' plus that it supports upgrading
packages in case a previous version of the packages is installed (at least that's
how things are with red hat distros). Now, about the dependencies: I see
that you are getting familiar with the term `dependency hell' and what it
means. The best way to overide it as it seems is to download `src.rpm' packages (these are a bit different than `.rpm' packages) and compile them to create '.rpm' packages suited for computer/distro. Now here is a link to
download the `.src.rpm':

ftp://ftp.pbone.net/mirror/ftp.kde.o....0a3-0.src.rpm

login as root (`su', password ...) and `cd' to the directory where you
downloaded the package. Now just issue:

rpmbuild --rebuild kdevelop3-3.0a3-0.src.rpm

and wait for as much as it takes to have the package compiled. By the time
compilation is over you should find some rpms in:

/usr/src/SuSE/RPMS/i386 (or something)

just `cd' in this directory (being root ofcourse) and issue:

rpm -Uvh kdevelop*

That would be all I guess

Cheers,
Dominique
 
  


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
software install rpm pperk97 Linux - Software 2 10-29-2004 11:58 AM
How do I install a software when there is no rpm for mandrake? fabre Mandriva 8 06-02-2004 02:03 PM
How do I force an older rpm to install over a newer rpm of wine onyx Linux - Software 4 02-20-2004 01:44 AM
Help : rpm dependency error when install video driver rpm ymdwxm Linux - Software 1 04-04-2003 05:55 PM
SOFTWARE RPM INSTALL PROBLEMS Stephanie Linux - General 1 06-11-2001 09:53 PM


All times are GMT -5. The time now is 02:25 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