Redhat本地yum源配置



Redhat本地yum源配置
 
环境:   www.2cto.com  
vmworkstation
RHEL-5.8
 
 --配置repo文件
 [root@localhost yum.repos.d]# cat base.repo 
 [server]
 name=server
 baseurl=file:///mnt/hgfs/vmshare/Server
 gpgcheck=0
 
 --创建repodata db   
 [root@localhost yum.repos.d]# createrepo -d /mnt/hgfs/vmshare/Server
 2471/2471 - zsh-html-4.2.6-6.el5.i386.rpm   
 Saving Primary metadata
 Saving file lists metadata
 Saving other metadata
 
 --测试
  yum list | grep pack_uneed 
  or
  yum install pack_unedd*
 

相关内容

    暂无相关文章