LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-22-2006, 12:17 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
rpmdb? how to find dependencies then?


Was attending a class on Redhat when I learnt abt a package call rpmdb which will look to install the dependencies of a rpm you're trying to install. I was hoping to find it in FC4. Is there one of such?

Because I'm always having problem finding the dependencies, for example: installing ImageMagick will ask ofr libgs.so.7 for example, but how do I find out which rpm it needs infact? using this rpmdb?

Or is there a better way to go about doing this?

Many thanks!
 
Old 08-22-2006, 12:28 AM   #2
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
The rpmdb-fedora comes with the fedora distribution. Check if it is installed on your system with:

rpm -qi rpmdb-fedora

If not then install it from the RPMS directory on your distribution CD.

Note that automatic dependency resolution for rpms is limited to packages present on your distribution CDs only. It will not resolve dependencies for third-party software not present on your CDs.

To use rpmdb-fedora during installation of packages use the --aid option.

rpm -ivh <package-name>.rpm --aid
 
Old 08-22-2006, 01:07 AM   #3
drj000
Member
 
Registered: Sep 2004
Location: Houston, TX
Distribution: Fedora
Posts: 261

Rep: Reputation: 33
You don't you just use yum? "yum install ImageMagick" and it'll download and install ImageMagick and all its dependencies.
 
Old 08-22-2006, 01:25 AM   #4
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by drj000
You don't you just use yum? "yum install ImageMagick" and it'll download and install ImageMagick and all its dependencies.
urm... I haven't use yum before.. any guide on how to go about it?

I was trying hard to install imagemagick.. and it asked for certain files, which led me to this thread

I then went to copy ghostscript and imagemagick perl off the disc. But all of them requried more RPMs as prerequitsite and it never ends until i just used the --nodeps and install ImageMagick, ImageMagick-perl, ghostscript and ghostscript-fonts..


what is requried for ImageMagick?
 
Old 08-22-2006, 01:28 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Using yum is the recommended way of installing packages on Fedora Core since this will automatically install all required dependencies. Using --nodeps is usually no good because you can end up with broken packages or packages that don't function correctly.
 
Old 08-22-2006, 01:57 AM   #6
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by reddazz
Using yum is the recommended way of installing packages on Fedora Core since this will automatically install all required dependencies. Using --nodeps is usually no good because you can end up with broken packages or packages that don't function correctly.

So using yum that comes with the FC distribution will do ya? is this the official site? http://linux.duke.edu/projects/yum/

or you guys have better links to recommend?

I'll go test it out on a test system first as this current machine is going to go live first.

But meanwhile, how do I install the ImageMagick rpm from the installation disc? I'm installing a fresh setup machine, but the chase for the 'dependencies' never seems to end. I installed without any of the noarch packages ( i didn't know what they are for)...

so before i do a re-install... what packages should i have to make sure i can install ImageMagick?

Can't seem to find a list
 
Old 08-22-2006, 01:03 PM   #7
drj000
Member
 
Registered: Sep 2004
Location: Houston, TX
Distribution: Fedora
Posts: 261

Rep: Reputation: 33
Quote:
Originally Posted by Swakoo
So using yum that comes with the FC distribution will do ya?
Yep
Quote:
Originally Posted by Swakoo
is this the official site? http://linux.duke.edu/projects/yum/

or you guys have better links to recommend?
I've never seen that site before, and I don't think yum is maintained by Duke, so I doubt that's the "official" site, but it looks like it has good information.

If you want information on basic uses of yum, open a terminal, and type "man yum."

To get ImageMagick, since that seems like your current goal, open a terminal, get root privileges by typing "su -" followed by the root password, then type "yum install ImageMagick."

If you want to update all the programs on your machine, type "yum upgrade," or "yum update." Those two commands do subtly different things, but for the most part, either one will work fine. If you haven't done this before, there will be a lot of stuff to upgrade. It will take a VERY long time.

There's a lot of things you can do with yum. You can add more software repos, for example, so that there's more programs available to you. Livna is a good one to add, IMO. I've tried adding others before, but it just caused problems for me.

If you upgrade to FC5, there is a very nice tool that is a frontend for yum, that, IMO, is much better than the other yum frontends I've seen called "pirut." In the Program Menu, I think it's just called "Add/Remve Programs," or something like that. I don't remember.

That should be all you need to know to get you going.
 
Old 08-22-2006, 09:54 PM   #8
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by drj000
Yep

I've never seen that site before, and I don't think yum is maintained by Duke, so I doubt that's the "official" site, but it looks like it has good information.

If you want information on basic uses of yum, open a terminal, and type "man yum."

To get ImageMagick, since that seems like your current goal, open a terminal, get root privileges by typing "su -" followed by the root password, then type "yum install ImageMagick."

If you want to update all the programs on your machine, type "yum upgrade," or "yum update." Those two commands do subtly different things, but for the most part, either one will work fine. If you haven't done this before, there will be a lot of stuff to upgrade. It will take a VERY long time.

There's a lot of things you can do with yum. You can add more software repos, for example, so that there's more programs available to you. Livna is a good one to add, IMO. I've tried adding others before, but it just caused problems for me.

If you upgrade to FC5, there is a very nice tool that is a frontend for yum, that, IMO, is much better than the other yum frontends I've seen called "pirut." In the Program Menu, I think it's just called "Add/Remve Programs," or something like that. I don't remember.

That should be all you need to know to get you going.

Currently I am having problem with yum, keep getting "Cannot find a valid baseurl for repo: updates-released"

