红联Linux门户
Linux帮助

Redhat本地yum源配置

发布时间:2014-08-02 10:00:38来源:linux网站作者:linwaterbin

环境:

VMware Workstation
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*