中标麒麟下软件源配置

中标麒麟7.0默认软件源配置是错误的,所以我们需要进行修改。流程如下:

1、进入源路径 : cd /etc/yum.repos.d/

2、删除所有原有源 : sudo rm -f *

3、查看当前路径下是否还有文件 : ls

4、创建一个新的源文件 :sudo vim neokylin.repo

配置参数:

[neokylin]

name= NeoKylin 7.0

baseurl=http://download.cs2c.com.cn/neokylin/desktop/releases/7.0/x86_64/zx/os/

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-$basearch

[neokylin-32]

name= NeoKylin 7.0 32-bit

baseurl=http://download.cs2c.com.cn/neokylin/desktop/releases/7.0/i386/os/

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-i386

5. 查看配置信息: cat neokylin.repo

6. 检查配置文件是否正确:yum repolist

7. 更新源缓存 : yum list ; yum clean all ; yum makecache

8. 创建更新源文件:sudo vim sneokylin-updates.repo

9. 配置参数:

[neokylin-updates]

name= NeoKylin 7.0 Updates

baseurl=http://download.cs2c.com.cn/neokylin/desktop/updates/7.0/x86_64/zx/os/

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-$basearch


[neokylin-updates-32]

name= NeoKylin 7.0 Updates 32-bit

baseurl=http://download.cs2c.com.cn/neokylin/desktop/updates/7.0/i386/os/

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-i386

10. 查看配置信息: cat neokylin.repo

11. 更新源信息:yum -y update --skip-broken

 
 

猜你喜欢

转载自www.cnblogs.com/blackwatch1206/p/12673062.html