mirror of https://github.com/CrimsonTome/tldr.git
dnf: add and reorder examples (#4063)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>client-spec/clarity
parent
e414560b9e
commit
c7ae6b3d8a
|
@ -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}}`
|
||||
|
|
Loading…
Reference in New Issue