mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-25 03:52:29 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,10 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf
|
||||
|
||||
> Package management utility for RHEL, Fedora, and CentOS (replaces yum).
|
||||
> Some subcommands such as `group` and `config-manager` have their own usage documentation.
|
||||
> Package manager for Fedora 41+ and RHEL 10.
|
||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html>.
|
||||
> More information: <https://dnf5.readthedocs.io/en/latest/commands/index.html>.
|
||||
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
|
||||
@@ -22,11 +21,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`dnf {{[if|info]}} {{package}}`
|
||||
|
||||
- Install a new package (use `--assumeyes` to confirm all prompts automatically):
|
||||
- Install new packages (use `--assumeyes` to confirm all prompts automatically):
|
||||
|
||||
`sudo dnf {{[in|install]}} {{package1 package2 ...}}`
|
||||
|
||||
- Remove a package:
|
||||
- Remove packages:
|
||||
|
||||
`sudo dnf {{[rm|remove]}} {{package1 package2 ...}}`
|
||||
|
||||
@@ -36,8 +35,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Find which packages provide a given command:
|
||||
|
||||
`dnf {{[wp|provides]}} {{command}}`
|
||||
`dnf provides {{command}}`
|
||||
|
||||
- View all past operations:
|
||||
- Clean cached data:
|
||||
|
||||
`dnf {{[hist|history]}}`
|
||||
`sudo dnf clean {{all|dbcache|expire-cache|metadata|packages}}`
|
||||
|
||||
42
tldr/linux/dnf4
Normal file
42
tldr/linux/dnf4
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf4
|
||||
|
||||
> Package manager for RHEL 8/9 and older Fedora versions (pre-41).
|
||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html>.
|
||||
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
|
||||
`sudo dnf4 {{[up|upgrade]}}`
|
||||
|
||||
- Search packages via keywords:
|
||||
|
||||
`dnf4 {{[se|search]}} {{keyword1 keyword2 ...}}`
|
||||
|
||||
- Display details about a package:
|
||||
|
||||
`dnf4 {{[if|info]}} {{package}}`
|
||||
|
||||
- Install a new package (use `--assumeyes` to confirm all prompts automatically):
|
||||
|
||||
`sudo dnf4 {{[in|install]}} {{package1 package2 ...}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`sudo dnf4 {{[rm|remove]}} {{package1 package2 ...}}`
|
||||
|
||||
- List installed packages:
|
||||
|
||||
`dnf4 {{[ls|list]}} --installed`
|
||||
|
||||
- Find which packages provide a given command:
|
||||
|
||||
`dnf4 {{[wp|provides]}} {{command}}`
|
||||
|
||||
- View all past operations:
|
||||
|
||||
`dnf4 {{[hist|history]}}`
|
||||
@@ -5,39 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dnf5
|
||||
|
||||
> Package management utility for RHEL, Fedora, and CentOS (it replaces dnf, which in turn replaced yum).
|
||||
> DNF5 is a C++ rewrite of the DNF package manager featuring improved performance and a smaller size.
|
||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||
> More information: <https://dnf5.readthedocs.io/en/latest/commands/index.html>.
|
||||
> This command is an alias of `dnf`.
|
||||
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
- View documentation for the original command:
|
||||
|
||||
`sudo dnf5 upgrade`
|
||||
|
||||
- Search packages via keywords:
|
||||
|
||||
`dnf5 search {{keyword1 keyword2 ...}}`
|
||||
|
||||
- Display details about a package:
|
||||
|
||||
`dnf5 info {{package}}`
|
||||
|
||||
- Install new packages (Note: Use `-y` to confirm all prompts automatically):
|
||||
|
||||
`sudo dnf5 install {{package1 package2 ...}}`
|
||||
|
||||
- Remove packages:
|
||||
|
||||
`sudo dnf5 remove {{package1 package2 ...}}`
|
||||
|
||||
- List installed packages:
|
||||
|
||||
`dnf5 list --installed`
|
||||
|
||||
- Find which packages provide a given command:
|
||||
|
||||
`dnf5 provides {{command}}`
|
||||
|
||||
- Remove or expire cached data:
|
||||
|
||||
`sudo dnf5 clean all`
|
||||
`tldr dnf`
|
||||
|
||||
33
tldr/linux/gpm
Normal file
33
tldr/linux/gpm
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gpm
|
||||
|
||||
> Enable mouse support for the Linux virtual console.
|
||||
> More information: <https://manned.org/gpm>.
|
||||
|
||||
- Start gpm with a PS/2 [m]ouse of [t]ype ps2:
|
||||
|
||||
`sudo gpm -m /dev/input/mice -t ps2`
|
||||
|
||||
- Start gpm with a Microsoft serial [m]ouse of [t]ype ms:
|
||||
|
||||
`sudo gpm -m /dev/ttyS0 -t ms`
|
||||
|
||||
- Start gpm with a [m]ouse and [t]ype in the foreground for [D]ebugging:
|
||||
|
||||
`sudo gpm -m {{path/to/mouse_device}} -t {{mouse_type}} -D`
|
||||
|
||||
- [k]ill the running gpm:
|
||||
|
||||
`sudo gpm -k`
|
||||
|
||||
- Start gpm with a [m]ouse and [t]ype in [R]epeater mode for X server compatibility:
|
||||
|
||||
`sudo gpm -m {{path/to/mouse_device}} -t {{mouse_type}} -R`
|
||||
|
||||
- List the available mouse [t]ypes:
|
||||
|
||||
`gpm -t help`
|
||||
Reference in New Issue
Block a user