linux创建yum离线仓库
2019-12-31 本文已影响0人
WebGiser
在离线环境下,postgresql和postgis等不好安装,依赖许多其他东西。这时我们可以制作本地yum源。
1、移除原有的yum源
cd /etc/yum.repos.d
mv * /oldrepo
2、新建本地yum源
在/etc/yum.repos.d下新建local_base.repo文件,内容如下:
![](https://img.haomeiwen.com/i11354300/686e9bdbb6cb1afa.png)
3、更新缓存
yum clean all
yum makecache
4、yum安装
yum install -y postgresql96-server
yum install -y postgresql96-contrib