Search code examples
linuxpackageredhatrhelhyperledger

Install packages without internet Red Hat


I need to install Hyperledger on a Red Hat Enterprise Linux server that won't be connected to the internet. What I'll need to install is likely the Go language and Docker however given I have no internet connection I can't just use a package manager.

I've read about methods to do this with Ubuntu that mention copying .deb files over or otherwise using tools - would this work with RHEL and if not would anyone be able to recommend a way of doing this? (or any advice for achieveing this generally).


Solution

  • You can install the package "downloadonly" on a RHEL Server with internet connection:

    # yum install yum-plugin-downloadonly
    

    Then download the packages you want:

    # yum install --downloadonly --downloaddir=<directory> <package>
    

    Transfer and install them on a Server without internet connection:

    # rpm -ivh package.rpm