rocky linux:安装epel,解决部分包搜索不到(Rocky Linux 9.1)
一,安装epel
我们以libzip-devel为例:
默认搜索不到
[root@img ~]# yum search libzip-devel
Last metadata expiration check: 0:02:34 ago on Wed 10 May 2023 01:15:06 PM CST.
No matches found.
使crb为可用状态
[root@img ~]# dnf config-manager --set-enabled crb
安装epel
[root@img ~]# dnf install epel-release
查询:
[root@img ~]# yum repolist all
可以看到epel已启用
libzip-devel可以搜索到了
[root@img ~]# yum search libzip-devel
Extra Packages for Enterprise Linux 9 - x86_64 16 MB/s | 15 MB 00:00
Last metadata expiration check: 0:00:04 ago on Wed 10 May 2023 01:15:06 PM CST.
============================ Name Exactly Matched: libzip-devel =====================
libzip-devel.x86_64 : Development files for libzip
libzip-devel.i686 : Development files for libzip
可以安装
[root@img php-8.2.5]# yum install libzip-devel
Last metadata expiration check: 1:11:20 ago on Wed 10 May 2023 01:15:06 PM CST.
Dependencies resolved.
...
说明:刘宏缔的架构森林—专注it技术的博客,
网站:https://blog.imgtouch.com
原文: https://blog.imgtouch.com/index.php/2023/06/06/rocky-linux-an-zhuang-epel-jie-jue-bu-fen-bao-sou-suo-bu/
代码: https://github.com/liuhongdi/ 或 https://gitee.com/liuhongdi
说明:作者:刘宏缔 邮箱: 371125307@qq.com
二,查看linux的版本:
[root@img ~]# cat /etc/redhat-release
Rocky Linux release 9.1 (Blue Onyx)