Commands
Commands that change the system need sudo. --dry-run previews install, remove, upgrade, reinstall, downgrade, distro-sync and autoremove without root.
Installing and removing
| Command | Alias | What it does |
install <pkg>… | in, pour | install packages (or local .rpm files) |
remove <pkg>… | rm, erase | remove packages |
reinstall <pkg> | rei | reinstall a package you installed |
downgrade <pkg> | dg | go back to an older version |
swap <old> <new> | | replace one package with another in one step |
autoremove | | remove dependencies nothing needs any more |
mark install|dependency <pkg> | | change why a package is installed |
Updating
| Command | Alias | What it does |
system-upgrade | | everything: your packages, Flatpaks and the system image; reboot afterwards |
upgrade | up, update | only the packages you installed |
check-upgrade | check-update | list available updates for your packages (drivers: only builds for the kernel you're running) |
kmod-upgrade | | switch the drivers you installed to the builds for the next system update's kernel (--dry-run to preview); the Software Center and system-upgrade run it for you |
distro-sync | | match your packages to the repositories' versions |
versionlock add|delete|list|clear | | hold packages at a version |
Finding things
| Command | Alias | What it does |
search <term> | se | search names and summaries |
info <pkg> | if | details |
list | ls | packages you installed; --base for the image's, --available, --upgrades, --extras, --obsoletes, --autoremove as in dnf. There's no --installed: plain rum list already is that |
provides <file or capability> | | which package provides it |
repoquery | rq | detailed queries, like dnf's |
leaves | | installed packages nothing else depends on |
origin <pkg> | | Base, Overlay or NotInstalled |
changelog <pkg> | | the package's changelog |
Repositories
| Command | What it does |
repolist --all | every repository and whether it's on |
repo list|info, repoinfo | repository details |
config-manager --set-enabled|--set-disabled <id> | turn repositories on or off (wildcards like 'rpmfusion-*' work) |
config-manager addrepo --from-repofile=<url> | add a vendor's repository |
copr enable|disable <owner>/<project> | COPR repositories |
History
| Command | What it does |
history list | past transactions |
history info <id> | what one transaction did |
history undo|redo|rollback <id> | reverse or repeat transactions |
Maintenance
| Command | Alias | What it does |
makecache | mc | refresh repository metadata |
clean all|packages|metadata | | clear the cache |
check | | check the package database |
restore-base-files <pkg> | | bring back system files an overlay package hid (try --dry-run first) |
download <pkg> | | download without installing |
needs-restarting | | what needs a restart after updates |
paths | | mode and paths |
Also available, as in dnf: group, environment, module, advisory, builddep, debuginfo-install, reposync, repomanage, repoclosure, automatic, completions.
Not available on an installed system: offline, offline-upgrade, offline-distrosync, the system-upgrade download/reboot subcommands, replay and do. New releases come as a new system image instead.