summaryrefslogblamecommitdiff
path: root/src/admin/11_quickref.xml
blob: eab36e9c6ba571bfce051f6021f9fca8e9553477 (plain) (tree)
1
2
3
4
5


                                      
                                                                                                                                    
             









































































































                                                                                                                                                                                                                         

              
<?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>