Skip to content

Commit a0a4f27

Browse files
znarfmManagor
andauthored
pactrans: add page (#19649)
Co-authored-by: Managor <[email protected]>
1 parent ec757b8 commit a0a4f27

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

pages/linux/pactrans.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# pactrans
2+
3+
> Install, remove, and upgrade ALPM packages.
4+
> See also: `pacinstall`, `pacremove`.
5+
> More information: <https://github.com/andrewgregory/pacutils/blob/master/doc/pactrans.pod>.
6+
7+
- Install a package from a repository:
8+
9+
`sudo pactrans --install {{package_name}}`
10+
11+
- Remove a package:
12+
13+
`sudo pactrans --remove {{package_name}}`
14+
15+
- Upgrade all installed packages:
16+
17+
`sudo pactrans --sysupgrade`
18+
19+
- Install a package file:
20+
21+
`sudo pactrans --file {{path/to/package.pkg.tar.zst}}`
22+
23+
- Replace a locally installed package with a package from a repository:
24+
25+
`sudo pactrans local/{{package_to_remove}} {{repository_name}}/{{package_to_install}}`
26+
27+
- Print what the transaction would do without performing it:
28+
29+
`pactrans --print-only --install {{package_name}}`

0 commit comments

Comments
 (0)