yum下载的rpm包离线安装
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
做企业应用,有些场景下面是需要离线安装的环境,linux系统需要的一些rpm包就需要做离线安装。
#修改yum设置,让rpm包缓存到本地
vi /etc/yum.conf
#修改keepcache为1
keepcache=1
#清空yum缓存
yum clean all
#安装你要离线安装的rpm包
yum install xxx.rpm -y
#rpm包缓存到了/var/cache/yum下面
cd /var/cache/yum
find ./ -name *.rpm
#找到你的rpm包,并拷走就可以离线安装了
可以将需要离线安装的rpm包,拷贝到离线yum源服务器下面,一样用yum命令安装,搭建yum源服务器参考http://blog.csdn.net/dante_003/article/details/54944239
拷贝到yum源目录下面,输入命令重建RPM索引。




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)