如何在没有互联网连接的情况下安装yum rpm软件包? [英] How can I install yum rpm packages without internet connection?

查看:147
本文介绍了如何在没有互联网连接的情况下安装yum rpm软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题曾经被问过,但是我的有点不同.

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

我想使用sudo yum安装一堆rpm软件包.我要安装它们的机器上没有互联网连接.这些软件包在网络中的任何计算机上也不存在.

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.

有没有一种方法可以在没有互联网连接的情况下安装它们,并且可以在网络中任何计算机的任何位置(因此不能使用--downloadonly选项)安装它们?

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

推荐答案

如果本地计算机或任何计算机上都有RPM文件(不是来自网络,而是从字面上下载了 .rpm 文件)然后您可以运行

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>

您也可以

rpm -ivh <rpm file>

这篇关于如何在没有互联网连接的情况下安装yum rpm软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