平台还是Redhat 5里,要准备的东西很简单,只要一张DVD光盘就可以了。
[root@localhost ~]# mount /dev/hdc /cdyum/==》挂载到刚刚建好的文件夹里
mount: block device /dev/hdc is write-protected, mounting read-only
[root@localhost ~]# mount==》查看挂载信息
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdc on /media/RHEL_5.4 i386 DVD type iso9660 (ro,noexec,nosuid,nodev,uid=0)
/dev/hdc on /cdyum type iso9660 (ro) ==》这个就是我们手动挂载的目录
name=Red Hat Enterprise Linux $releasever – $basearch – Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
baseurl=file:///cdyum/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Available Packages
Name : bind
Arch : i386
Epoch : 30
Version : 9.3.6
Release : 4.P1.el5
Size : 978 k
Repo : rhel-debuginfo
Summary : Berkeley 互联网域名(BIND)DNS(域名系统)服务器。
URL : http://www.isc.org/products/BIND/
License : BSD-like
Description: BIND (伯克利互联网域名) 是 DNS(域名系统)协议的一种实现。
: BIND 包括一个 DNS 服务器(named),它把主机名解析为 IP 地址;
: 一个解析器库(在与 DNS 通讯时应用程序所使用的例程);以及检
: 验 DNS 服务器是否被正确操作的工具。
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package bind.i386 30:9.3.6-4.P1.el5 set to be updated
–> Finished Dependency Resolution
Package Arch Version Repository Size
================================================================================
Installing:
bind i386 30:9.3.6-4.P1.el5 rhel-debuginfo 978 k
================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : bind 1/1
bind.i386 30:9.3.6-4.P1.el5
[root@localhost ~]#