简体   繁体   中英

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).

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM