Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-27 00:17:30 +00:00
parent dfbc0264f9
commit 273f2b186d
29 changed files with 401 additions and 35 deletions

21
tldr/linux/bootc-switch Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# bootc switch
> Target a new container image reference to boot.
> More information: <https://containers.github.io/bootc/man/bootc-switch.html>.
- Change the base OS to a new container image from a registry:
`sudo bootc switch {{image}}`
- Change the base OS to a new container image from the local image storage of the root user:
`sudo bootc switch --transport containers-storage {{image}}`
- Change the base OS to a new container image stored in a tarball:
`sudo bootc switch --transport oci-archive {{path/to/image.tar.gz}}`

View File

@@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git
- Insert a kernel module into the Linux kernel:
`insmod {{path/to/module.ko}}`
`sudo insmod {{path/to/module.ko}}`

12
tldr/linux/pacman-d Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pacman -D
> This command is an alias of `pacman --database`.
- View documentation for the original command:
`tldr pacman database`

View File

@@ -12,24 +12,24 @@ source: https://github.com/tldr-pages/tldr.git
- Mark a package as implicitly installed:
`sudo pacman --database --asdeps {{package}}`
`sudo pacman -D --asdeps {{package}}`
- Mark a package as explicitly installed:
`sudo pacman --database --asexplicit {{package}}`
`sudo pacman -D --asexplicit {{package}}`
- Check that all the package dependencies are installed:
- Chec[k] that all the package dependencies are installed:
`pacman --database --check`
`pacman -Dk`
- Check the repositories to ensure all specified dependencies are available:
- Chec[k] the sync [D]atabase to ensure all specified dependencies of downloadable packages are available:
`pacman --database --check --check`
`pacman -Dkk`
- Display only error messages:
- Chec[k] and display in [q]uiet mode (only error messages are displayed):
`pacman --database --check --quiet`
`pacman -Dkq`
- Display help:
`pacman --database --help`
`pacman -D --help`

12
tldr/linux/pacman-de Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pacman -T
> This command is an alias of `pacman --deptest`.
- View documentation for the original command:
`tldr pacman deptest`

View File

@@ -9,18 +9,18 @@ source: https://github.com/tldr-pages/tldr.git
> See also: `pacman`.
> More information: <https://manned.org/pacman.8>.
- Print the package names of the dependencies that aren't installed:
- Print the package names of the dependencies that are not installed:
`pacman --deptest {{package1 package2 ...}}`
`pacman -T {{package1 package2 ...}}`
- Check if the installed package satisfies the given minimum version:
`pacman --deptest "{{bash>=5}}"`
`pacman -T "{{bash>=5}}"`
- Check if a later version of a package is installed:
`pacman --deptest "{{bash>5}}"`
`pacman -T "{{bash>5}}"`
- Display help:
`pacman --deptest --help`
`pacman -T --help`

12
tldr/linux/pacman-u Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pacman -U
> This command is an alias of `pacman --upgrade`.
- View documentation for the original command:
`tldr pacman upgrade`

View File

@@ -11,24 +11,24 @@ source: https://github.com/tldr-pages/tldr.git
- Install one or more packages from files:
`sudo pacman --upgrade {{path/to/package1.pkg.tar.zst}} {{path/to/package2.pkg.tar.zst}}`
`sudo pacman -U {{path/to/package1.pkg.tar.zst}} {{path/to/package2.pkg.tar.zst}}`
- Install a package without prompting:
`sudo pacman --upgrade --noconfirm {{path/to/package.pkg.tar.zst}}`
`sudo pacman -U --noconfirm {{path/to/package.pkg.tar.zst}}`
- Overwrite conflicting files during a package installation:
`sudo pacman --upgrade --overwrite {{path/to/file}} {{path/to/package.pkg.tar.zst}}`
`sudo pacman -U --overwrite {{path/to/file}} {{path/to/package.pkg.tar.zst}}`
- Install a package, skipping the dependency version checks:
- Install a package, skipping the dependency [(d)] version checks:
`sudo pacman --upgrade --nodeps {{path/to/package.pkg.tar.zst}}`
`sudo pacman -Ud {{path/to/package.pkg.tar.zst}}`
- List packages that would be affected (does not install any packages):
- Fetch and [p]rint packages that would be affected by upgrade (does not install any packages):
`pacman --upgrade --print {{path/to/package.pkg.tar.zst}}`
`pacman -Up {{path/to/package.pkg.tar.zst}}`
- Display help:
`pacman --upgrade --help`
`pacman -U --help`

View File

@@ -12,14 +12,18 @@ source: https://github.com/tldr-pages/tldr.git
`steamos-session-select plasma`
- Change to gamemode:
- Change to gamemode (sets the system to boot into gamemode if `-persistent` options were selected previously):
`steamos-session-select gamescope`
`steamos-session-select`
- Change to Wayland desktop mode:
`steamos-session-select plasma-wayland`
- Change to Wayland desktop mode and have the device boot to desktop:
`steamos-session-select plasma-wayland-persistent`
- Change to X11 desktop mode:
- Change to X11 desktop mode and have the device boot to desktop:
`steamos-session-select plasma-x11-persistent`