[root@localhost CentOS] mount /dev/hda6
/mnt
#hda6分区为centos镜像所在
[root@localhost CentOS]df -k , cd
/mnt ,
ls
依次用命令看是否挂载成功,及镜像的文件名。
[root@localhost CentOS]mount -t
iso9660 -o loop /mnt/CentOS-5.5-i386-bin-DVD.iso
/mnt/iso
#iso目录是我建的
[root@localhost CentOS]cd /mnt/iso/CentOS
#这个目录是rpm包所在的目录,注意大小写。
[root@localhost CentOS]rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
Preparing...
########################################### [100%]
1:fonts-ISO8859-2-75dpi
########################################### [ 50%]
2:fonts-chinese
########################################### [100%]
[root@localhost CentOS]df -k , cd
[root@localhost CentOS]mount
[root@localhost CentOS]cd /mnt/iso/CentOS
[root@localhost CentOS]rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
Preparing...