Skip to content

Commit 91564b5

Browse files
Save changes at: 1741516824
1 parent ef6c524 commit 91564b5

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

cheat-sheet.md doc.md

+13-19
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sudo pacman -Rns [PackageName]
1919
Search for a package:
2020

2121
```bash
22-
pacman -Ss [PackageName]
22+
sudo pacman -Ss [PackageName]
2323
```
2424

2525
Query package info:
@@ -45,6 +45,18 @@ Clean cache:
4545
sudo pacman -Scc
4646
```
4747

48+
Check for orphaned packages:
49+
50+
```bash
51+
pacman -Qdtq
52+
```
53+
54+
Remove all orphans:
55+
56+
```bash
57+
pacman -Qdtq | pacman -Rns -
58+
```
59+
4860
## Maintenance
4961

5062
Generates a random mirrorlist for the users and sort them by their current access time.
@@ -78,24 +90,6 @@ journalctl --vacuum-size=50M
7890
journalctl --vacuum-time=2weeks
7991
```
8092

81-
Check for orphaned packages:
82-
83-
```bash
84-
pamac list -o
85-
```
86-
87-
Remove all orphans:
88-
89-
```bash
90-
pamac remove -o
91-
```
92-
93-
Remove all packages except the latest 3 versions:
94-
95-
```bash
96-
pamac clean --keep 3
97-
```
98-
9993
## AUR
10094

10195
Search for package

0 commit comments

Comments
 (0)