1. 程式人生 > >添加本地 yum源

添加本地 yum源

etc clean repo debug yum安裝 erp con upd 配置文件

添加本地 yum源 yum-updatesd.conf yum的主配置文件 [[email protected] ~]# cd /etc/yum.repos.d/ [[email protected] yum.repos.d]# ls rhel-debuginfo.repo rhel-debuginfo.repo 方括號裏面的名字不能一樣,名字隨意起。 baseurl=file:///mnt/Server 文件系統的路徑 enable=1 這個改成1 gpgcheck=0 改成0 以下是Oracle Linux 5.7 public-yum-oel5u7.repo文件 [oel5u7] name = Oracle Enterprise Linux 5.7-64bit DVD baseurl=file:///mnt/Server/ gpgcheck=0 enable=1 以下是CentOS 6配置文件 [oel5u7] name = Oracle Enterprise Linux 5.7-64bit DVD baseurl=file:///mnt/ gpgcheck=0 enable=1 然後掛載光盤 mount /dev/cdrom /mnt yum list 清除設置 : yum clean yum安裝 yum -y install baoming.rpm 包名可以不全。-y :確認。

添加本地 yum源