dnf常用命令

dnf 命令

dnf search <pkg_name> #搜索相关软件
dnf install <package_name> #安装
dnf remove <package_name> #卸载

dnf provides *filename* #列出包含指定文件的包
dnf info package #显示包信息

dnf list #列出所有
dnf list installed #列出安装
dnf grouplist #列出软件组
dnf repolist -v #列出repo信息

dnf clean all #清除所有的缓存文件
dnf makecache #生成元数据缓存

dnf update #更新索引文件
dnf upgrade #更新软件

原文地址:https://www.cnblogs.com/timlong/p/14587829.html