yum源本地配置

适用于redhta6.5

1、切换到repos.d目录

cd /etc/yum.repos.d/

2、创建配置文件

touch rhel-source.repo

touch lan_source.repo

3、配置文件密钥

vim rhe-source.repo

[rhel-source-beta]
name = Red Hat Enterprise Linux $releaserver Beta - $basearch - Sour evening
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

4、配置yum源

vim lan_source.repo

[lan-source]
name = Red Hat Enterprise Linux $releaserver - $basearch - Source
baseurl=ftp://10.42.121.1/pub
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

上一篇:Oracle获取干净的建表DDL语句,不含其它存储、表空间、段属性


下一篇:linux版本,Centos、Redhat、Ubuntu区别