RedHat: Installing RPMs on a no-yum machine

Posted on 2013-10-20
Medium Priority
Last Modified: 2014-11-12

I need to install a few packages that are required for Drupal on a RedHat machine that does not have Internet access and/or YUM.

What I currently do is use a yum-enabled Centos machine with the same ARCH to download the required RPM with yumdownloader, and copy it to the RedHat machine and install.

However this is turning out to be an impossible task.
I am stuck in some weird failed dependencies storm that I can't get over - each package requires a different one that requires the one I was trying to install before...

for example
I try to install mysql-5.1.69-1.el6_4.i686.rpm
and get a huge list with mainly files related to GLIBC
I try to install glibc-2.12-1.107.el6.i686.rpm
and get requirement for glibc-common
I try to install glibc-common, and get a failure to do missing GLIBC!

Is there a way around this mess? how does one install a package with a lot of dependencies without YUM?

Question by:shootbox
LVL 23

Accepted Solution

savone earned 500 total points
ID: 39586051
No there is no way around this.  I called it "Dependency Hell" and this is the exact reason yum was created in the first place.

This question brings up some important questions.

1) Why would you install drupal on a system with no internet access?  Isnt that the point of drupal to be a website?

2) How did you get a redhat system with no yum?

3) If you have no internet/yum then you are no installing security updates, which is a problem if you ever put it on a network/internet.

Author Comment

ID: 39586058
Savone, life is slightly different on an enterprise network.

1. There are incoming connections to the machine via Load Balancers and reverse proxies. a machine does not need to have Internet access in order to serve content outside. it just so happens that the content will be served via Drupal.

2. It's a virtual machine image.

3. True, Backend machines that only serve a specific webapp are seldom updated. not saying it's very good, but it's not my concern at this point.

which brings me back to square one..
unfortunately it looks like I will have to manually get this done. are you saying that it's IMPOSSIBLE or just a huge hassle? cause I can live with the huge hassle, but impossible is more problematic.
LVL 23

Expert Comment

ID: 39586119
I had a similar situation with a snort/sourcefire system that was not allowed to have internet access for security reasons.  I spent well over a week trying to find a solution to the "dependency hell" and was unable too.  I even posted a question on here to see if anyone could provide a solution and nothing ever care of it.

I never like to use the word impossible, but from my experience, that is exactly the case here.
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.


Expert Comment

by:Dave Gould
ID: 39587341
Have you looked at installing a satellite server? This server can get tha latest packages from the Internet and your drupal server can get its updates from your satellite (using yum).

Assisted Solution

scaryskullz earned 500 total points
ID: 39587404
Its a very painful task but possible. Look at each package you want to install find its dependencies and the dependencies of your dependencies. You can do that using rpmforge or any online resource like that. Download all of them.

rpm -ivh *
would do the trick.

Author Comment

ID: 39590785
well, the bottom line is that the vast majority of the dependency hell was caused by my mistake. I was trying to install i686 packages on x86_64 OS, I did not know that the errors that I can get are related to the architecture, I thought that a missing package is a missing package...

I had to get an x86_64 vm and use yumdownloader to download the package, and I slowly worked around finding other packages that I need, but this time it went much smoothly

LVL 13

Expert Comment

ID: 39835004
if you have OS iso with you then you can create you own local repo or use default iso repo to use yum.


Author Closing Comment

ID: 40437124

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article discusses how to implement server side field validation and display customized error messages to the client.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
The viewer will learn how to dynamically set the form action using jQuery.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question