How to install 'Development Tools' into a CentOS machine without internet?

A 5 star hangout for overworked and underpaid system admins.
Post Reply
paipia
Posts: 1
Joined: 2020/06/01 09:57:59

How to install 'Development Tools' into a CentOS machine without internet?

Post by paipia » 2020/06/01 10:00:56

I need gcc, make and other essential stuff on a CentOS machine. The thing is that the machine is not (and probably will not be) connected to the internet.

Downloading the packages on some other computer, then moving and installing them here seems as an option. However, to compile packages I need make in the first place as far as I know.

What should I do? How can I get make here? How can I use yum to install packages from the local drive?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to install 'Development Tools' into a CentOS machine without internet?

Post by TrevorH » 2020/06/01 10:23:35

The best answer would be to create a local mirror on a machine that your disconnected machine can reach. For information on how to go about setting up a local CentOS mirror please see https://wiki.centos.org/HowTos/CreateLocalMirror

Failing that you'll have to identify each package you want, download it from a mirror, copy it to your machine, use e.g. yum --disablerepo=\* install /path/to/my/downloaded/packages/*.rpm, identify anything missing, repeat.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply