CentOS自定义yum源



cp /etc/yum.repos.d/CentOS-Base.repo CentOS-Base.repo.bak
echo "[ftp]
name=CentOS-6 – LocalFTP
baseurl=ftp://192.168.150.252/
gpgcheck=1
enable=1
gpgkey=ftp://192.168.150.252/RPM-GPG-KEY-CentOS-6" > /etc/yum.repos.d/CentOS-Base.repo

发表回复