美文网首页Linux
linux创建yum离线仓库

linux创建yum离线仓库

作者: WebGiser | 来源:发表于2019-12-31 18:06 被阅读0次

在离线环境下,postgresql和postgis等不好安装,依赖许多其他东西。这时我们可以制作本地yum源。

1、移除原有的yum源

cd /etc/yum.repos.d
mv * /oldrepo

2、新建本地yum源

在/etc/yum.repos.d下新建local_base.repo文件,内容如下:


image.png

3、更新缓存

yum clean all
yum makecache

4、yum安装

yum install -y postgresql96-server
yum install -y postgresql96-contrib

相关文章

网友评论

    本文标题:linux创建yum离线仓库

    本文链接:https://www.haomeiwen.com/subject/sthioctx.html