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
Forum Moderator
Posts: 29955
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.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS Social”