How to handle dependencies in RPM and YUM? There must be a better way?
Hi,
First post.. I spend serious time trying to install applications on my RHEL 6.2, but no luck so far. Plenty of post on web, but when comes to missing dependencies for both rpm and yum.. it all get blur. Yum seems more advanced handling missing dependencies, but fails in the end finding a few 'not resolved' I can not imagine 10000's of Linux users facing this for each .rpm they want to install. I need a Remotdesktop and FileZilla to begin with..basic stuff. Is there something more advanced out there I did no see yet? A good procedure to follow? Many thanks! AY |
Welcome!
If you download an rpm (say from SuSE) and try to install it on a Fedora system(which both use rpms) you will get huge dependency errors because there the unofficial naming convention has a few letters from the distro in the name of each rpm, and rpm is stupid. Use the repositories of your installed distro. Use Quote:
yum install <something from the list> Typically yum will do stuff, and then say "You need all these as well" give you a list, and a Y/n choice. Say yes. It installs. If you are getting other behaviour, open a terminal, and repeat what I have suggested above, and paste the errors (all in CODE tags pls - the '#' in the reply header) and we'll laugh at it and tell you what's wrong. |
@ayb20 , ... RHEL 6.2
The current update level is `6.5' ! RHEL 6.x cannot be used without a Redhat subscription / license. But you can migrate the OS to the free version » Redhat CentOS 6 «, and thus have yum access to packages ... . http://wiki.centos.org/HowTos/MigrationGuide How to install an alien package ( with dependencies ) : $ cd <folder-with-package.rpm>/ # yum localinstall <package>.rpm - |
Thanks Guys!
Bus_kid made it much better to understand, but knudfl did throw the spanner in the wheel :) My Company provides VMWare Images for different O/S, including Linux. You can imagine I got stuck with registration with no install number.. It seems Redhat CentOS6 is compatible, so I can migrate or install fresh. However, with 2 guru's nearby, can I get some advise here (I know.. wrong spot) I only need an image to go through a Linux Interface Programming curriculum. They use Red Hat 6.2, hence my RHEL6 install & drama "Red Hat 6.2, a release 2.2.14 Linux kernel, release 2.1.3 of the GNU C library, EGCS 1.1.2 release of the GNU C compiler" So CentOS6 has all that as well? ..or any other non RHE images to use (single, desktop, laptop..etc) Thanks!! ay |
# cd /tmp
# rpm -Uvh http://dl.fedoraproject.org/pub/epel...6-8.noarch.rpm [EPEL Repo] # yum repolist You must see your EPEL .. # yum search [keyword_for_your_package] # yum info [package_name] To get information about package If you have satellite server in your office, subscribe to RHEL full susbscription channel and then search again # yum search [package name] Once you find your package: # yum install [package name] if you could not get the file, then search in google for binary file and install it, but don't forget to set the environmental variable.. I hope u know that :) |
This tells you all you need to know about getting extra stuff for Red Hat or CentOS
http://wiki.centos.org/AdditionalRes...epositories%29 Be sure to follow their advice on setting up priorities, or horrible things can happen! http://wiki.centos.org/PackageManagement/Yum/Priorities To find which repo has which program, use http://pkgs.org/ |
Quote:
I'd suggest finding more recent course material and building a system based upon its requirements. |
Now moved to Redhat CentOS 6
Hi all,
I just moved to CentOS and all problems are gone.. linuxmantra, I tried your suggestions but got stuck somewhere half way. With CentOS about to replace my RHEL I did give up quickly.. Thanks anyway for you time. btmiller, you were right indeed.. that study guide was 2005 or so. I found "Advanced Programming in the UNIX Environment; 3rd Edition" with superb reviews.. all good now. I'm drifting away form my initial call.. Thanks all for your help. Ay |
All times are GMT -5. The time now is 01:43 PM. |