运行命令 查看系统版本可知
cat /etc/os-release
uname -r
如下所示,可知是基于 RHEL 8.x
NAME="Kylin Linux Advanced Server"
VERSION="V11 (Swan25)"
ID="kylin"
VERSION_ID="V11"
PRETTY_NAME="Kylin Linux Advanced Server V11 (Swan25)"
ANSI_COLOR="0;31"6.6.0-32.7.v2505.ky11.x86_64
添加源说明文件
vim /etc/yum.repos.d/epel-aliyun.repo
[epel]
name=Extra Packages for Aliyun - $basearch
baseurl=https://mirrors.aliyun.com/epel/8/Everything/$basearch/
enabled=1
gpgcheck=0
priority=10
当然 你要是别的基础版本 RHEL 7.x 或别的,就对应把 8 改成对应数字就完事了
获取下源 看看是不是成功了
yum clean all
yum makecache
然后就可以尝试安装对应包了 我这里以 xrdp 举例
[root@localhost mdns]# yum search xrdp
Last metadata expiration check: 0:08:07 ago on 2025年10月21日 星期二 11时21分31秒.
============================================== Name Exactly Matched: xrdp ==============================================
xrdp.x86_64 : Open source remote desktop protocol (RDP) server
============================================= Name & Summary Matched: xrdp =============================================
xorgxrdp.x86_64 : Implementation of xrdp backend as Xorg modules
xorgxrdp-glamor.x86_64 : Implementation of xrdp backend as Xorg modules with glamor
xrdp-devel.x86_64 : Headers and pkg-config files needed to compile xrdp backends
xrdp-selinux.x86_64 : SELinux policy module required tu run xrdp
1140

被折叠的 条评论
为什么被折叠?



