alpine.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 21 Nov 2018 16:32:43 +0200
changeset 2287 fcdd583e8795
parent 2235 eb6107487d83
child 2296 2a1cf17e9552
permissions -rw-r--r--
Fixed RST syntax: Inline literal start-string without end-string.

.. -*- coding: utf-8; -*-

=====================
 Alpine Linux distro
=====================
.. contents::
   :local:

Init system
===========

Manage run levels::

  rc-update add $SERVICE $LEVEL
  rc-update del $SERVICE $LEVEL
  rc-service $SERVICE start
  rc-service $SERVICE restart
  rc-service $SERVICE stop

Equivalent to shutdown -r now from traditional GNU/Linux systems::

  reboot

Equivalent to shutdown -h now from traditional GNU/Linux systems::

  halt

To turn off the machine::

  poweroff

https://wiki.alpinelinux.org/wiki/Alpine_Linux_Init_System
  Alpine Linux Init System

Package manager
===============

Update local package database::

  $ sudo apk update

Upgrade package to latest version::

  $ sudo apk upgrade

Install package::

  $ sudo apk add bash

Do not grab package index with ``--no-cache`` option to reduce installation size::

  $ apk add --no-cache bash