系统相关
首页 > 系统相关> > yum 离线安装

yum 离线安装

作者:互联网

1、 在可以联网的centos 上使用yum 下载依赖包

yum install --downloadonly --downloaddir=rpm epel-release postgis25_11 postgis25_11-utils postgis25_11-client

2、 安装yum 仓库制作工具

yum install createrepo

3、制作本地yum仓

createrepo rpm

配置自己的yum 仓库
[local]
name=local
baseurl=file:///opt/rpm
enabled=1
gpgcheck=0

标签:11,postgis25,--,rpm,createrepo,离线,yum,安装
来源: https://blog.51cto.com/15084467/2691749