blob: eab36e9c6ba571bfce051f6021f9fca8e9553477 (
plain) (
blame)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
<?xml version="1.0" encoding="utf-8"?>
<chapter label="11" id="quickref">
<title>Quick References</title>
<highlights><para>In this chapter, we will lay out common tasks and how to perform them using Adélie Linux.</para></highlights>
<section>
<title>Package management</title>
<table>
<title>Package management command quick-reference</title>
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<thead>
<row>
<entry>Task</entry>
<entry>Command</entry>
</row>
</thead>
<tbody>
<row>
<entry>Install a package</entry>
<entry><command>apk add <replaceable>PACKAGE</replaceable></command></entry>
</row>
<row>
<entry>Uninstall a package</entry>
<entry><command>apk del <replaceable>PACKAGE</replaceable></command></entry>
</row>
<row>
<entry>Search for a package</entry>
<entry><command>apk search <replaceable>name</replaceable></command></entry>
</row>
<row>
<entry>Reinstall a package</entry>
<entry><command>apk fix <replaceable>PACKAGE</replaceable></command></entry>
</row>
<row>
<entry>Audit system files for changes</entry>
<entry><command>apk audit</command></entry>
</row>
</tbody>
</tgroup>
</table>
</section>
<section>
<title>Service management</title>
<table>
<title>Service management command quick-reference</title>
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<thead>
<row>
<entry>Task</entry>
<entry>Command</entry>
</row>
</thead>
<tbody>
<row>
<entry>Enable a service (start on boot)</entry>
<entry><command>rc-update add <replaceable>SERVICE</replaceable> default</command></entry>
</row>
<row>
<entry>Disable a service (do not start on boot)</entry>
<entry><command>rc-update del <replaceable>SERVICE</replaceable></command></entry>
</row>
<row>
<entry>Start a service</entry>
<entry><command>service <replaceable>SERVICE</replaceable> start</command></entry>
</row>
<row>
<entry>Restart a service</entry>
<entry><command>service <replaceable>SERVICE</replaceable> restart</command></entry>
</row>
<row>
<entry>Stop a service</entry>
<entry><command>service <replaceable>SERVICE</replaceable> stop</command></entry>
</row>
<row>
<entry>Show all enabled services</entry>
<entry><command>rc-status</command></entry>
</row>
<row>
<entry>Show all available services</entry>
<entry><command>ls /etc/init.d</command></entry>
</row>
</tbody>
</tgroup>
</table>
</section>
<section>
<title>Networking</title>
<table>
<title>Networking command quick-reference</title>
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<thead>
<row>
<entry>Task</entry>
<entry>Command</entry>
</row>
</thead>
<tbody>
<row>
<entry>List all interfaces</entry>
<entry><command>ip link</command></entry>
</row>
<row>
<entry>Enable an interface at startup</entry>
<entry><para><command>ln -s /etc/init.d/net.lo /etc/init.d/net.<replaceable>IFACE</replaceable></command></para><command>rc-update add net.<replaceable>IFACE</replaceable> default</command></entry>
</row>
<row>
<entry>Disable an interface at startup</entry>
<entry><command>rc-update del net.<replaceable>IFACE</replaceable></command><para><command>rm /etc/init.d/net.<replaceable>IFACE</replaceable></command></para></entry>
</row>
</tbody>
</tgroup>
</table>
</section>
</chapter>
|