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 makecacheide

相關文章
相關標籤/搜索