rehdat rpm 本地源

mkdir /software/iso
mount /dev/cdrom /software/iso (挂载到iso目录下)
vi /etc/yum.repos.d/local.repo (创建local.repo文件,写入以下内容)
[Local-update]
name=Local repository
baseurl=file:///software/iso/Server (本地RPM源)
enabled=1
gpgcheck=0


yum clean all (清除YUM缓存)

yum install iptraf 测试!成功!!!

 

你可能感兴趣的:(职场,rpm,休闲,rehdat)