0

Is there any way to install GCC on a redhat machine which has no internet connection.

Can i download the package from somewhere and install?

sKen
  • 105
  • 1
  • 2
  • 16
  • Either get the packages from *Redhat*, or use the Redhat CentOS packages http://mirror.centos.org/centos/ . Requirements: glibc-devel, glibc-headers, kernel-headers, gcc, (gcc-c++, libstdc++-devel) . – Knud Larsen May 10 '17 at 16:40

1 Answers1

0

Well you could just download the Tarball at on of the mirror sites https://gcc.gnu.org/mirrors.html put it on i.e. an usb-Stick and extract it on your computer with tar -zxf {path to the tar.gz file.} and run the gcc file in the extracted folder.

Community
  • 1
  • 1
Kerb
  • 141
  • 2
  • 7