blob: 1a99ad7de626e05404bf8435de6018f73a812d26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
_BASIC OPERATIONS_
# Action Arch Debian/Ubuntu
1. Install a package(s) by name `pacman -S` `apt install`
2. Remove a package(s) by name `pacman -Rs` `apt remove`
3. Search for package(s) `pacman -Ss` `apt search`
4. Upgrade Packages `pacman -Syu` `apt update && apt upgrade`
- Install packages which have an older version
- already installed
5. Upgrade Packages `pacman -Syu` `apt update && apt dist-upgrade`
- Another form of the update command, which can
- perform more complex updates -- like
- distribution upgrades. When the usual update
- command will omit package updates, which
- include changes in dependencies, this command
- can perform those updates.
6. Clean up all local caches. `pacman -Sc` `apt autoclean`
- Options might limit what is actually cleaned. `pacman -Scc` `apt clean`
- Autoclean removes only unneeded, obsolete
- information.
7. Remove dependencies that are no longer needed, `pacman -Qdtq | pacman -Rs -` `apt autoremove`
- because e.g. the package which needed the
- dependencies was removed.
8. Remove packages no longer included in any `pacman -Qmq | pacman -Rs -` `aptitude purge '~o'`
- repositories.
9. Mark a package previously installed as a `pacman -D --asexplicit` `apt-mark manual`
- dependency as explicitly required.
10. Install package(s) as dependency / without `pacman -S --asdeps` `apt-mark auto`
- marking as explicitly required.
11. Only downloads the given package(s)
- without unpacking or installing them `pacman -Sw` `apt install --download-only` (into package cache)
`apt download` (bypass the package cache)
12. Start a shell to enter multiple commands in `apt-config shell`
- one session
13. Show a log of actions taken by the software `cat /var/log/pacman.log` `cat /var/log/dpkg.log`
- management.
14. Get a dump of the whole system information `(see /var/lib/pacman/local)` `apt-cache stats`
- Prints, Saves or similar the current state
- of the package management system.
- Preferred output is text or XML.
15. e-mail delivery of package changes. `apt install apt-listchanges`
|