-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharch_cheatsheet.txt
80 lines (53 loc) · 1.18 KB
/
arch_cheatsheet.txt
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
pacman
======
view logs: /var/log/pacman.log
update system
# pacman -Syu
list installed packages
# pacman -Q
list packages no longer required by others
# pacman -Qdtq
search installed packages
# pacman -Qs <name>
search packages
# pacman -Ss <name>
install packages
# pacman -S <name>
remove package, its dependencies and config file backups
# pacman -Rns <name>
clean old packages in cache
# pacman -Sc
yaourt
======
same as pacman
systemd
=======
unit files: /usr/lib/systemd/system/ or /etc/systemd/system/
list running units
$ systemctl
check status
$ systemctl status <unit>
start/stop a service
# systemctl (start|stop) <unit>
enable/disable a service at bootup
# systemctl (enable|disable) <unit>
reload systemd
# systemctl daemon-reload
manual install of AUR packages
==============================
update repositories
# pacman -Sy
grab the package
$ curl -O <url> (e.g. https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz)
untar package
$ tar xzvf <package.tar.gz>
change into package directory
$ cd <package>
build and install
$ makepkg -si
java environments
=================
check status
$ archlinux-java status
set default version
# archlinux-java set <version>