mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
pactrans: add page (#19649)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
co-authored by
Managor
parent
ec757b82f7
commit
a0a4f27a20
@@ -0,0 +1,29 @@
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user