Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-30 00:23:24 +00:00
parent d1988a6d2c
commit ce66b5e9bf
119 changed files with 333 additions and 158 deletions

34
tldr/linux/pactrans Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pactrans
> Install, remove, and upgrade ALPM packages.
> See also: `pacinstall`, `pacremove`.
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/pactrans.pod>.
- Install a package from a repository:
`sudo pactrans --install {{package_name}}`
- Remove a package:
`sudo pactrans --remove {{package_name}}`
- Upgrade all installed packages:
`sudo pactrans --sysupgrade`
- Install a package file:
`sudo pactrans --file {{path/to/package.pkg.tar.zst}}`
- Replace a locally installed package with a package from a repository:
`sudo pactrans local/{{package_to_remove}} {{repository_name}}/{{package_to_install}}`
- Print what the transaction would do without performing it:
`pactrans --print-only --install {{package_name}}`