redhat5.1安装本机yum出现的问题

 [root@localhost ~]# vi /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[root@localhost ~]# rpm -ivh /mnt/Server/createrepo-0.4.4-2.fc6.noarch.rpm 

[root@localhost ~]# createrepo -o /etc/yum -g /mnt/Server/repodata/comps-rhel5-server-core.xml  /mnt/Server/

[root@localhost ~]# yum clean all
[root@localhost ~]# yum makecache




 

你可能感兴趣的:(yum,redhat5.1)