You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pacman.md
+27-6
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,13 @@
1
1
# Installing
2
2
3
+
Search for available packages by name or description: `pacman -Ss <partial_text> | more`
4
+
3
5
Install package: `pacman -S <package_name>`
4
6
5
7
Install package and also sync package databases: `pacman -Sy <package_name>`
6
8
9
+
Build (and install with `-i`) your own package from a `PKGBUILD` file: `makepkg -si` (`-s` syncs dependencies)
10
+
7
11
# Updating
8
12
9
13
Update lists: `pacman -Sy`
@@ -16,7 +20,8 @@ Although the wiki recommends:
16
20
17
21
#
18
22
19
-
Remove a package: `pacman -R <package_name>` (the package_name should **not** include the namespace)
23
+
Remove a package (and dependencies): `pacman -Rcns <package_name>` (the package_name should **not** include the namespace) (Adding `-u` or doing just `-Rus` might be safer.) (I believe `-n` removes config and backup files, suitable if you don't intend to reinstall the package again in future.)
24
+
Remove a package (leaving dependencies installed): `pacman -R <package_name>`
20
25
21
26
For faster installs we can use powerpill, which downloads files in parallel.
22
27
@@ -25,12 +30,26 @@ Search local package names or descriptions: `pacman -Qs <partial_text>`
25
30
26
31
See full description of a package: `pacman -Qi <package_name>`
27
32
28
-
Search for available packages by name or description: `pacman -Ss <partial_text> | more`
29
-
30
-
Find the package which owns a file: `pacman -Qo <file>`
33
+
Find the package which owns a file: `pacman -Qo <file>` ("query owner")
31
34
32
35
List installed packages: `pacman -Qn`
33
36
37
+
OK but this is crazy, trying but failing to find vscode:
38
+
39
+
```
40
+
$ pacaur -Q code
41
+
visual-studio-code-bin 1.54.2-1
42
+
$ pacaur -Q visual
43
+
error: package 'visual' was not found
44
+
$ pacaur -Qn | egrep '(code|visual)'
45
+
... no visual-studio-code-bin ...
46
+
$ pacaur -Qs vscode
47
+
local/visual-studio-code-bin 1.54.2-1
48
+
Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version)
49
+
```
50
+
51
+
List packages which could be upgraded: `pacman -Sy && pacman -Qu` (note that this updates lists, so you should do a full upgrade before installing individual packages, or risk them not working)
52
+
34
53
List files in package: `pacman -Ql <package_name>`
35
54
36
55
List dependencies of an installed package: `pacman -Qi <package_name> | sed -n '/Depends\ On/,/:/p' | sed '$d' | cut -d: -f2`
@@ -39,7 +58,7 @@ List dependencies of a remote package: `pacman -Si <package_name> | sed -n '/Dep
39
58
40
59
List dependencies of an installed package using pactree: `pactree -u <package_name>`
41
60
42
-
List reverse dependencies of an installed package using pactree: `pactree -r <package_name>`
61
+
List reverse dependencies (why installed) of an installed package using pactree: `pactree -r <package_name>`
43
62
44
63
List dependencies of an installed package using expac: `expac -S '%r/%n: %D' <package_name>`
45
64
@@ -95,6 +114,8 @@ You could also automate the cleaning some pacman hooks: https://www.ostechnix.co
95
114
96
115
## My update process
97
116
117
+
This is now implemented in the script `~/bin/update-manjaro`
118
+
98
119
### Clear caches
99
120
100
121
We clear caches before making a snapshot.
@@ -209,5 +230,5 @@ Whereas earlier kernels installed more packages
20210615 - I am currently on 5.10.41-1-MANJARO without nvidia support, but running ok. I haven't tried any games.
233
+
20210615 - I am currently on 5.10.41-1-MANJARO without nvidia support, but running ok. Games have been working fine. (Bad North, Borderlands2, Tharsis)
Copy file name to clipboardExpand all lines: vim_use_netrw_as_a_file_tree_sidebar.md
+10
Original file line number
Diff line number
Diff line change
@@ -110,3 +110,13 @@ Then focus your cursor on the target folder, and move the marked files with:
110
110
111
111
mm
112
112
113
+
114
+
115
+
# Editing in fullscreen
116
+
117
+
If you hit `<Enter>` in netrw to open a file instead of `v` then the file will open in the current window, without splitting. To get back to netrw you can:
118
+
119
+
:Ex to open netrw "explorer" in the current window
120
+
:Vex to open netrw in a sidebar (vertical split)
121
+
:Sex to open netrw at the top of the screen (horizontal split)
0 commit comments