使用红帽的YUM是要注册的 但我们这种没序列号的人怎么办呢?可以使用光盘~
vi /etc/yum.repos.d/rhel-debuginfo.repo
添加一个源
[dvd]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=0
但是如果之前联网使用了yum会提示光盘上的源比较老
[root@mio_U2 yum.repos.d]# yum install ypserv
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
dvd | 1.3 kB 00:00
Not using downloaded repomd.xml because it is older than what we have:
Current : Wed Apr 17 21:17:26 2013
Downloaded: Mon Mar 22 20:36:01 2010
Setting up Install Process
No package ypserv available.
Nothing to do
去/var/cache/yum里把缓存清掉就OK了
上一篇:Dhclient nmap 下一篇:快递查询API