一,安装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.
...
二,查看linux的版本:
[root@img ~]# cat /etc/redhat-release
Rocky Linux release 9.1 (Blue Onyx)
标签:epel,15,rocky,img,devel,libzip,Linux,root From: https://www.cnblogs.com/architectforest/p/17387914.html