背景
在centos-8中安装gflags-devel,直接dnf安装,失败了。
[root@pcs2 ~]# sudo dnf -y install gflags-devel
Extra Packages for Enterprise Linux 8 - x86_64
Extra Packages for Enterprise Linux Modular 8 - x86_64
Last metadata expiration check: 0:00:01 ago on Tue 30 Jan 2024 03:40:40 PM CST.
No match for argument: gflags-devel
Error: Unable to find a match: gflags-devel
解决方案
开启powertools的源
dnf repolist all
dnf config-manager --set-enable powertools
dnf -y install gflags-devel