Alpine Linux: Difference between revisions
From Leo's Notes
This page was last edited on 10 December 2020, at 06:35.
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Alpine Linux is a small Linux distribution based on musl libc and busybox. This distribution is ideal for docker images because using Musl + BusyBox: | Alpine Linux is a small Linux distribution based on musl libc and busybox. This distribution is ideal for docker images because using Musl + BusyBox: | ||
== Package Management == | #reduces the size of the OS (lighter libc and a less utility binaries) | ||
#reduces the risk of breakage on different hosts with different kernels as things are statically linked. | |||
==Package Management== | |||
Use the {{code|apk}} utility. Search with {{code|apk search}} and install with {{code|apk add}}. | Use the {{code|apk}} utility. Search with {{code|apk search}} and install with {{code|apk add}}. | ||
== See Also == | === Lots of firmware installed === | ||
* https://wiki.alpinelinux.org/wiki/Main_Page | Alpine Linux installs a bunch of unnecessary firmware packages. You can remove these by running: | ||
* https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management | {{Highlight | ||
| code = # apk add linux-firmware-none | |||
| lang = terminal | |||
}} | |||
==See Also== | |||
*https://wiki.alpinelinux.org/wiki/Main_Page | |||
*https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management | |||
{{Navbox Linux}}[[Category:Linux]] | {{Navbox Linux}} | ||
[[Category:Linux]] | |||
[[Category:LinuxDistros]] | [[Category:LinuxDistros]] | ||
Revision as of 06:35, 10 December 2020
Alpine Linux is a small Linux distribution based on musl libc and busybox. This distribution is ideal for docker images because using Musl + BusyBox:
- reduces the size of the OS (lighter libc and a less utility binaries)
- reduces the risk of breakage on different hosts with different kernels as things are statically linked.
Package Management
Use the apk utility. Search with apk search and install with apk add.
Lots of firmware installed
Alpine Linux installs a bunch of unnecessary firmware packages. You can remove these by running:
# apk add linux-firmware-none
See Also
- https://wiki.alpinelinux.org/wiki/Main_Page
- https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management