Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-02-2010, 08:19 AM
|
#1
|
LQ Newbie
Registered: Nov 2010
Posts: 6
Rep:
|
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
|
|
|
11-02-2010, 08:28 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,671
|
Quote:
Originally Posted by edgesonlpr
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.
|
|
|
11-02-2010, 08:33 AM
|
#3
|
LQ Newbie
Registered: Nov 2010
Posts: 6
Original Poster
Rep:
|
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
|
|
|
11-02-2010, 08:41 AM
|
#4
|
Member
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36
Rep:
|
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.
|
|
|
11-02-2010, 08:52 AM
|
#5
|
LQ Newbie
Registered: Nov 2010
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
11-02-2010, 09:29 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,671
|
Quote:
Originally Posted by edgesonlpr
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.
|
11-05-2010, 12:43 PM
|
#7
|
LQ Newbie
Registered: Nov 2010
Posts: 6
Original Poster
Rep:
|
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
|
|
|
11-08-2010, 11:58 AM
|
#8
|
LQ Newbie
Registered: Nov 2010
Posts: 6
Original Poster
Rep:
|
bump
|
|
|
11-08-2010, 03:35 PM
|
#9
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,671
|
Quote:
Originally Posted by edgesonlpr
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.
|
11-09-2010, 08:01 AM
|
#10
|
Member
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36
Rep:
|
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`.
|
|
|
11-09-2010, 09:44 AM
|
#11
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,671
|
Quote:
Originally Posted by module0000
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.
|
|
|
All times are GMT -5. The time now is 01:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|