Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222
Rep:
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.
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..
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.
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.
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?
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.
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?
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 package1package2 . . ."
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
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.
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.
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'?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.