Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using RHEL 6 how can you install MySql-Python package without a internet connection?

I can SCP files to the server but our current restrictions do not allow a direct or proxy connection to the internet from the RHEL server. It looks like it can be easily installed via YUM however YUM cannot update repositories without an internet connection.

share|improve this question
up vote 2 down vote accepted

If you have a similarly configured system I'd use yumdownloader. You can use it to download RPMs and their dependencies from yum repositories.

Something like this:

$ yumdownloader --resolve --destdir /tmp mysql-python

Once done downloading you can scp the *.rpm files to the other server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.