平臺還是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 ~]#