How to get regular stuff working: Difference between revisions
m (→Disk Management: Use pkg template) |
m (→Compiling : a few notes and a reminder: use pkg template.) |
||
Line 28: | Line 28: | ||
== Compiling : a few notes and a reminder == | == Compiling : a few notes and a reminder == | ||
Compiling in Alpine may be more challenging because it uses [https://musl.libc.org/ musl-libc] instead of glibc. Please review [https://wiki.musl-libc.org/functional-differences-from-glibc.html ' | Compiling in Alpine may be more challenging because it uses [https://musl.libc.org/ musl-libc] instead of glibc. Please review the [https://wiki.musl-libc.org/functional-differences-from-glibc.html '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 | Alpine offers the regular compiler stuff like gcc and cmake ... possible others | ||
==== (unvalidated) apk packages to install so one can start building software ==== | ==== (unvalidated) apk packages to install so one can start building software ==== | ||
{{Cmd|apk add build-base abuild}} | {{Cmd|apk add {{pkg|build-base}} {{pkg|abuild}}}} | ||
==== a complete install for cmake looks like ==== | ==== a complete install for cmake looks like ==== | ||
{{Cmd|apk add cmake extra-cmake-modules}} | {{Cmd|apk add {{pkg|cmake}} {{pkg|extra-cmake-modules}}}} | ||
==== ccache is also available ==== | ==== ccache is also available ==== | ||
{{Cmd|apk add ccache}} | {{Cmd|apk add {{pkg|ccache}}}} | ||
[[Category:Installation]] | [[Category:Installation]] |
Revision as of 13:52, 27 December 2023
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)
- Bash
It's also easy enough to install bash itself:
apk add bash bash-completion
and optionally, change the login shell with chsh
.
Disk Management
Managing (removable) disk is much easier with udisks
Installation
apk add udisks2
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 abuild
a complete install for cmake looks like
apk add cmake extra-cmake-modules
ccache is also available
apk add ccache