LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2014, 02:50 AM   #1
ayb20
LQ Newbie
 
Registered: Sep 2014
Location: Sydney, Australia
Posts: 3

Rep: Reputation: Disabled
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
 
Old 09-12-2014, 03:33 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,862

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
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 list foo
It will throw you up a list, then use
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.
 
1 members found this post helpful.
Old 09-12-2014, 05:19 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,550

Rep: Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241Reputation: 3241
@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

-

Last edited by knudfl; 09-12-2014 at 05:21 AM.
 
1 members found this post helpful.
Old 09-12-2014, 07:38 AM   #4
ayb20
LQ Newbie
 
Registered: Sep 2014
Location: Sydney, Australia
Posts: 3

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-12-2014, 03:07 PM   #5
linuxmantra
Member
 
Registered: Dec 2013
Posts: 110

Rep: Reputation: Disabled
# 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
 
Old 09-13-2014, 10:57 AM   #6
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,392

Rep: Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348Reputation: 1348
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/
 
Old 09-13-2014, 11:49 AM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by ayb20 View Post
Thanks Guys!

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
Ummm ... Red Hat 6.2 is NOT the same thing as Red Hat Enterprise Linux 6.2. The Linux 2.2 kernel was first released sometime around 1998 and succeeded by the 2.4 kernel series about 2002 (the current released Linux kernel is version 3.16); likewise, glibc 2.1.3 is completely ancient, released around the year 2000 with the current version being 2.20. In other words, the course material you're working with is horribly outdated. Things have changed a lot inb Linux over the last 14 years; the basic principles are still the same, but most of the technical details will have changed. EGCS doesn't even exist any more; its developments were folded back into gcc long, long ago.

I'd suggest finding more recent course material and building a system based upon its requirements.
 
Old 09-16-2014, 07:19 AM   #8
ayb20
LQ Newbie
 
Registered: Sep 2014
Location: Sydney, Australia
Posts: 3

Original Poster
Rep: Reputation: Disabled
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
 
  


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
yum/rpm incorrectly show missing dependencies jlarmour Linux - Software 3 09-29-2006 02:51 AM
yum version yum-2.0.5-0.9.2.legacy.noarch.rpm master Red Hat 6 05-13-2005 03:03 PM
kernel-0-2.6.6-1.427.i686 ... what is it? can yum handle it? clausawits Fedora 3 06-13-2004 11:08 AM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
rpmm cant handle source rpm ??? qwijibow Linux - Newbie 3 07-19-2003 10:08 AM


All times are GMT -5. The time now is 07:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration