LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-02-2010, 08:19 AM   #1
edgesonlpr
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Rep: Reputation: 0
Skipping Failed Dependencies Error


Hi all,

I am currently trying to upgrade over 100 rpms on multiple Red Hat servers. Whenever I try to do a rpm -u /packages/*.rpm i recieve a failed dependencies error on the very first rpm. I know that I can go though each rpm one by one and trace each dependency but that will take forever. Is there a way to skip these errors? I know the -nodeps command for rpm but I dont want to screw something up but running all of these rpms on -nodeps
 
Old 11-02-2010, 08:28 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,671

Rep: Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151
Quote:
Originally Posted by edgesonlpr View Post
Hi all,

I am currently trying to upgrade over 100 rpms on multiple Red Hat servers. Whenever I try to do a rpm -u /packages/*.rpm i recieve a failed dependencies error on the very first rpm. I know that I can go though each rpm one by one and trace each dependency but that will take forever. Is there a way to skip these errors? I know the -nodeps command for rpm but I dont want to screw something up but running all of these rpms on -nodeps
Yes, you install the package with yum, and let it solve the dependencies for you.

Of course, if you're not paying for RedHat support...good luck. You won't have access to their repositories, or even the packages to manually solve the dependencies.
 
Old 11-02-2010, 08:33 AM   #3
edgesonlpr
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Original Poster
Rep: Reputation: 0
ah yea i forgot to mention that these boxes are in a secluded lab and are not able to connect to the internet. YUM isnt an option :/ . Surprising enough though we do have Red Hat support haha
 
Old 11-02-2010, 08:41 AM   #4
module0000
Member
 
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36

Rep: Reputation: 15
If you have inserted a RHEL CD and are trying to upgrade from it..

1) Define a new repo in /etc/yum.repos.d/RHELCD.repo it should look similar to:

---------------
[RHELCD]
name=RHELCD
baseurl=file:///mnt/cdrom
gpgcheck=0
enabled=0
---------------

2) Run `yum --disablerepo=* --enablerepo=RHELCD update`

That will treat your CD like a repository and update any package applicable while solving dependencies.
 
Old 11-02-2010, 08:52 AM   #5
edgesonlpr
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Original Poster
Rep: Reputation: 0
This looks like it should work. I am just wondering. Can you set this to a directory instead of the cdrom? I dont see why not but I am also not very fluent in linux.
 
Old 11-02-2010, 09:29 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,671

Rep: Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151
Quote:
Originally Posted by edgesonlpr View Post
This looks like it should work. I am just wondering. Can you set this to a directory instead of the cdrom? I dont see why not but I am also not very fluent in linux.
Sure...the /mnt/cdrom is only a directory. Make one, and copy the contents of the CD/DVD to it. If you do it from a central NFS share, you can just copy it once, and let all the boxes hit it.
 
1 members found this post helpful.
Old 11-05-2010, 12:43 PM   #7
edgesonlpr
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Original Poster
Rep: Reputation: 0
my repo file looks like such


[patches]
name=patches
baseurl=file:/packages/rhn-packages
gpgcheck=0
enabled=0


ok so here is the error I recieve when I attempt to use yum.


redhat /]# yum --disablerep=* --enablerepo=patches update
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
file:///packages/rhn-packages/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/packages/rhn-packages/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: patches. Please verify its path and try again

it looks like its looking for this repomd.xml but I dont have that / dont know what that is.

any help would be greatly appreciated
 
Old 11-08-2010, 11:58 AM   #8
edgesonlpr
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Original Poster
Rep: Reputation: 0
bump
 
Old 11-08-2010, 03:35 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,671

Rep: Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151
Quote:
Originally Posted by edgesonlpr View Post
bump
Instead of bumping your own thread, why don't you call RedHat and use the support you're paying for, since you're in a hurry?
Quote:
Originally Posted by edgesonlpr
Surprising enough though we do have Red Hat support haha
The repomd.xml file tells things what you've got in that repository. Lots of docs on Google to tell you how to set up your own repository, and index the files:
http://www.webmo.net/support/yum_repository.html
 
1 members found this post helpful.
Old 11-09-2010, 08:01 AM   #10
module0000
Member
 
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36

Rep: Reputation: 15
Quote:
This system is not registered with RHN.
RHN support will be disabled.
Type `rhn_register` and fill out your license data, then `yum update`.
 
Old 11-09-2010, 09:44 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,671

Rep: Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151Reputation: 8151
Quote:
Originally Posted by module0000 View Post
Type `rhn_register` and fill out your license data, then `yum update`.
...except that the OP posted previously that these servers were in a secured environment, and didn't have access to the net.
 
  


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
Fedora 9: error when compiling flash plug-in with error failed dependencies seow_ming Fedora 2 06-17-2008 07:17 PM
I recieve a failed dependencies error, but I have all required dependencies Laptop2250 Linux - Software 15 02-03-2004 07:58 PM
error: failed dependencies yiannis_1978 Linux - Software 1 08-21-2003 12:41 PM
error : failed dependencies: karunesh Linux - General 1 02-05-2002 05:24 AM
error: failed dependencies punt Linux - General 8 07-23-2001 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:22 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
Open Source Consulting | Domain Registration