一、配置本地yum源
1.检查自己是否已经安装yum
[[email protected] ~]# rpm -qa | grep yum
yum-updatesd-0.9-2.el5
yum-security-1.1.16-13.el5
yum-metadata-parser-1.1.2-3.el5
yum-3.2.22-20.el5
yum-rhn-plugin-0.5.4-13.el5
2.把安装光盘挂在到/mnt下
[[email protected] ~]# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
2.修改yum源配置文件 vim /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Redhat
baseurl=file:///mnt/cdrom/Server
enabled=1 (1表示开启,0表示关闭)
gpgcheck=0
用yum clean all 清空一下
二、配置网络yum源
修改yum源配置文件 vim /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Redhat
baseurl=http://mirrors.aliyun.com/centos/5/os/i386/ (自己找的yum源地址)
enabled=1
gpgcheck=0
时间: 2024-10-14 05:26:00