国产银河麒麟v10操作系统 添加epel源

国产银河麒麟V10操作系统添加epel源记录

一、注意事项

1、操作系内核版本与架构即就是指令集
uname -a / uname -r

可查看系统内核与指令集,本次我以内核版本 4.19.90,系统架构为aarch64为例进行记录
2、移除原有的epel源

注意记得备份

二、具体操作

1、进入配置目录并创建文件

ssh 复制代码
cd /etc/yum.repos.d
vim epel-kylin.repo

2、将以下内容复制到编辑的文件中

ssh 复制代码
[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
# It is much more secure to use the #metalink, but if you wish to use a local mirror
# place its address here.
baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS-SP3/EPOL/main/$basearch
#metalink=https://mirrors.fedoraproject.org/#metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
gpgcheck=0
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8

[epel-debuginfo]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
# It is much more secure to use the #metalink, but if you wish to use a local mirror
# place its address here.
baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS-SP3/EPOL/main/$basearch/debug
#metalink=https://mirrors.fedoraproject.org/#metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=0

[epel-source]
name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
# It is much more secure to use the #metalink, but if you wish to use a local mirror
# place it's address here.
baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS-SP3/EPOL/main//source/tree/
#metalink=https://mirrors.fedoraproject.org/#metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=0

3、测试

ssh 复制代码
yum clean all
yum -y update
yum repolist epel  -v 
( 输出以下内容则表示配置成功并成功启用了epel仓库 )
Repo-id      : epel
Repo-name    : Extra Packages for Enterprise Linux 10 - aarch64
Repo-status  : enabled
Repo-revision: 1641007719
Repo-updated : Sat 01 Jan 2022 11:28:39 AM CST
Repo-pkgs    : 3,314
Repo-size    : 4.7 G 

yum repository-packages epel list
(可查看该仓库中所有可用的包)

4、简单的使用

ssh 复制代码
假设需要我们从epel仓库中安装 libXtst-devel 系统包
yum list libXtst*
yum --enablerepo="eple" install  xxx

三、最后

有时候麒麟操作系统自带的 yum 源也够我们去使用,这是我本次系统自带的yum源,简单记录并放在这里有需要者可自行拿去用

ssh 复制代码
[ks10-adv-os]
name = Kylin Linux Advanced Server 10 - Os 
baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP1/os/adv/lic/base/$basearch/
gpgcheck = 0
enabled = 1

[ks10-adv-updates]
name = Kylin Linux Advanced Server 10 - Updates
baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP1/os/adv/lic/updates/$basearch/
gpgcheck = 0
enabled = 0

[ks10-adv-addons]
name = Kylin Linux Advanced Server 10 - Addons
baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP1/os/adv/lic/addons/$basearch/
gpgcheck = 0
enabled = 0
相关推荐
敢敢变成了憨憨5 分钟前
java操作服务器文件(把解析过的文件迁移到历史文件夹地下)
java·服务器·python
敲键盘的小夜猫10 分钟前
Milvus向量Search查询综合案例实战(下)
数据库·python·milvus
安科瑞刘鸿鹏37 分钟前
破解高原运维难题:分布式光伏智能监控系统的应用研究
运维·物联网·安全
10000hours43 分钟前
【存储基础】存储设备和服务器的关系和区别
服务器·数据存储
珊珊而川43 分钟前
使用source ~/.bashrc修改环境变量之后,关闭服务器,在重启,环境变量还有吗?
服务器·chrome·github
小杜-coding1 小时前
天机学堂(初始项目)
java·linux·运维·服务器·spring boot·spring·spring cloud
钢铁男儿1 小时前
深入剖析C#构造函数执行:基类调用、初始化顺序与访问控制
java·数据库·c#
tiantianuser1 小时前
NVMe IP现状扫盲
服务器·网络·tcp/ip
有时间要学习1 小时前
MySQL——事务
数据库·mysql
翻滚吧键盘1 小时前
Spring Boot,注解,@ComponentScan
java·数据库·spring boot