Difference between revisions of "How to get regular stuff working"

From Alpine Linux
Jump to: navigation, search
(Created page with "== Manpages == Not all man-pages or in Alpine, those who are are not readily available after installing man and man-pages, you also need to install mdocml-pages. Below is th...")
 
(Basic commands and shell hints)
 
(45 intermediate revisions by 8 users not shown)
Line 1: Line 1:
== Manpages ==
 
  
Not all man-pages or in Alpine, those who are are not readily available after installing man and man-pages,
+
== Basic commands and shell hints ==
you also need to install mdocml-pages. Below is the quick and easy commandline:
 
  
    #apk add man man-pages mdocml-pages
+
Alpine comes with busybox by default. Busybox is set up as an endpoint for numerous symlinks that substitute various utilities. Though busybox is not that bad, the busybox replacement commands may still be missing some functionality.
  
== a note and reminder on Compiling ==
+
To replace the symlinks to busybox, install:
  
Compiling in Alpine may be more challenging because it uses [musl libc] instead of glibc.
+
* Shell utilities (things like grep, [[awk]], ls are all busybox symlinks)
 +
  apk add util-linux pciutils usbutils coreutils binutils findutils grep
  
=== a list of apk packages to install should be inserted here to start compiling
+
* Bash
* unvalidated apk packages to install so one can start building software
+
It's also easy enough to install bash itself: 
   apk add build-base gcc
+
  apk add bash bash-doc bash-completion
 +
and optionally, change the login shell with '''chsh'''.
 +
 
 +
== Disk Management ==
 +
 
 +
Managing (removable) disk is much easier with udisks
 +
 
 +
Installation   
 +
 
 +
  apk add udisks2 udisks2-doc
 +
 
 +
To see the mounted disks
 +
 
 +
  udisksctl status
 +
 
 +
== Compiling : a few notes and a reminder  ==
 +
 
 +
Compiling in Alpine may be more challenging because it uses [http://www.musl-libc.org/ musl-libc] instead of glibc. Please review [http://wiki.musl-libc.org/wiki/Functional_differences_from_glibc 'The functional differences with glibc' ] if you think of porting packages or just for the sake of knowing, of course.
 +
 
 +
Alpine offers the regular compiler stuff like gcc and cmake ... possible others
 +
 
 +
==== (unvalidated) apk packages to install so one can start building software ====
 +
   apk add build-base gcc abuild binutils binutils-doc gcc-doc
 +
 
 +
==== a complete install for cmake looks like ====
 +
 
 +
  apk add cmake cmake-doc extra-cmake-modules extra-cmake-modules-doc
 +
 
 +
==== ccache is also available ====
 +
 
 +
  apk add ccache ccache-doc
 +
 
 +
[[Category:Installation]]

Latest revision as of 06:12, 29 July 2021

Basic commands and shell hints

Alpine comes with busybox by default. Busybox is set up as an endpoint for numerous symlinks that substitute various utilities. Though busybox is not that bad, the busybox replacement commands may still be missing some functionality.

To replace the symlinks to busybox, install:

  • Shell utilities (things like grep, awk, ls are all busybox symlinks)
  apk add util-linux pciutils usbutils coreutils binutils findutils grep
  • Bash

It's also easy enough to install bash itself:

  apk add bash bash-doc bash-completion

and optionally, change the login shell with chsh.

Disk Management

Managing (removable) disk is much easier with udisks

Installation

  apk add udisks2 udisks2-doc

To see the mounted disks

  udisksctl status

Compiling : a few notes and a reminder

Compiling in Alpine may be more challenging because it uses musl-libc instead of glibc. Please review 'The functional differences with glibc' if you think of porting packages or just for the sake of knowing, of course.

Alpine offers the regular compiler stuff like gcc and cmake ... possible others

(unvalidated) apk packages to install so one can start building software

  apk add build-base gcc abuild binutils binutils-doc gcc-doc

a complete install for cmake looks like

  apk add cmake cmake-doc extra-cmake-modules extra-cmake-modules-doc

ccache is also available

  apk add ccache ccache-doc