redhat5.5 快速搭建本地源

1.mount /dev/cdrom  /mnt/cdrom
2. cd /etc/yum.repos.d
3. vi server.repo并添加下列内容:
  [base]
name=server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
4.yum makecache

本文出自 “kobebryant” 博客,谢绝转载!

你可能感兴趣的:(File)