dnf 包管理器
说明
dnf 是 RPM 包管理器,也是 yum 的替代品,兼容 yum 的命令行参数和语法,但功能更强大,性能更好。
本文中使用 dnf 作为示例,在低版本发行版中(如 CentOS 7 以下),可以将 dnf 替代为 yum 使 用。
搜索软件包
$ dnf search python3
============================ 名称 精准匹配:python3 ============================
python3.x86_64 : Python 3.11 interpreter
========================== 名称 和 概况 匹配:python3 ==========================
boost-python3.x86_64 : Run-time component of boost python library for Python3
libcap-ng-python3.x86_64 : Python3 bindings for libcap-ng library
...
安装软件包
dnf install python3