dnf: add and reorder examples (#4063)

Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
client-spec/clarity
jn64 2020-05-28 20:07:09 +08:00 committed by GitHub
parent e414560b9e
commit c7ae6b3d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 10 deletions

View File

@ -1,6 +1,19 @@
# dnf
> Package management utility for RHEL, Fedora, and CentOS (replaces yum).
> More information: <https://dnf.readthedocs.io/>.
- Upgrade installed packages to the newest available versions:
`sudo dnf upgrade`
- Search packages via keywords:
`dnf search {{keywords}}`
- Display details about a package:
`dnf info {{package}}`
- Install a new package:
@ -14,18 +27,10 @@
`sudo dnf remove {{package}}`
- Upgrade installed packages to newest available versions:
`sudo dnf upgrade`
- List installed packages:
`dnf list --installed`
- Search packages via keyword:
- Find which packages provide a given file:
`sudo dnf search {{keyword}}`
- Find which packages provide a given value:
`sudo dnf provides {{value}}`
`dnf provides {{file}}`