Cheatography
https://cheatography.com
Overview
/etc/dnf/dnf.conf DNF configuration file |
/etc/yum.repos.d all repo files |
List
dnf list --all list all installed and available packages |
dnf list expression list packages matching expression |
dnf list --installed expression list installed packges matching expression |
dnf list --available expression list available packages matching expression |
dnf list --extras expression list extras packages matching expression |
dnf list --obsoletes expression list obsoletes packages matching expression |
dnf list --recent expression list recent packages matching expression |
dnf list --upgrades expression list upgrades available for packges matching expression |
dnf list --autoremove list orphaned packages |
Info
dnf info package_name show info of package_name |
dnf provides path/to/file show which package provides /path/to/file |
Search
dnf search term search for term in package name and summary |
Download
dnf install dnf-plugins-core install dnf core plugins |
dnf download package download package |
|
|
Install
dnf install package_name install package and dependencies |
dnf install /path/to/local/rpm install local package and dependencies |
dnf install /path/to/file install package which provides /path/to/file |
dnf reinstall package_name reinstall package and dependencies |
dnf downgrade package_name downgrade package |
dnf mark install package_name marks the specified packages as installed by user. |
dnf unmark remove package_name unmarks the specified packages as installed by user |
dnf mark group package_name marks the specified packages as installed by group |
History
dnf history list list dnf transactions history |
dnf history info transaction show info of particular transaction |
dnf history redo transaction redo particular transaction |
dnf history rollback transaction rollback particular transaction |
dnf history undo transaction undo particular transaction |
dnf history userinstalled show all installonly packages, packages installed outside of DNF and packages not installed as dependency |
Update
dnf check-update check if updates available |
dnf upgrade update packages to latest version |
dnf upgrade-minimal update packages to major patchset and security |
dnf distro-sync update packages to latest version |
|
|
Repository
dnf repolist --enabled|--disabled|--all lists enabled, disabled or all known repositories |
dnf repoquery searches the available DNF repositories for selected packages |
dnf repository-packages run commands on top of all packages in the repository |
dnf config-manager --add-repo=URL add remote repository |
Group
dnf group summary group show overview of how many groups are installed and available |
dnf group info group show package lists of a group |
dnf group install --with-optional group install packages the group contains |
dnf group list group list all matching group |
dnf group remove group remove those packages in the group |
dnf group upgrade group upgrades the packages from the group and upgrades the group itself |
Uninstall
dnf remove package_name uninstall package_name |
dnf autoremove uninstall orphaned packages |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
More Cheat Sheets by misterrabinhalder