[root@djkfdb01 yum.repos.d]# cat /etc/yum.repos.d/rhel-source.repo
[rhel-source]
#name=Red Hat Enterprise Linux $releasever - $basearch - Source
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
#enabled=0
name=yum local
baseurl=file:///home/yumsource
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled = 1
[rhel-source-beta]
#name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
name=yum local
baseurl=file:///home/yumsource
enabled=1
gpgcheck=0
[rhel-source]
#name=Red Hat Enterprise Linux $releasever - $basearch - Source
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
#enabled=0
name=yum local
baseurl=file:///home/yumsource
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled = 1
[rhel-source-beta]
#name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
name=yum local
baseurl=file:///home/yumsource
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
参考2:
[oel6]
name = Enterprise Linux 6.3 DVD
baseurl=file:///media/"OL6.3 x86_64 Disc 1 20120626"/Server
gpgcheck=0
enabled=1
安装补丁:
yum install -y compat-libstdc++*
(过去rpm -ivh xxx.rpm)
配置yum源与补丁安装
本文介绍了一个自定义的yum源配置示例,通过本地文件路径提供软件包,适用于Red Hat Enterprise Linux及其兼容发行版。同时展示了如何利用此配置进行补丁安装。
2183

被折叠的 条评论
为什么被折叠?



