赞
踩
https://fdoc.epoint.com.cn:3366/ISO/麒麟V10/
wget https://fdoc.epoint.com.cn:3366/ISO/麒麟V10/Kylin-Server-10-SP1-Release-Build19-20210319-x86.iso
一般这个镜像文件会默认放置在/home目录下,如图:
挂载到 /mnt
mount Kylin-Server-10-SP1-Release-Build19-20210319-x86.iso /mnt/
cd /etc/yum.repos.d
mkdir bak
mv *.repo bak
进入“/etc/yum.repos.d”目录
touch local.repo
终端中直接执行以下内容:
cat << EOF > /etc/yum.repos.d/local.repo
[rhel-yum]
name=rhel7
baseurl=file:///mnt/
enabled=1
gpgcheck=0
EOFtee /etc/yum.repos.d/local.repo <<-EOF
[rhel-yum]
name=rhel7
baseurl=file:///mnt/
enabled=1
gpgcheck=0
EOFyum -y clean all
yum makecache
有记录,说明已配置成功。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。