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.
2 Answers
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.– AnkitFeb 11, 2016 at 3:46
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– AnkitFeb 15, 2016 at 4:34