How can I install yum rpm packages without internet connection?

南楼画角 提交于 2021-02-05 09:24:07

问题


This question has been asked before but mine is a bit different.

I want to install a bunch of rpm packages using sudo yum. I do not have internet connection on the machine I want to install them on. These packages also do not exist on any machine in the network.

Is there a way I can install them without internet connectivity and with them not anywhere on any machine in the network (so cannot use --downloadonly option) ?


回答1:


if you have the RPM files on your local machine or any machine (not from network but you literally downloaded the .rpm files) then you can run

yum localinstall <path to rpm file>

you can also do

rpm -ivh <rpm file>



回答2:


Is there a way I can install them without internet connectivity and with them not anywhere on any machine in the network

No, that is called an air gap. You need to get the RPMs on the machine or network to have them installed.



来源:https://stackoverflow.com/questions/47171245/how-can-i-install-yum-rpm-packages-without-internet-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!