Alpine Linux: Difference between revisions
From Leo's Notes
This page was last edited on 17 December 2020, at 03:41.
No edit summary |
mNo edit summary |
||
| Line 7: | Line 7: | ||
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}}. | ||
=== Lots of firmware installed === | ===Lots of firmware installed=== | ||
Alpine Linux installs a bunch of unnecessary firmware packages. You can remove these by running: | Alpine Linux installs a bunch of unnecessary firmware packages. You can remove these by running: | ||
{{Highlight | {{Highlight | ||
| Line 13: | Line 13: | ||
| lang = terminal | | lang = terminal | ||
}} | }} | ||
=== Update Kernel parameters === | |||
Edit <code>/etc/update-extlinux.conf</code>, and change the value at <code>default_kernel_opts</code>. | |||
Run <code>update-extlinux</code> to update grub. | |||
==See Also== | ==See Also== | ||
Revision as of 03:41, 17 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
Update Kernel parameters
Edit /etc/update-extlinux.conf, and change the value at default_kernel_opts.
Run update-extlinux to update grub.
See Also
- https://wiki.alpinelinux.org/wiki/Main_Page
- https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management