0

I am constantly requiring the use of multiple packages for my work, but alas my work PC doesn't have an internet connection. Hence, I am always stuck on downloading the package on a separate PC which has Ubuntu. I was wondering if it was possible to emulate my OS as RHEL6 and download the required packages to an rpm file via apt-get or something since most common answers to my problems seem to be answered in an apt-get install format.

0

You can use Docker to spin up a CentOS 6 container. Then use yumdownloader to download packages and their dependency RPMs.

  • I haven't used Docker before. From the looks of it, it seems like something worth looking into. Theoretically, I think it could solve my question, so I’ll mark the question answered – Ankit Feb 15 '16 at 4:34
1

If your work pc has a network connection to the ubuntu system, you may be able to solve by using an ssh forwarding.

ssh has the ability to act as a socks-proxy.

the first step would be

ssh -D localport ubuntu-server

since yum doesn't understand socks by itself you need tsocks to work around this step like described here How to use SOCKS proxy with yum?

  • Thanks for the reply, but the ubuntu and work pc have no link between them. – Ankit Feb 11 '16 at 3:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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