So still figuring it and checking docs for now.

btw, for using yum update or upgrade, it will update everything or will it prompt me which to update first?

Update: Ignore the top

I realise my errors are due to network reasons. its solved. silly me.

But while downloading, it stopped at ghostscript-fonts-5.50-13.noarch.rpm saying that the GPG key already installed but not correct for this package. What does it mean and how then? How do I find the correct key and install... or how do I get yum to not check using the key altogether? don see that option in yum manpage. I even tried to copy the package from the disc since its the same version and placed it in /var/cache/yum/updates-released/packages/ but to no avail.

so far.. it seems yum is pretty like up2date. when i do a service restart, it mentioned nightly updates. does yum run itself? How do i configure it when to run etc.. and can I just set it to just download the files and let that machine to act as a 'local update machine'. I'll then use my other FC4 machines to update from there. possible?

Last edited by Swakoo; 08-22-2006 at 11:05 PM.
 
Old 08-22-2006, 10:28 PM   #9
drj000
Member
 
Registered: Sep 2004
Location: Houston, TX
Distribution: Fedora
Posts: 261

Rep: Reputation: 33
Quote:
Originally Posted by Swakoo
Currently I am having problem with yum, keep getting "Cannot find a valid baseurl for repo: updates-released"
You'll want to check your repo files in /etc/yum.repos.d/. There will probably be a file in there called something like updates.repo. It's an important software repository for getting all your updates. So, check on fedora's website to find what should be in there. The baseurl for updates should be something like http://download.fedora.redhat.com/pu...pdates/4/i386/, but if I remember correctly, it doesn't need a baseurl if there's a mirror list. Probably, you just have a line commented out that shouldn't be.
Quote:
Originally Posted by Swakoo
btw, for using yum update or upgrade, it will update everything or will it prompt me which to update first?
It will check to see what needs updated, then it will list everything available, and ask if that's ok. If you don't want it to bother asking, type "yum -y update," and it won't ask. It won't offer to let you update individual packages if you just type "yum update," so if you want to do that, you have to do "yum update package1 package2 . . ."
 
Old 08-22-2006, 11:32 PM   #10
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
hmm ok i've progressed... along the way yum prompt me that the public key for one of ghostscript-fonts didn't match. did a search, and i just ran rpm --import /usr/share/doc/key and the error go away. right?

then i think it nows try to install the package but it stops at certain packages, saying the file from my newly downloaded package conflicts with the same file in the system but its of an 'older' version. doesn't it auto-update?

Well nevermind, so I manually update that packe using rpm command and back to yum again, but after a while it shows up again..

how do I get it to overwrite? I can't run 'yum update ImageMagick' as imagemagick is not yet on my machine... so it doesn't recognise...

I finally tried to run rpm -Uvh *.rpm but i face dependencies prompts...

currently trying again after cleaning all... but i doubt it will work.. though i hope so... meanwhile: could there be some steps missing that I should be doing perhaps?

updates:
tried cleaning all but to no avail. I ran yum install imagemagick with '--exclude=package name' but it doesn't work, parsing me errors from scripts.. something abt ValueError: need more than 1 value to unpack

Last edited by Swakoo; 08-22-2006 at 11:43 PM.
 
Old 08-23-2006, 12:37 AM   #11
drj000
Member
 
Registered: Sep 2004
Location: Houston, TX
Distribution: Fedora
Posts: 261

Rep: Reputation: 33
I would try simply yum install ImageMagick to start off, and then yum upgrade.
Sometimes upgrade fixes some of the errors that update has. I never did fully understand why.
 
Old 08-23-2006, 02:31 AM   #12
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
running yum upgrade or yum update it shows error for python-devel, conflicts with python 2.4.3-8.FC4


no way to force it to upgrade...?
 
Old 08-23-2006, 09:08 AM   #13
drj000
Member
 
Registered: Sep 2004
Location: Houston, TX
Distribution: Fedora
Posts: 261

Rep: Reputation: 33
That's awfully strange, you could try removing the offending program, and then do the upgrade. "rpm -e python-devel," and if that gives you errors, or dependency problems, you could try "rpm -e --nodeps python-devel," but doing that could be risky. It probably won't be a problem, but there's always a chance that could screw some things up, although probably not irreperably. Once you've removed python-devel, you should be able to upgrade.
 
Old 08-23-2006, 09:48 PM   #14
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
ok after jostling around, here's what i did.
did a
yum clean all.
yum install ImageMagick (stopped expectedly at some of the conflicts)
yum upgrade (but it stops at python)
Then after a while, dunno what got into me... but I ran

yum list (and i saw ImageMagick and the different versions for different arch)
yum install ImageMagick.x86_64

this time it shows lesser number of packages to download/install

and everything went well. weird isn't it?


btw, so yum cannot handle 'conflict' in that it will just overwrite the one in the system (since the one i downloaded is newer...)
i can't get it to work like 'rpm -Uvh'?
 
  


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
How to find executable's dependencies? jdupre Linux - General 4 11-23-2005 04:34 AM
rpm cannot find installed dependencies guitarfella Slackware 1 02-23-2005 04:24 AM
rpm can't find installed dependencies? jbeiter Linux - General 4 09-17-2004 03:53 PM
Failed dependencies, can't seem to find the right one (mplayer, fc2). brynjarh Linux - Newbie 1 07-08-2004 05:16 PM
Where to find needed Dependencies? l0f33t Linux - Software 13 08-13-2003 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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