<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Newbyte</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Newbyte"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Newbyte"/>
	<updated>2026-05-01T23:48:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.21.0&amp;diff=27583</id>
		<title>Release Notes for Alpine 3.21.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.21.0&amp;diff=27583"/>
		<updated>2024-10-16T11:46:10Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Add note about linux-firmware now being compressed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Highlights ==&lt;br /&gt;
&lt;br /&gt;
* Go 1.23.1&lt;br /&gt;
* Rust 1.81&lt;br /&gt;
* GNOME 47&lt;br /&gt;
* KDE Plasma 6.1.5&lt;br /&gt;
* LXQt 2.0.0&lt;br /&gt;
* GCC 14.2.0&lt;br /&gt;
&lt;br /&gt;
== OpenSSH ==&lt;br /&gt;
&lt;br /&gt;
{{Note|TODO: Remove this section if https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/68589 gets merged before 3.21 is released }}&lt;br /&gt;
&lt;br /&gt;
You need to restart your sshd service!&lt;br /&gt;
&lt;br /&gt;
Since the &amp;lt;code&amp;gt;9.8_p1&amp;lt;/code&amp;gt; release, openssh-server is now split into two binaries, sshd and sshd-session. With this change sshd needs to be restarted to be able to accept new connections.&lt;br /&gt;
&lt;br /&gt;
Since managing services has always been out-of-scope for apk, we will NOT do the following for you:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
rc-service --ifstarted sshd restart&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== GNOME 47 ==&lt;br /&gt;
&lt;br /&gt;
GNOME 47 made it into Alpine 3.21. Everything should work as expected. Make sure you read the GNOME 47 release notes: https://release.gnome.org/47/&lt;br /&gt;
&lt;br /&gt;
== LXQt 2.0.0 ==&lt;br /&gt;
&lt;br /&gt;
LXQt has been updated to release 2.0. &lt;br /&gt;
* It now uses Qt6&lt;br /&gt;
* Many parts of LXQt are now wayland ready¹, but wayland ports of the following are pending: {{pkg|screengrab}}, {{pkg|lxqt-globalkeys}}, LXQt Panel&#039;s task-bar² and keyboard indicator, some input settings, and settings of monitor, power button, and screen locker.&lt;br /&gt;
* LXQt Panel has a new default application menu called Fancy Menu.&lt;br /&gt;
¹ [https://github.com/lxqt/lxqt-wayland-session lxqt-wayland-session] has not been released or packaged yet, but most folks wanting to test on wayland will want to use it.&amp;lt;br&amp;gt;&lt;br /&gt;
² Most folks testing LXQt on wayland are using {{pkg|waybar}} temporarily until the task-bar is ported.&lt;br /&gt;
&lt;br /&gt;
== Jellyfin ==&lt;br /&gt;
&lt;br /&gt;
Jellyfin now uses the recommended fork of ffmpeg called &amp;lt;code&amp;gt;jellyfin-ffmpeg&amp;lt;/code&amp;gt; by default. If you want to change that, take a look at the &amp;lt;code&amp;gt;ffmpegpath&amp;lt;/code&amp;gt; variable in &amp;lt;code&amp;gt;/etc/conf.d/jellyfin&amp;lt;/code&amp;gt;. ([https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/69924 !69924])&lt;br /&gt;
&lt;br /&gt;
== Bats ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;main/bats&amp;quot; was renamed to &amp;quot;main/bats-core&amp;quot;. Now there is a meta package &amp;quot;community/bats&amp;quot; which contains:&lt;br /&gt;
&lt;br /&gt;
* bats-core&lt;br /&gt;
* bats-file&lt;br /&gt;
* bats-support&lt;br /&gt;
* bats-assert&lt;br /&gt;
&lt;br /&gt;
== ISC DHCP ==&lt;br /&gt;
&lt;br /&gt;
{{Note|TODO: Write something cool if https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/70974 (or alternative) is merged }}&lt;br /&gt;
&lt;br /&gt;
== linux-firmware ==&lt;br /&gt;
&lt;br /&gt;
linux-firmware is now compressed with ZSTD compression. If you run a custom built Linux kernel, you need to ensure that &amp;lt;code&amp;gt;CONFIG_FW_LOADER_COMPRESS_ZSTD=y&amp;lt;/code&amp;gt; is set in your configuration.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.20.0&amp;diff=26702</id>
		<title>Release Notes for Alpine 3.20.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.20.0&amp;diff=26702"/>
		<updated>2024-05-11T10:44:51Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: /* GNOME 46 */ Add note about breaking change&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Base System ==&lt;br /&gt;
&lt;br /&gt;
=== grub 2.12 ===&lt;br /&gt;
&lt;br /&gt;
When upgrading existing installations using grub on UEFI systems, make sure to update the installed bootloader before rebooting, otherwise your machine might not boot.&lt;br /&gt;
&lt;br /&gt;
The problem is that grub added new configuration that executes &amp;lt;code&amp;gt;fwsetup --is-supported&amp;lt;/code&amp;gt;. The problem is that grub 2.06 does not supported the &amp;lt;code&amp;gt;--is-supported&amp;lt;/code&amp;gt; argument yet, causing grub to unconditionally try to reboot into firmware.&lt;br /&gt;
&lt;br /&gt;
Here is an example assuming the default setup. Don&#039;t blindly copy this examples but verify what&#039;s applicable to your system.&lt;br /&gt;
 &lt;br /&gt;
==== EFI ====&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&lt;br /&gt;
 # grub-install --target{{=}}&amp;lt;var&amp;gt;$target&amp;lt;/var&amp;gt; --efi-directory{{=}}&amp;lt;var&amp;gt;$efi_directory&amp;lt;/var&amp;gt; \&lt;br /&gt;
    --bootloader-id{{=}}alpine --boot-directory{{=}}/boot --no-nvram&lt;br /&gt;
 # install -D &amp;lt;var&amp;gt;$efi_directory&amp;lt;/var&amp;gt;/EFI/alpine/grub&amp;lt;var&amp;gt;$fwa&amp;lt;/var&amp;gt;.efi &amp;lt;var&amp;gt;$efi_directory&amp;lt;/var&amp;gt;/EFI/boot/boot&amp;lt;var&amp;gt;$fwa&amp;lt;/var&amp;gt;.efi&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
; target : The relevant [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 target] for your system&lt;br /&gt;
; efi_directory : Either {{Path|/boot/efi}} or {{Path|/boot}}. Run &amp;lt;code&amp;gt;awk &#039;$2 ~ /boot/ &amp;amp;&amp;amp; $3 ~ /fat|msdos/ { print $2 }&#039; /proc/mounts&amp;lt;/code&amp;gt; to confirm.&lt;br /&gt;
; fwa : The respective [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 firmware architecture] for your system&lt;br /&gt;
&lt;br /&gt;
==== Short-term work-around ====&lt;br /&gt;
&lt;br /&gt;
A short-term work-around to get the system bootable again is to restore the backup configuration:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|cp /boot/grub/grub.cfg.back /boot/grub.cfg }}&lt;br /&gt;
&lt;br /&gt;
This should allow you to boot the system again to fix it permanently. This will be reverted again when either grub or the kernel is updated again.&lt;br /&gt;
&lt;br /&gt;
This will only work if &amp;lt;code&amp;gt;update-grub&amp;lt;/code&amp;gt; has not been executed any more since the upgrade to grub 2.12.&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
&lt;br /&gt;
=== Redis ===&lt;br /&gt;
Due to [https://github.com/redis/redis/pull/13157 the relicensing of Redis] to [https://redis.io/legal/rsalv2-agreement/ RSALv2]+[https://redis.io/legal/server-side-public-license-sspl/ SSPLv1], a non-free license model, the [https://spdx.org/licenses/BSD-3-Clause.html BSD-3-Clause] licensed fork [https://valkey.io/ Valkey] has replaced Redis in the main package repository.&lt;br /&gt;
&lt;br /&gt;
A [https://pkgs.alpinelinux.org/packages?name=valkey-compat valkey-compat] package is provided with symlinks and group for easy Redis replacement.&lt;br /&gt;
&lt;br /&gt;
The [https://pkgs.alpinelinux.org/packages?name=redis redis aport] has been moved to the community repository, with a shorter support cycle, and will not be upgraded past 7.2.x due to the license change.&lt;br /&gt;
&lt;br /&gt;
Another replacement alternative, the [https://spdx.org/licenses/LGPL-3.0-only.html LGPL-3.0-only] licensed fork [https://redict.io/ Redict] is also available in the community repository.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== yq ===&lt;br /&gt;
yq was renamed to yq-go. https://gitlab.alpinelinux.org/alpine/aports/-/issues/16052&lt;br /&gt;
&lt;br /&gt;
=== aws-cli ===&lt;br /&gt;
Due to incompatibility issues with Python 3.12, aws-cli has been temporarily disabled until the issue is resolved by upstream. See the corresponding problem at upstream: https://github.com/aws/aws-cli/issues/8342&lt;br /&gt;
&lt;br /&gt;
=== GNOME 46 ===&lt;br /&gt;
&lt;br /&gt;
New upstream release of GNOME.&lt;br /&gt;
&lt;br /&gt;
Depending on how you installed GNOME, you may have to manually add &amp;lt;code&amp;gt;gcr-ssh-agent&amp;lt;/code&amp;gt; after upgrading to retain GNOME Keyring ssh integration.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.20.0&amp;diff=26697</id>
		<title>Release Notes for Alpine 3.20.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.20.0&amp;diff=26697"/>
		<updated>2024-05-08T08:44:41Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: /* Others */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Base System ==&lt;br /&gt;
&lt;br /&gt;
=== grub 2.12 ===&lt;br /&gt;
&lt;br /&gt;
When upgrading existing installations using grub on UEFI systems, make sure to update the installed bootloader before rebooting, otherwise your machine might not boot.&lt;br /&gt;
&lt;br /&gt;
The problem is that grub added new configuration that executes &amp;lt;code&amp;gt;fwsetup --is-supported&amp;lt;/code&amp;gt;. The problem is that grub 2.06 does not supported the &amp;lt;code&amp;gt;--is-supported&amp;lt;/code&amp;gt; argument yet, causing grub to unconditionally try to reboot into firmware.&lt;br /&gt;
&lt;br /&gt;
Here is an example assuming the default setup. Don&#039;t blindly copy this examples but verify what&#039;s applicable to your system.&lt;br /&gt;
 &lt;br /&gt;
==== EFI ====&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&lt;br /&gt;
 # grub-install --target{{=}}&amp;lt;var&amp;gt;$target&amp;lt;/var&amp;gt; --efi-directory{{=}}&amp;lt;var&amp;gt;$efi_directory&amp;lt;/var&amp;gt; \&lt;br /&gt;
    --bootloader-id{{=}}alpine --boot-directory{{=}}/boot --no-nvram&lt;br /&gt;
 # install -D &amp;lt;var&amp;gt;$efi_directory&amp;lt;/var&amp;gt;/EFI/alpine/grub&amp;lt;var&amp;gt;$fwa&amp;lt;/var&amp;gt;.efi &amp;lt;var&amp;gt;$efi_directory&amp;lt;/var&amp;gt;/EFI/boot/boot&amp;lt;var&amp;gt;$fwa&amp;lt;/var&amp;gt;.efi&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
; target : The relevant [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 target] for your system&lt;br /&gt;
; efi_directory : Either {{Path|/boot/efi}} or {{Path|/boot}}. Run &amp;lt;code&amp;gt;awk &#039;$2 ~ /boot/ &amp;amp;&amp;amp; $3 ~ /fat|msdos/ { print $2 }&#039; /proc/mounts&amp;lt;/code&amp;gt; to confirm.&lt;br /&gt;
; fwa : The respective [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 firmware architecture] for your system&lt;br /&gt;
&lt;br /&gt;
==== Short-term work-around ====&lt;br /&gt;
&lt;br /&gt;
A short-term work-around to get the system bootable again is to restore the backup configuration:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|cp /boot/grub/grub.cfg.back /boot/grub.cfg }}&lt;br /&gt;
&lt;br /&gt;
This should allow you to boot the system again to fix it permanently. This will be reverted again when either grub or the kernel is updated again.&lt;br /&gt;
&lt;br /&gt;
This will only work if &amp;lt;code&amp;gt;update-grub&amp;lt;/code&amp;gt; has not been executed any more since the upgrade to grub 2.12.&lt;br /&gt;
&lt;br /&gt;
== Others ==&lt;br /&gt;
&lt;br /&gt;
=== Redis ===&lt;br /&gt;
Due to [https://github.com/redis/redis/pull/13157 the relicensing of Redis] to [https://redis.io/legal/rsalv2-agreement/ RSALv2]+[https://redis.io/legal/server-side-public-license-sspl/ SSPLv1], a non-free license model, the [https://spdx.org/licenses/BSD-3-Clause.html BSD-3-Clause] licensed fork [https://valkey.io/ Valkey] has replaced Redis in the main package repository.&lt;br /&gt;
&lt;br /&gt;
A [https://pkgs.alpinelinux.org/packages?name=valkey-compat valkey-compat] package is provided with symlinks and group for easy Redis replacement.&lt;br /&gt;
&lt;br /&gt;
The [https://pkgs.alpinelinux.org/packages?name=redis redis aport] has been moved to the community repository, with a shorter support cycle, and will not be upgraded past 7.2.x due to the license change.&lt;br /&gt;
&lt;br /&gt;
Another replacement alternative, the [https://spdx.org/licenses/LGPL-3.0-only.html LGPL-3.0-only] licensed fork [https://redict.io/ Redict] is also available in the community repository.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== yq ===&lt;br /&gt;
yq was renamed to yq-go. https://gitlab.alpinelinux.org/alpine/aports/-/issues/16052&lt;br /&gt;
&lt;br /&gt;
=== aws-cli ===&lt;br /&gt;
Due to incompatibility issues with Python 3.12, aws-cli has been temporarily disabled until the issue is resolved by upstream. See the corresponding problem at upstream: https://github.com/aws/aws-cli/issues/8342&lt;br /&gt;
&lt;br /&gt;
=== GNOME 46 ===&lt;br /&gt;
&lt;br /&gt;
New upstream release of GNOME.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.20.0&amp;diff=26636</id>
		<title>Release Notes for Alpine 3.20.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.20.0&amp;diff=26636"/>
		<updated>2024-04-16T12:59:46Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Fix missing closing tag&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Base System ==&lt;br /&gt;
&lt;br /&gt;
=== grub 2.12 ===&lt;br /&gt;
&lt;br /&gt;
When upgrading existing installations using grub on UEFI systems, make sure to update the installed bootloader before rebooting, otherwise your machine might not boot.&lt;br /&gt;
&lt;br /&gt;
The problem is that grub added new configuration that executes &amp;lt;code&amp;gt;fwsetup --is-supported&amp;lt;/code&amp;gt;. The problem is that grub 2.06 does not supported the &amp;lt;code&amp;gt;--is-supported&amp;lt;/code&amp;gt; argument yet, causing grub to unconditionally try to reboot into firmware.&lt;br /&gt;
&lt;br /&gt;
Here is an example assuming the default setup. Don&#039;t blindly copy this examples but verify what&#039;s applicable to your system.&lt;br /&gt;
 &lt;br /&gt;
==== EFI ====&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&lt;br /&gt;
 # grub-install --target{{=}}&amp;lt;var&amp;gt;$target&amp;lt;/var&amp;gt; --efi-directory{{=}}&amp;lt;var&amp;gt;$efi_directory&amp;lt;/var&amp;gt; \&lt;br /&gt;
    --bootloader-id{{=}}alpine --boot-directory{{=}}/boot --no-nvram&lt;br /&gt;
 # install -D &amp;lt;var&amp;gt;$efi_directory&amp;lt;/var&amp;gt;/EFI/alpine/grub&amp;lt;var&amp;gt;$fwa&amp;lt;/var&amp;gt;.efi &amp;lt;var&amp;gt;$efi_directory&amp;lt;/var&amp;gt;/EFI/boot/boot&amp;lt;var&amp;gt;$fwa&amp;lt;/var&amp;gt;.efi&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
; target : The relevant [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 target] for your system&lt;br /&gt;
; efi_directory : Either {{Path|/boot/efi}} or {{Path|/boot}}. Run &amp;lt;code&amp;gt;awk &#039;$2 ~ /boot/ &amp;amp;&amp;amp; $3 ~ /fat|msdos/ { print $2 }&#039; /proc/mounts&amp;lt;/code&amp;gt; to confirm.&lt;br /&gt;
; fwa : The respective [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-disk.in#L320-324 firmware architecture] for your system&lt;br /&gt;
&lt;br /&gt;
==== Short-term work-around ====&lt;br /&gt;
&lt;br /&gt;
A short-term work-around to get the system bootable again is to restore the backup configuration:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|cp /boot/grub/grub.cfg.back /boot/grub.cfg }}&lt;br /&gt;
&lt;br /&gt;
This should allow you to boot the system again to fix it permanently. This will be reverted again when either grub or the kernel is updated again.&lt;br /&gt;
&lt;br /&gt;
This will only work if &amp;lt;code&amp;gt;update-grub&amp;lt;/code&amp;gt; has not been executed any more since the upgrade to grub 2.12.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.16.0&amp;diff=21814</id>
		<title>Release Notes for Alpine 3.16.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.16.0&amp;diff=21814"/>
		<updated>2022-05-04T13:30:29Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Important changes ==&lt;br /&gt;
&lt;br /&gt;
=== /tmp mounted as tmpfs ===&lt;br /&gt;
&lt;br /&gt;
Previously &amp;lt;code&amp;gt;/tmp&amp;lt;/code&amp;gt; was just part of the root filesystem and was cleaned on boot via the bootmisc openrc service script. In v3.16, on new installation, &amp;lt;code&amp;gt;/tmp&amp;lt;/code&amp;gt; will be mounted as tmpfs. &lt;br /&gt;
&lt;br /&gt;
== New features and noteworthy new packages ==&lt;br /&gt;
&lt;br /&gt;
=== Fixed not showing boot output using consoles with drivers compiled as modules ===&lt;br /&gt;
&lt;br /&gt;
Fixed OpenRC output not being shown on VirtIO consoles.&lt;br /&gt;
&lt;br /&gt;
=== SDL 1.2 migrated to SDL 1.2 compat ===&lt;br /&gt;
&lt;br /&gt;
The old sdl package (SDL 1.2) was moved from community to testing and as such won&#039;t be part of Alpine 3.16. Applications that use sdl instead use sdl12-compat, which is based on the much more well-maintained sdl2 (SDL 2.0). This results in various improvements such as support for Wayland, PipeWire, and more gamepads.&lt;br /&gt;
&lt;br /&gt;
== Significant updates ==&lt;br /&gt;
&lt;br /&gt;
=== KDE ===&lt;br /&gt;
&lt;br /&gt;
Plasma has been upgraded from 5.23 to 5.24.&lt;br /&gt;
&lt;br /&gt;
KDE applications (the release service) have been upgraded from 21.08 to 22.04 and KDE Frameworks have been upgraded from 5.88 to 5.93.&lt;br /&gt;
&lt;br /&gt;
Plasma Mobile Gear have been upgraded from 21.12 to 22.04.&lt;br /&gt;
&lt;br /&gt;
=== GNOME 42 ===&lt;br /&gt;
&lt;br /&gt;
Most GNOME packages have been upgraded to version 42.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.16.0&amp;diff=21813</id>
		<title>Release Notes for Alpine 3.16.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.16.0&amp;diff=21813"/>
		<updated>2022-05-04T13:30:19Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Add SDL 1.2 compat -&amp;gt; 2.0&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Important changes ==&lt;br /&gt;
&lt;br /&gt;
=== /tmp mounted as tmpfs ===&lt;br /&gt;
&lt;br /&gt;
Previously &amp;lt;code&amp;gt;/tmp&amp;lt;/code&amp;gt; was just part of the root filesystem and was cleaned on boot via the bootmisc openrc service script. In v3.16, on new installation, &amp;lt;code&amp;gt;/tmp&amp;lt;/code&amp;gt; will be mounted as tmpfs. &lt;br /&gt;
&lt;br /&gt;
== New features and noteworthy new packages ==&lt;br /&gt;
&lt;br /&gt;
=== Fixed not showing boot output using consoles with drivers compiled as modules ===&lt;br /&gt;
&lt;br /&gt;
Fixed OpenRC output not being shown on VirtIO consoles.&lt;br /&gt;
&lt;br /&gt;
== SDL 1.2 migrated to SDL 1.2 compat ==&lt;br /&gt;
&lt;br /&gt;
The old sdl package (SDL 1.2) was moved from community to testing and as such won&#039;t be part of Alpine 3.16. Applications that use sdl instead use sdl12-compat, which is based on the much more well-maintained sdl2 (SDL 2.0). This results in various improvements such as support for Wayland, PipeWire, and more gamepads.&lt;br /&gt;
&lt;br /&gt;
== Significant updates ==&lt;br /&gt;
&lt;br /&gt;
=== KDE ===&lt;br /&gt;
&lt;br /&gt;
Plasma has been upgraded from 5.23 to 5.24.&lt;br /&gt;
&lt;br /&gt;
KDE applications (the release service) have been upgraded from 21.08 to 22.04 and KDE Frameworks have been upgraded from 5.88 to 5.93.&lt;br /&gt;
&lt;br /&gt;
Plasma Mobile Gear have been upgraded from 21.12 to 22.04.&lt;br /&gt;
&lt;br /&gt;
=== GNOME 42 ===&lt;br /&gt;
&lt;br /&gt;
Most GNOME packages have been upgraded to version 42.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.16.0&amp;diff=21812</id>
		<title>Release Notes for Alpine 3.16.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.16.0&amp;diff=21812"/>
		<updated>2022-05-04T13:24:49Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Important changes ==&lt;br /&gt;
&lt;br /&gt;
=== /tmp mounted as tmpfs ===&lt;br /&gt;
&lt;br /&gt;
Previously &amp;lt;code&amp;gt;/tmp&amp;lt;/code&amp;gt; was just part of the root filesystem and was cleaned on boot via the bootmisc openrc service script. In v3.16, on new installation, &amp;lt;code&amp;gt;/tmp&amp;lt;/code&amp;gt; will be mounted as tmpfs. &lt;br /&gt;
&lt;br /&gt;
== New features and noteworthy new packages ==&lt;br /&gt;
&lt;br /&gt;
=== Fixed not showing boot output using consoles with drivers compiled as modules ===&lt;br /&gt;
&lt;br /&gt;
Fixed OpenRC output not being shown on VirtIO consoles.&lt;br /&gt;
&lt;br /&gt;
== Significant updates ==&lt;br /&gt;
&lt;br /&gt;
=== KDE ===&lt;br /&gt;
&lt;br /&gt;
Plasma has been upgraded from 5.23 to 5.24.&lt;br /&gt;
&lt;br /&gt;
KDE applications (the release service) have been upgraded from 21.08 to 22.04 and KDE Frameworks have been upgraded from 5.88 to 5.93.&lt;br /&gt;
&lt;br /&gt;
Plasma Mobile Gear have been upgraded from 21.12 to 22.04.&lt;br /&gt;
&lt;br /&gt;
=== GNOME 42 ===&lt;br /&gt;
&lt;br /&gt;
Most GNOME packages have been upgraded to version 42.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.16.0&amp;diff=21811</id>
		<title>Release Notes for Alpine 3.16.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.16.0&amp;diff=21811"/>
		<updated>2022-05-04T13:24:34Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Important changes ==&lt;br /&gt;
&lt;br /&gt;
=== /tmp mounted as tmpfs ===&lt;br /&gt;
&lt;br /&gt;
Previously &amp;lt;code&amp;gt;/tmp&amp;lt;/code&amp;gt; was just part of the root filesystem and was cleaned on boot via the bootmisc openrc service script. In v3.16, on new installation, &amp;lt;code&amp;gt;/tmp&amp;lt;/code&amp;gt; will be mounted as tmpfs. &lt;br /&gt;
&lt;br /&gt;
== New features and noteworthy new packages ==&lt;br /&gt;
&lt;br /&gt;
=== Fixed not showing boot output using consoles with drivers compiled as modules ===&lt;br /&gt;
&lt;br /&gt;
Fixed OpenRC output not being shown on VirtIO consoles.&lt;br /&gt;
&lt;br /&gt;
== Significant updates ==&lt;br /&gt;
&lt;br /&gt;
=== KDE ===&lt;br /&gt;
&lt;br /&gt;
Plasma has been upgraded from 5.23 to 5.24.&lt;br /&gt;
&lt;br /&gt;
KDE applications (the release service) have been upgraded from 21.08 to 22.04 and KDE Frameworks have been upgraded from 5.88 to 5.93.&lt;br /&gt;
&lt;br /&gt;
Plasma Mobile Gear have been upgraded from 21.12 to 22.04.&lt;br /&gt;
&lt;br /&gt;
=== GNOME 41 ===&lt;br /&gt;
&lt;br /&gt;
Most GNOME packages have been upgraded to version 41.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Newbyte&amp;diff=20405</id>
		<title>User:Newbyte</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Newbyte&amp;diff=20405"/>
		<updated>2021-12-04T11:53:58Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi! I&#039;m Newbyte.&lt;br /&gt;
&lt;br /&gt;
My notes for upgrading GNOME: [[User:Newbyte/Upgrading_GNOME]]&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Newbyte/Upgrading_GNOME&amp;diff=20404</id>
		<title>User:Newbyte/Upgrading GNOME</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Newbyte/Upgrading_GNOME&amp;diff=20404"/>
		<updated>2021-12-04T11:51:54Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Created page with &amp;quot;== List of packages to upgrade when upgrading GNOME ==  Note that this list probably is incomplete.  * baobab * calls * eog * gcr * gdm * gjs * glib-networking * gnome-boxes *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== List of packages to upgrade when upgrading GNOME ==&lt;br /&gt;
&lt;br /&gt;
Note that this list probably is incomplete.&lt;br /&gt;
&lt;br /&gt;
* baobab&lt;br /&gt;
* calls&lt;br /&gt;
* eog&lt;br /&gt;
* gcr&lt;br /&gt;
* gdm&lt;br /&gt;
* gjs&lt;br /&gt;
* glib-networking&lt;br /&gt;
* gnome-boxes&lt;br /&gt;
* gnome-builder&lt;br /&gt;
* gnome-calendar&lt;br /&gt;
* gnome-characters&lt;br /&gt;
* gnome-chess&lt;br /&gt;
* gnome-contacts&lt;br /&gt;
* gnome-control-center&lt;br /&gt;
* gnome-desktop&lt;br /&gt;
* gnome-font-viewer&lt;br /&gt;
* gnome-initial-setup&lt;br /&gt;
* gnome-maps&lt;br /&gt;
* gnome-music&lt;br /&gt;
* gnome-online-accounts&lt;br /&gt;
* gnome-remote-desktop&lt;br /&gt;
* gnome-screenshot&lt;br /&gt;
* gnome-session&lt;br /&gt;
* gnome-settings-daemon&lt;br /&gt;
* gnome-shell&lt;br /&gt;
* gnome-shell-extensions&lt;br /&gt;
* gnome-system-monitor&lt;br /&gt;
* gnome-terminal&lt;br /&gt;
* gnome-user-docs&lt;br /&gt;
* gnome-weather&lt;br /&gt;
* gsettings-desktop-schemas&lt;br /&gt;
* gtksourceview4&lt;br /&gt;
* gtksourceview5&lt;br /&gt;
* gtkmm3&lt;br /&gt;
* gtk-vnc&lt;br /&gt;
* libadwaita&lt;br /&gt;
* libdazzle&lt;br /&gt;
* libhandy1&lt;br /&gt;
* mutter&lt;br /&gt;
* nautilus&lt;br /&gt;
* orca&lt;br /&gt;
* simple-scan&lt;br /&gt;
* tracker&lt;br /&gt;
* tracker-miners&lt;br /&gt;
* yelp-tools&lt;br /&gt;
* yelp-xsl&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Newbyte&amp;diff=20403</id>
		<title>User:Newbyte</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Newbyte&amp;diff=20403"/>
		<updated>2021-12-04T11:38:44Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Created page with &amp;quot;Hi! I&amp;#039;m Newbyte.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi! I&#039;m Newbyte.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.15.0&amp;diff=20241</id>
		<title>Release Notes for Alpine 3.15.0</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Release_Notes_for_Alpine_3.15.0&amp;diff=20241"/>
		<updated>2021-11-08T09:44:30Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Add GNOME 41&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== aports ==&lt;br /&gt;
&lt;br /&gt;
=== 5.15 LTS kernels === &lt;br /&gt;
&lt;br /&gt;
linux-lts and linux-virt upgraded to 5.15&lt;br /&gt;
&lt;br /&gt;
=== QtWebKit was removed due to lack of upstream support ===&lt;br /&gt;
&lt;br /&gt;
qt5-qtwebkit, kdewebkit, wkhtmltopdf, and py3-pdfkit have been removed due to known vulnerabilities and lack of upstream support for qtwebkit. Other programs have been adjusted to use qt5-qtwebengine where appropriate. The most direct replacement for wkhtmltopdf is weasyprint, which is available in the Alpine Linux community repository. puppeteer and pandoc are also options, depending on your needs. See [https://gitlab.alpinelinux.org/alpine/aports/-/issues/12888 #12888] for more information.&lt;br /&gt;
&lt;br /&gt;
=== radvd no longer enables ipv6 forwarding ===&lt;br /&gt;
&lt;br /&gt;
The radvd init script no longer enables ipv6 forwarding. To enable ipv6 forwarding (necessary for most networks), add &amp;lt;code&amp;gt;net.ipv6.conf.all.forwarding=1&amp;lt;/code&amp;gt; to {{path|/etc/sysctl.conf}} or to a file in {{path|/etc/sysctl.d}}.&lt;br /&gt;
&lt;br /&gt;
=== New package signing keys ===&lt;br /&gt;
&lt;br /&gt;
New signing keys have been generated for v3.15 ongoing. The key size has been increased from 2048 bits to 4096 bits. Make sure you have &amp;lt;code&amp;gt;alpine-keys-2.4-r0&amp;lt;/code&amp;gt; or later before upgrading to 3.15 (or downgrading from edge).&lt;br /&gt;
&lt;br /&gt;
=== Ruby 3.0.2 ===&lt;br /&gt;
&lt;br /&gt;
Ruby has been upgraded to version 3.0.2.&lt;br /&gt;
&lt;br /&gt;
=== LLVM12 added ===&lt;br /&gt;
&lt;br /&gt;
LLVM12 is now available.&lt;br /&gt;
&lt;br /&gt;
=== KDE ===&lt;br /&gt;
&lt;br /&gt;
KDE Plasma has been upgraded to version 5.23, and KDE Applications have been upgraded to 21.08.&lt;br /&gt;
Plasma Mobile Gear has been upgraded to 21.10.&lt;br /&gt;
&lt;br /&gt;
=== Node.js ===&lt;br /&gt;
&lt;br /&gt;
Node.js (LTS) has been upgraded to version 16.13.0. nodejs-current has been upgraded to 17.0.1.&lt;br /&gt;
&lt;br /&gt;
=== PHP ===&lt;br /&gt;
&lt;br /&gt;
PHP 7.4 started to phase out (1 year of security support left).&lt;br /&gt;
Transition to 8.0 is not finished yet as some app still require old version.&lt;br /&gt;
&lt;br /&gt;
=== Postgresql 14 ===&lt;br /&gt;
&lt;br /&gt;
Postgresql has been upgraded to version 14.0.&lt;br /&gt;
&lt;br /&gt;
=== Mercurial ===&lt;br /&gt;
&lt;br /&gt;
mercurial has been upgraded to 5.9.3 &lt;br /&gt;
&lt;br /&gt;
=== MIPS64 discontinued ===&lt;br /&gt;
&lt;br /&gt;
The build hardware we use for building the packages is broken and the architecture is EOL, so there is no new hardware available anymore. As a consequence, there will be no v3.15 release for mips64, and existing releases can no longer receive security updates, so continued use of this architecture is not recommended.&lt;br /&gt;
&lt;br /&gt;
=== Dlang build tools (DMD, DUB, LDC) have been updated ===&lt;br /&gt;
&lt;br /&gt;
Both compilers have been updated to frontend version v2.098.0 (LDC equivalent: v1.28.0).&lt;br /&gt;
Dub has been updated to v1.27.0.&lt;br /&gt;
LDC now always uses `--export-dynamic` so that code compiled without debug infos (`-g`) will still have the function name in its stack trace.&lt;br /&gt;
&lt;br /&gt;
=== OpenJDK 17 added ===&lt;br /&gt;
&lt;br /&gt;
The latest OpenJDK LTS version (17) has been added to this release and is available via the community repository.&lt;br /&gt;
&lt;br /&gt;
=== GNOME 41 ===&lt;br /&gt;
&lt;br /&gt;
Most GNOME packages have been upgraded to version 41.&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=GNOME&amp;diff=20171</id>
		<title>GNOME</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=GNOME&amp;diff=20171"/>
		<updated>2021-10-06T11:26:42Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Update gnome-apps install commands to reflect current situation.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Prerequisites =&lt;br /&gt;
&lt;br /&gt;
* [[Installation|Alpine Installation]]&lt;br /&gt;
* [[Setting_up_a_new_user#Creating_a_new_user|Create user accounts]]&lt;br /&gt;
* [[Alpine_setup_scripts#setup-xorg-base|Graphical base environment]]&lt;br /&gt;
* [[Enable_Community_Repository#Using_community_repositories|Enabled &amp;quot;community&amp;quot; repository]]&lt;br /&gt;
&lt;br /&gt;
= Installing packages =&lt;br /&gt;
&lt;br /&gt;
Install basic desktop system and gnome packages.&lt;br /&gt;
{{Cmd|# apk add gnome}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want, you can install additional GNOME apps for a more complete GNOME experience with:&lt;br /&gt;
{{Cmd|# apk add gnome-apps-core}}&lt;br /&gt;
&lt;br /&gt;
And further extra GNOME apps with&lt;br /&gt;
{{Cmd|# apk add gnome-apps-extra}}&lt;br /&gt;
&lt;br /&gt;
= Graphical login =&lt;br /&gt;
To start the GDM display manager and login with your user, you need a user other than root for this to succeed. GDM will refuse to start if no user accounts (accounts with a UID &amp;gt;= 1000) are available.&lt;br /&gt;
{{Cmd|rc-service gdm start}}&lt;br /&gt;
&lt;br /&gt;
Once you have verified correct operation, you can make GDM start at boot:&lt;br /&gt;
{{Cmd|rc-update add gdm}}&lt;br /&gt;
&lt;br /&gt;
= Enabling terminal apps =&lt;br /&gt;
If you want to use the gnome-terminal/other terminal applications you will need to install bash. If you want a typical bash setup also enable bash completion:&lt;br /&gt;
{{cmd|# apk add bash}}&lt;br /&gt;
{{cmd|# apk add bash-completion}}&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
If you are unable to log in, check /var/log/gdm/greeter.log, there may be info there from X that indicates failed modules, etc.&lt;br /&gt;
&lt;br /&gt;
If logging in from GDM kicks you back to the login screen, try {{cmd|# apk add bash}} (bug report: #10953 sorry cannot link yet)&lt;br /&gt;
&lt;br /&gt;
If GNOME Terminal doesn&#039;t start, add the following to /etc/locale.conf: LANG=en_US.UTF-8 and reboot.&lt;br /&gt;
&lt;br /&gt;
If the on-screen keyboard shows up in GDM after installing other UIs such as Phosh, you need to disable it by opening the Accessibility menu (top right) when you are in the GDM login screen. You can disable the on-screen keyboard there. Or set &amp;lt;code&amp;gt;org.gnome.desktop.a11y.applications screen-keyboard-enabled&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; for the &amp;lt;code&amp;gt;gdm&amp;lt;/code&amp;gt; user with &amp;lt;code&amp;gt;dconf&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Desktop]]&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=APKBUILD_Reference&amp;diff=19863</id>
		<title>APKBUILD Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=APKBUILD_Reference&amp;diff=19863"/>
		<updated>2021-07-17T12:08:47Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Remove redundant comma&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;APKBUILDs are the scripts that are created in order to build Alpine packages using the [[abuild]] tool.&lt;br /&gt;
&lt;br /&gt;
See [[aports]] for details on Alpine&#039;s official ports repository.&lt;br /&gt;
&lt;br /&gt;
This page is intended to serve as a reference for creating APKBUILDs; if this is your first time creating a package for Alpine Linux, please see [[Creating an Alpine package]].&lt;br /&gt;
&lt;br /&gt;
= Legend =&lt;br /&gt;
The following notes will assist you in understanding this document.&lt;br /&gt;
&lt;br /&gt;
In description text:&lt;br /&gt;
* If a variable is not prefixed with a &#039;&#039;$&#039;&#039;, it will be represented by italics (i.e., &#039;&#039;srcdir&#039;&#039; ).&lt;br /&gt;
* Functions will also be represented by italics, but will also end with a pair of parentheses (i.e., &#039;&#039;build()&#039;&#039; ).&lt;br /&gt;
* Shell commands will be represented &amp;lt;code&amp;gt;like this&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
{{Note|Variables that contain a path (e.g. &#039;&#039;$srcdir&#039;&#039; and &#039;&#039;$pkgdir&#039;&#039;) should always be quoted using double quotes (i.e., &#039;&#039;&amp;quot;$srcdir&amp;quot;&#039;&#039;).  This is done to prevent things from breaking, should the user have the APKBUILD in a directory path that contains spaces.}}&lt;br /&gt;
{{Note|All arbitrary variable and function names should be prefixed with an underscore character ( _ ) to avoid name clashes with the internals of abuild (for example, &#039;&#039;_luaversions&#039;&#039;).}}&lt;br /&gt;
&lt;br /&gt;
== abuild-defined variables ==&lt;br /&gt;
The following variables are defined by abuild:&lt;br /&gt;
&lt;br /&gt;
==== startdir ====&lt;br /&gt;
: The directory where the APKBUILD script is.&lt;br /&gt;
==== srcdir ====&lt;br /&gt;
: The directory where sources, from the &#039;&#039;source&#039;&#039; variable, are downloaded to and unpacked to.&lt;br /&gt;
==== pkgdir ====&lt;br /&gt;
: This directory should receive the files for the main package.  For example, a normal [http://en.wikipedia.org/wiki/GNU_build_system autotools] package would have &amp;lt;code&amp;gt;make DESTDIR=&amp;quot;$pkgdir&amp;quot; install&amp;lt;/code&amp;gt; in the &#039;&#039;package()&#039;&#039; function.&lt;br /&gt;
==== subpkgdir ====&lt;br /&gt;
: This directory should receive the files for a subpackage. This variable should only be used from subpackage functions.&lt;br /&gt;
==== builddir ====&lt;br /&gt;
: This variable should point to the directory inside the &#039;&#039;srcdir&#039;&#039; where the main package source is unpacked.  This is typically &#039;&#039;$srcdir/$pkgname-$pkgver&#039;&#039;.  It’s used by the default &#039;&#039;prepare()&#039;&#039; function as a working directory when applying patches.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== User-defined variables ==&lt;br /&gt;
The following variables should be defined by the user:&lt;br /&gt;
==== arch ====&lt;br /&gt;
: Package architecture(s) to build for.  Can be one or several seperated by whitespace of: &#039;&#039;&#039;[[x86]], [[x86_64]], [[armv7]], [[armhf]], [[aarch64]], [[ppc64le]], [[s390x]], [[mips64]], all&#039;&#039;&#039;, or &#039;&#039;&#039;noarch&#039;&#039;&#039;, where &#039;&#039;&#039;all&#039;&#039;&#039; means all architectures, and &#039;&#039;&#039;noarch&#039;&#039;&#039; means it&#039;s architecture-independent (e.g., a pure-python package). Architectures can be negated using the ! character to exclude them from the list of supported architectures. E.g. &#039;&#039;&#039;arch=&amp;quot;all !ppc64le&amp;quot;&#039;&#039;&#039; means that the package is allowed to be built on all architectures but the ppc64le architecture.&lt;br /&gt;
: {{Tip|To determine if your APKBUILD can use &#039;&#039;&#039;noarch&#039;&#039;&#039;: First specify &#039;&#039;&#039;all&#039;&#039;&#039; and then build the package by executing &amp;lt;code&amp;gt;abuild -r&amp;lt;/code&amp;gt;.  Watch the output towards the end for warnings saying that &#039;&#039;&#039;noarch&#039;&#039;&#039; can be used.  If the main package and all subpackages, if you have any subpackages, give a warning saying that &#039;&#039;&#039;noarch&#039;&#039;&#039; can be used, then you can use &#039;&#039;&#039;noarch&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
==== depends ====&lt;br /&gt;
: Run-time dependency package(s) that are not shared-object dependencies.  Shared objects dependencies are auto-detected and should not be specified here. To specify a conflicting package, add the package name prefixed with a &#039;!&#039;.&lt;br /&gt;
&lt;br /&gt;
==== depends_dev ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-dev&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
: {{Note|From ncopa on IRC: To find out if you need to add a package to depends_dev have a look at *requires* in usr/lib/pkgconfig/*.pc. With libtool it gets more complicated, but we should delete the .la files. Also check if there are any  /usr/bin/*-configure #!/bin/bash #!/usr/bin/perl or Python. Sometimes scripts or similar are generated at build time (i.e autoconf automake) then you normally don&#039;t need add those to depends_dev. You can also just add all -dev makedepends to depends_dev but it will slow the build process a little bit (more build dependencies).}}&lt;br /&gt;
&lt;br /&gt;
==== depends_doc ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-doc&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
==== depends_openrc ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-openrc&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
==== depends_libs ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-libs&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
==== depends_static ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-static&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
==== checkdepends ====&lt;br /&gt;
: Dependencies that are only required during the check phase, they are only installed if the check option is enabled&lt;br /&gt;
&lt;br /&gt;
==== giturl ====&lt;br /&gt;
:Git repository from which &amp;lt;code&amp;gt;abuild checkout&amp;lt;/code&amp;gt; checks out. You can checkout a specific branch in git by adding &amp;lt;code&amp;gt;-b $branch&amp;lt;/code&amp;gt;.&lt;br /&gt;
==== install ====&lt;br /&gt;
: There are 6 different types of install scripts.  Install scripts are named &#039;&#039;&#039;$pkgname.action&#039;&#039;&#039;, where &#039;&#039;&#039;action&#039;&#039;&#039; can be:  &#039;&#039;&#039;pre-install, post-install, pre-upgrade, post-upgrade, pre-deinstall&#039;&#039;&#039;, or &#039;&#039;&#039;post-deinstall&#039;&#039;&#039;.  For example, if &#039;&#039;pkgname&#039;&#039; is set to &#039;&#039;&#039;mypackage&#039;&#039;&#039; and &#039;&#039;install&#039;&#039; is set to &#039;&#039;&#039;$pkgname.post-install&#039;&#039;&#039;, then a script named &#039;&#039;&#039;mypackage.post-install&#039;&#039;&#039; must exist along-side the APKBUILD.&lt;br /&gt;
&amp;lt;blockquote&amp;gt;{{Note|Always use &amp;lt;code&amp;gt;/bin/sh&amp;lt;/code&amp;gt; for the command-line interpreter on the [http://en.wikipedia.org/wiki/Shebang_%28Unix%29 shebang line] of your install scripts.}}&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following are the different types of install scripts in detail:&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.pre-install =====&lt;br /&gt;
: This script is executed &#039;&#039;before installing&#039;&#039; the package.  Typical use is when the package needs a group and a user to be created. For example:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
addgroup -S clamav 2&amp;gt;/dev/null&lt;br /&gt;
adduser -S -D -H -s /bin/false -G clamav -g clamav clamav 2&amp;gt;/dev/null&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Note|If the script exits with a failure (e.g., if the user already exists), the package will not be installed and &amp;lt;code&amp;gt;apk&amp;lt;/code&amp;gt; will exit with failure, hence the &amp;lt;code&amp;gt;exit 0&amp;lt;/code&amp;gt; at the end.}}&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.post-install =====&lt;br /&gt;
: This script is executed &#039;&#039;after installing&#039;&#039; the package.&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.pre-upgrade =====&lt;br /&gt;
: This script is executed &#039;&#039;before upgrading/downgrading/reinstalling&#039;&#039; the package. Note that exiting with failure will not cause apk to exit with failure, but will mark the package as broken.&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.post-upgrade =====&lt;br /&gt;
: This script is executed &#039;&#039;after upgrading/downgrading/reinstalling&#039;&#039; the package.&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.pre-deinstall =====&lt;br /&gt;
: This script is executed &#039;&#039;before uninstalling&#039;&#039; the package.&lt;br /&gt;
: {{Note|If the script exits with failure, &amp;lt;code&amp;gt;apk&amp;lt;/code&amp;gt; will not uninstall the package.}}&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.post-deinstall =====&lt;br /&gt;
: This script is executed &#039;&#039;after uninstalling&#039;&#039; the package.&lt;br /&gt;
&lt;br /&gt;
==== install_if ====&lt;br /&gt;
:install_if can be used when a package needs to be installed when some packages are already installed or are in the dependency tree. It works in reverse to the &#039;&#039;recommends&#039;&#039; feature, that other package managers provide.&lt;br /&gt;
&lt;br /&gt;
: Typically this is used in a subpackage that should provide files which make sense with another package. For example:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
subpackages=&amp;quot;$pkgname-bash-completion:bashcomp:noarch&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
bashcomp() {&lt;br /&gt;
	pkgdesc=&amp;quot;Bash completions for $pkgname&amp;quot;&lt;br /&gt;
	install_if=&amp;quot;$pkgname=$pkgver-r$pkgrel bash-completion&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	install -Dm644 &amp;quot;$builddir&amp;quot;/doc/bash_completion/aria2c \&lt;br /&gt;
		&amp;quot;$subpkgdir&amp;quot;/usr/share/bash-completion/completions/_aria2c&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
From the aria2c APKBUILD. Note that the custom bashcomp() function is only necessary, because the files are not in /usr/share/bash-completion.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:In general, install_if should only be used with &#039;&#039;&#039;at least one versioned constraint&#039;&#039;&#039;. Otherwise, a package that was implicitly installed by install_if and then removed from the binary repositories, will not get purged with &amp;lt;code&amp;gt;apk upgrade&amp;lt;/code&amp;gt;. [https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10720#note_121298]&lt;br /&gt;
&lt;br /&gt;
==== license ====&lt;br /&gt;
: License(s) for the package, for example &amp;lt;code&amp;gt;GPL-3.0-or-later&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;BSD-2-Clause&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;MIT&amp;lt;/code&amp;gt; [[Creating_an_Alpine_package#license|(details)]].&lt;br /&gt;
&lt;br /&gt;
==== makedepends ====&lt;br /&gt;
: Build-time dependency package(s).&lt;br /&gt;
==== md5sums/sha256sums/sha512sums ====&lt;br /&gt;
: Checksums for the files/URLs listed in &#039;&#039;source&#039;&#039;.  The checksums are normally generated and updated by executing &amp;lt;code&amp;gt;abuild checksum&amp;lt;/code&amp;gt; and should be the last item in the APKBUILD.&lt;br /&gt;
&lt;br /&gt;
New packages should use only sha512sums.&lt;br /&gt;
&lt;br /&gt;
==== options ====&lt;br /&gt;
: Build-time options for the package.&lt;br /&gt;
&lt;br /&gt;
: {| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Option&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!archcheck&amp;lt;/code&amp;gt;&lt;br /&gt;
| Do not try to verify that the architecture of the binary files is the same architecture as abuild should build for. One example where it makes sense to set this are packages with firmware files, that get executed on another CPU (such as WiFi firmware).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!check&amp;lt;/code&amp;gt;&lt;br /&gt;
| Do not try to run the &amp;lt;code&amp;gt;check()&amp;lt;/code&amp;gt; function. Please always add a short comment after the &amp;lt;code&amp;gt;!check&amp;lt;/code&amp;gt; about why it&#039;s disabled. [https://github.com/alpinelinux/aports/pull/2322#discussion_r142545300] Creating a very simple check function, that calls &amp;lt;code&amp;gt;program --version&amp;lt;/code&amp;gt; is worse than disabling tests completely because it gives the false impression that the package is thoroughly tested with the testsuite from upstream. [https://github.com/alpinelinux/aports/pull/7326#discussion_r278797457]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;checkroot&amp;lt;/code&amp;gt;&lt;br /&gt;
| Specifies that the package&#039;s test suite will be run in &#039;&#039;fakeroot&#039;&#039;. This is necessary for some test suites which fail when run as non-root.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;net&amp;lt;/code&amp;gt;&lt;br /&gt;
| Allows network access when run in &#039;&#039;rootbld&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!strip&amp;lt;/code&amp;gt;&lt;br /&gt;
| Avoid stripping symbols from binaries.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;suid&amp;lt;/code&amp;gt;&lt;br /&gt;
| Allow [https://en.wikipedia.org/wiki/Setuid setuid] binaries.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!tracedeps&amp;lt;/code&amp;gt;&lt;br /&gt;
| Do not automatically find dependencies (e.g. by using &amp;lt;code&amp;gt;ldd&amp;lt;/code&amp;gt; to find dynamic libraries, which the resulting binary links against).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;chmod-clean&amp;lt;/code&amp;gt;&lt;br /&gt;
| Make all files writable in the src/ directory. Useful for packages that make files read-only in the process of building packages (go modules).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;toolchain&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t warn when g++ is in makedepends&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!dbg&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t create debugging subpackage&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ldpath-recursive&amp;lt;/code&amp;gt;&lt;br /&gt;
| Scan directories recursively when creating .so providers&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!spdx&amp;lt;/code&amp;gt;&lt;br /&gt;
| Do not check if the license= field has a SPDX compliant license&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;textrels&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t error out when text relocations are found&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;charset.alias&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t error out if /usr/lib/charset.alias is found&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;libtool&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t delete libtool .la files&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!fhs&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t enforce checks on path that follow the FHS&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== pkgdesc ====&lt;br /&gt;
: A brief, one-line description of what the package does.&lt;br /&gt;
&lt;br /&gt;
: Here&#039;s an example from the OpenSSH client package:&lt;br /&gt;
: &amp;lt;pre&amp;gt;pkgdesc=&amp;quot;Port of OpenBSD&#039;s free SSH release - client&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== pkggroups ====&lt;br /&gt;
: System group(s) to be created during build-time.  System group(s) should also be created in the &#039;&#039;&#039;[[APKBUILD Reference#.24pkgname.pre-install|$pkgname.pre-install]]&#039;&#039;&#039; script, so that the system group(s) are also created prior to package installation for run-time use.&lt;br /&gt;
==== pkgname ====&lt;br /&gt;
: The name of the package.  All letters should be lowercase.&lt;br /&gt;
: {{Note|When creating an APKBUILD of a module or library for another package, we use some common package prefixes, such as: &#039;&#039;lua-&#039;&#039;, &#039;&#039;perl-&#039;&#039;, &#039;&#039;php-&#039;&#039;, and &#039;&#039;py-&#039;&#039;.  Search aports for other common prefixes.}}&lt;br /&gt;
&lt;br /&gt;
==== pkgrel ====&lt;br /&gt;
: Alpine package release number.  Starts at 0 (zero).  Always increment &#039;&#039;pkgrel&#039;&#039; when making updates to an aport; reset &#039;&#039;pkgrel&#039;&#039; to 0 (zero) when incrementing &#039;&#039;pkgver&#039;&#039;.&lt;br /&gt;
==== pkgusers ====&lt;br /&gt;
: System user(s) to be created during build-time.  System user(s) should also be created in the &#039;&#039;&#039;[[APKBUILD Reference#.24pkgname.pre-install|$pkgname.pre-install]]&#039;&#039;&#039; script, so that the system user(s) are also created prior to package installation for run-time use.&lt;br /&gt;
==== pkgver ====&lt;br /&gt;
: The version of the software being packaged. Format for valid versions: &amp;lt;code&amp;gt;{digit}{.digit}...{letter}{_suf{#}}...{-r#}&amp;lt;/code&amp;gt; [https://git.alpinelinux.org/cgit/apk-tools/tree/src/version.c#n17]&lt;br /&gt;
: A Suffix &amp;lt;code&amp;gt;suf&amp;lt;/code&amp;gt; in the above format can be one of the following to indicate that the release is &#039;&#039;less recent&#039;&#039; than the version without the suffix: &amp;lt;code&amp;gt;alpha&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pre&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;rc&amp;lt;/code&amp;gt; [https://git.alpinelinux.org/cgit/apk-tools/tree/src/version.c#n75]&lt;br /&gt;
: These are for indicating &#039;&#039;more recent&#039;&#039; releases: &amp;lt;code&amp;gt;cvs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;svn&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;git&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt; [https://git.alpinelinux.org/cgit/apk-tools/tree/src/version.c#n76]&lt;br /&gt;
: All other suffices are invalid. To package a specific git commit, the date of the commit gets appended to the latest release, e.g. &amp;lt;code&amp;gt;1.0.0_git20180204&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== provides ====&lt;br /&gt;
: List of package names (and optionally version info) this package provides.&lt;br /&gt;
&lt;br /&gt;
: If package with a version is provided (provides=&#039;foo=1.2&#039;) apk will consider it as an alternate name and it will automatically consider the package for installation by the alternate name, and conflict with other packages having the same name, or provides.&lt;br /&gt;
&lt;br /&gt;
: If version is not provided (provides=&#039;foo&#039;), apk will consider it as virtual package name. Several package with same non-versioned provides can be installed simultaneously. However, none of them will be installed by default when requested by the virtual name - instead, error message is given and user is asked to choose which package providing the virtual name should be installed.&lt;br /&gt;
==== provider_priority ====&lt;br /&gt;
: A numeric value which is used by apk-tools to break ties when choosing a virtual package to satisfy a dependency. Higher values have higher priority. The primary use case is to specify the primary package that satisfies a virtual (provider).&lt;br /&gt;
==== replaces ====&lt;br /&gt;
: Allow this package to be installed at the same time as the listed packages, even if they have conflicting files. The files from this package will override (&amp;quot;take over&amp;quot;) the conflicting files.&lt;br /&gt;
&lt;br /&gt;
: This can be used to override config files with &amp;quot;policy packages&amp;quot; [https://gitlab.alpinelinux.org/alpine/apk-tools/-/commit/89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4].&lt;br /&gt;
&lt;br /&gt;
: Another use case is renaming packages (or moving files from one package to another): &amp;quot;replaces&amp;quot; will avoid the file conflict error that apk reports if it happens to install the new package before uninstalling the old package [https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10724#note_132872].&lt;br /&gt;
&lt;br /&gt;
: A common misconception is that &amp;quot;replaces&amp;quot; is used to replace packages (like in [https://wiki.archlinux.org/index.php/PKGBUILD#replaces PKGBUILD]). This is not the case, it is only for solving file conflicts. To let apk consider installing one package instead of another one, refer to [[#provides|provides]] (with the version).&lt;br /&gt;
&lt;br /&gt;
==== replaces_priority ====&lt;br /&gt;
: The priority of the replaces. If multiple packages replace files of each other, then the package with the highest &#039;&#039;replaces_priority&#039;&#039; will win.&lt;br /&gt;
&lt;br /&gt;
==== source ====&lt;br /&gt;
: The source variable is not only used to list the remote source files to fetch, it is also used to list the local files that abuild will need in order to build the apk. Examples of such local files include: init.d files, conf.d files, install files (see [[APKBUILD Reference#install|install variable]]), patches, and all other necessary files.&lt;br /&gt;
&lt;br /&gt;
: Here are few things to note:&lt;br /&gt;
&lt;br /&gt;
:* When you are finished adding local and/or remote files to &#039;&#039;source&#039;&#039;, you can execute the following command to add their checksums to the APKBUILD file:&lt;br /&gt;
:: {{Cmd|abuild checksum}}&lt;br /&gt;
:: {{Note|When later updating the content of &#039;&#039;source&#039;&#039;, or updating a file that is listed in &#039;&#039;source&#039;&#039;, you must also update their checksums again with the same command.}}&lt;br /&gt;
&lt;br /&gt;
:* When the remote file is hosted at SourceForge, it&#039;s best to specify the special mirrors link used by SourceForge:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;http://downloads.sourceforge.net/software/software-$pkgver.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: (or similar depending on the package).&lt;br /&gt;
&lt;br /&gt;
:* You can set target filename (eg &#039;save as...&#039;) by prefixing the URI with &#039;&#039;filename::&#039;&#039;. This is useful when the remote filename is not specified in the URI (ie, does not end in &#039;/software-1.0.tar.gz&#039;), such as:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;http://oss.example.org/?get=software&amp;amp;ver=1.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: or when the filename is braindead, like githubs&#039; download tags:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;https://github.com/software/software/archive/v$pkgver.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: The above two examples needs a target filename prefix:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;$pkgname-$pkgver.tar.gz::http://oss.example.org/?get=software&amp;amp;ver=$pkgver&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: and:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;$pkgname-$pkgver.tar.gz::https://github.com/software/software/archive/v$pkgver.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* abuild currently supports the following protocols for remote file retrieval:&lt;br /&gt;
:** http&lt;br /&gt;
:** https&lt;br /&gt;
:** ftp&lt;br /&gt;
&lt;br /&gt;
:* abuild currently supports the following archive types/archive file extensions:&lt;br /&gt;
:** .tar (only in Alpine &amp;gt;= 2.5)&lt;br /&gt;
:** .tar.gz / .tgz&lt;br /&gt;
:** .tar.bz2&lt;br /&gt;
:** .tar.lz (only in Alpine &amp;gt;=3.7)&lt;br /&gt;
:** .tar.lzma&lt;br /&gt;
:** .tar.xz&lt;br /&gt;
:** .zip&lt;br /&gt;
&lt;br /&gt;
:* &amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt; should only include variables that change often like &amp;lt;code&amp;gt;pkgver&amp;lt;/code&amp;gt; or a commit ID. CI will warn you if you include &amp;lt;code&amp;gt;pkgname&amp;lt;/code&amp;gt; in source. Other variables like for example &amp;lt;code&amp;gt;_pkgname&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;_pyname&amp;lt;/code&amp;gt; do not belong in &amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt; either.&lt;br /&gt;
&lt;br /&gt;
==== subpackages ====&lt;br /&gt;
: Subpackages built from this APKBUILD.  abuild will parse this variable and try to find a subpackage split function.  The split function must &#039;&#039;move&#039;&#039; files that do not belong in the main package, from &#039;&#039;$pkgdir&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.  Files and directories can also be &#039;&#039;copied&#039;&#039; from &#039;&#039;$startdir&#039;&#039; and &#039;&#039;$srcdir&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: The split function can be specified in 1 of 3 different methods:&lt;br /&gt;
:# subpkgname:&#039;&#039;&#039;splitfunc&#039;&#039;&#039;&lt;br /&gt;
:# $pkgname-&#039;&#039;&#039;splitfunc&#039;&#039;&#039;&lt;br /&gt;
:# &#039;&#039;&#039;splitfunc&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: {{Note|Split function names &#039;&#039;&#039;cannot&#039;&#039;&#039; use hyphens; use the first method above if the subpackage name contains a hyphen (-) character, like this: &#039;&#039;subpkg-name:subpkg_name&#039;&#039;, where &amp;lt;code&amp;gt;subpkg-name&amp;lt;/code&amp;gt; is the name of the &#039;&#039;&#039;subpackage&#039;&#039;&#039; and &amp;lt;code&amp;gt;subpkg_name&amp;lt;/code&amp;gt; is the name of the &#039;&#039;&#039;subpackage&#039;s split function&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
: {{Tip|For more information, see the [[APKBUILD_examples:Subpackages|Subpackages example]].}}&lt;br /&gt;
&lt;br /&gt;
==== triggers ====&lt;br /&gt;
: Apk-tools can &amp;quot;monitor&amp;quot; directories and execute a trigger if any package installed/uninstalled any file in the monitored dir. The triggers are always executed after the apk action (install, uninstall, upgrade).&lt;br /&gt;
&lt;br /&gt;
: The triggers are specified in the format: &#039;&#039;scriptname&#039;&#039;=&#039;&#039;pathlist&#039;&#039; where &#039;&#039;scriptname&#039;&#039; is the (sub)package name + .trigger suffix and pathlist is : separated list of the dirs to monitor.&lt;br /&gt;
&lt;br /&gt;
: The &#039;&#039;&#039;triggers&#039;&#039;&#039; variable must include the triggers for subpackages too if they have any.&lt;br /&gt;
&lt;br /&gt;
: It is possible to use wildcards (*) in the dir list.&lt;br /&gt;
&lt;br /&gt;
==== url ====&lt;br /&gt;
: The homepage for the package.  This is to help users find upstream documentation and other information regarding the package.&lt;br /&gt;
&lt;br /&gt;
==== langdir ====&lt;br /&gt;
: Path to where the language files are located for the &#039;&#039;&#039;-lang&#039;&#039;&#039; subpackage, defaults to &#039;&#039;&#039;/usr/share/locale&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== pcprefix ====&lt;br /&gt;
: Prefix all provides derived from parsing pkg-config Requires: with the value in this variable, example: &#039;&#039;&#039;&#039;pcprefix=&amp;quot;foo:&amp;quot;&#039;&#039;&#039; will produce &#039;&#039;&#039;pc:foo:bar&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== sonameprefix ====&lt;br /&gt;
: Prefix all provides derived from parsing shared objects with the value in this variable, example: &#039;&#039;&#039;sonameprefix=&amp;quot;foo&amp;quot;&#039;&#039;&#039; will produce &#039;&#039;&#039;so:foo:bar.so.X&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Functions =&lt;br /&gt;
{{Note|All functions that are not &#039;&#039;prepare()&#039;&#039;, &#039;&#039;build()&#039;&#039;, &#039;&#039;check()&#039;&#039; and &#039;&#039;package()&#039;&#039; should consider the current working directory as undefined, and should therefore use the [[APKBUILD Reference#abuild-defined_variables|abuild-defined directory variables]] to their advantage.}}&lt;br /&gt;
&lt;br /&gt;
 sanitycheck() -&amp;gt; clean()-&amp;gt; fetch() -&amp;gt; verify() -&amp;gt; unpack() -&amp;gt; prepare() -&amp;gt; mkusers() -&amp;gt; build() -&amp;gt; check() -&amp;gt; package() -&amp;gt; subpackages() -&amp;gt; language packs -&amp;gt; apk -&amp;gt; cleanup()&lt;br /&gt;
&lt;br /&gt;
== abuild-defined functions ==&lt;br /&gt;
The following functions are provided by abuild and can be overridden, but it is strongly discouraged on code review for some functions:&lt;br /&gt;
&lt;br /&gt;
==== fetch() ====&lt;br /&gt;
: Downloads remote sources listed in &#039;&#039;source&#039;&#039; to &#039;&#039;SRCDEST&#039;&#039; (&#039;&#039;SRCDEST&#039;&#039; is configured in &#039;&#039;/etc/abuild.conf&#039;&#039;) and creates symlinks in &#039;&#039;$srcdir&#039;&#039;.&lt;br /&gt;
==== unpack() ====&lt;br /&gt;
: unpack() will call default_unpack().&lt;br /&gt;
&lt;br /&gt;
: [https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L403 default_unpack()] unpacks .tar, .tgz, .tar.gz, .tar.lz (only available in Alpine &amp;gt;=3.7), .tar.bz2, .tar.lzma, .tar.xz, and .zip archives from a symlink in &#039;&#039;$srcdir&#039;&#039; associated with &#039;&#039;$SRCDEST&#039;&#039; (or distfiles folder) resulting in an unpacked folder in &#039;&#039;$srcdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==== dev() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-dev&#039;&#039;&#039; package is used to collect developer files and folders for use in other packages in the compilation process nothing more.  Without specifying a custom &#039;&#039;dev()&#039;&#039; function, abuild will call its internal &#039;&#039;dev()&#039;&#039; function, which in turn calls default_dev().&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;[https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L1605 default_dev()]&#039;&#039; will move any &#039;&#039;include&#039;&#039; folder and folders containing &#039;&#039;*.[acho]&#039;&#039; (static archive, c source, c header file, object file), &#039;&#039;*.prl&#039;&#039; file extension patterns in &#039;&#039;&amp;quot;$pkgdir&amp;quot;/{lib,usr}&#039;&#039; to &#039;&#039;&amp;quot;$subpkgdir&amp;quot;/{lib,usr}&#039;&#039; recursively; and &#039;&#039;*.so&#039;&#039; files from &#039;&#039;&amp;quot;$pkgdir&amp;quot;/{lib,usr/lib}&#039;&#039; to &#039;&#039;&amp;quot;$subpkgdir&amp;quot;/{lib,usr/lib}&#039;&#039;.  It will also scan and move &#039;&#039;usr/{include,lib/{pkgconfig,cmake,qt*/mkspecs},share/{aclocal,gettext,vala/vapi,gir-[0-9]*,qt*/mkspecs},bin/*-config}}&#039;&#039; developer only folders in &#039;&#039;$pkgdir&#039;&#039; and transfer them to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: In general, default_dev() will support packages that share pkg-config, C programming language API, shared and static libraries, Autotools, gettext, Vala programming language bindings, Python GObject introspection, a provided custom pkg-config like command (*-config), Qt, and CMake.  If you have packages that have C++, other languages, other build system, etc; you need to manually move those developer files only if they are to be used in other packages.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Important&#039;&#039;&#039;: For default_dev() to be called as in no dev(), you need to explicitly add subpackages=&amp;quot;$pkgname-dev&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== doc() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-doc&#039;&#039;&#039; package whose job is only to collect documentation folders from $pkgdir nothing more.  Without specifying a custom &#039;&#039;doc()&#039;&#039; function, abuild will call its internal &#039;&#039;doc()&#039;&#039; function, which in turn calls default_doc().&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;[https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L1519 default_doc()]&#039;&#039; will move &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/share/{doc,man,info,html,sgml,licenses,gtk-doc,ri,help}&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: Overriding this function is strongly discouraged.  Packaging docs should be done in the package() function while letting abuild automatically collect the doc folders.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Important&#039;&#039;&#039;: For default_doc() to be called as in no doc(), you need to explicitly add subpackages=&amp;quot;$pkgname-doc&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== openrc() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-opernc&#039;&#039;&#039; package whose job is to collect OpenRC service files that are in /etc/init.d and /etc/conf.d.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;[https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L1661 default_openrc()]&#039;&#039; will move &#039;&#039;&amp;quot;$pkgdir&amp;quot;/etc/{conf,init}.d&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: Overriding this function is strongly discouraged. Packaging OpenRC service definitions should be in the package() function while letting abuild automatically collect the openrc folders.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Important&#039;&#039;&#039;: for default_openrc() to be called as in no openrc(), you need to explicitly add subpackages=&amp;quot;$pkgname-openrc&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== static() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-static&#039;&#039;&#039; package whose job is to collect static libraries that are stored in /lib and /usr/lib.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;[https://github.com/alpinelinux/abuild/blob/v3.4.0_rc4/abuild.in#L1748 default_static()]&#039;&#039; will move all static libraries (files ending with .a) from &#039;&#039;&amp;quot;$pkgdir&amp;quot;/lib&#039;&#039; and &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/lib&#039;&#039; to their equivalents in &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: Overriding this function is strongly discouraged. Packaging static libraries should be done in the package() function while letting abuild automatically collect the static libraries.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Important&#039;&#039;&#039;: for default_static() to be called as in no static(), you need to explicitly add subpackages=&amp;quot;$pkgname-static&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== snapshot() ====&lt;br /&gt;
: &#039;&#039;&#039;Optional&#039;&#039;&#039;.  For live APKBUILDs or those with a _cvs, _svn, _git, _hg in their version number, you should create a snapshot function only if there is no download link to an archive file (.zip, .tar.gz, ...) to the commit/hash/tag.  The purpose of the snapshot function is to create an archive of the source code so that the package source code is deterministic, and it doesn&#039;t waste time to fetch the source code but bypasses the download step after snapshotting.  Those that download the source code from a git repository will follow head or the latest change to the source code.  It is better to archive the source code as a zip / tar.gz / tar.bz2 up to the commit or the tag which you are trying to build a package.  If it is not deterministic or not every part of the code frozen in time for every dependency and the main project, then the patches will fail or the package may fail to compile when you revisit the package months or years to backport a patch.&lt;br /&gt;
&lt;br /&gt;
: The default [https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L2310 snapshot()] function has variables associated with it:&lt;br /&gt;
:* $disturl - the base-url of the place to autoupload the snapshot&lt;br /&gt;
:* $svnurl - Subversion repository &lt;br /&gt;
:* $giturl - Git repository&lt;br /&gt;
&lt;br /&gt;
: The default snapshot() can only support one repository.  It is better to override it if there are multiple repositories involved in your package.  CVS, Mercurial (hg), and alternative version control systems must override the default snapshot().&lt;br /&gt;
&lt;br /&gt;
: See [[APKBUILD_examples:Git_checkout]] to how to use it with git.  It takes 2-3 general steps.  Clone the repository; check it out at a specific revision/commit or tag; then you use an archiver to dump it in the &#039;&#039;$SRCDEST&#039;&#039; variable which points to the distfiles folder and the base path to the full path to the archive that you want to create.  You do this for every internal dependency that the package pulls.&lt;br /&gt;
&lt;br /&gt;
: After you have created your snapshot function, you use &amp;lt;code&amp;gt;abuild snapshot&amp;lt;/code&amp;gt; to run it.  &lt;br /&gt;
&lt;br /&gt;
: The archives produced by the snapshot will be saved in &#039;&#039;/var/cache/distfiles&#039;&#039; or whatever you set for &#039;&#039;$SRCDEST&#039;&#039;.  You may need to create symlinks to the archive if the archive is not saved to the Alpine server.&lt;br /&gt;
&lt;br /&gt;
: After you snapshot it, you need to produce the checksums with &amp;lt;code&amp;gt;abuild checksum&amp;lt;/code&amp;gt; to use it in the APKBUILD creation process.&lt;br /&gt;
&lt;br /&gt;
: This feature is available since Alpine &amp;gt;=2.6.&lt;br /&gt;
&lt;br /&gt;
==== default_prepare() ====&lt;br /&gt;
&lt;br /&gt;
:  Before build preparation it handles set of patches inside &amp;lt;code&amp;gt;$srcdir&amp;lt;/code&amp;gt; and prints failed ones.&lt;br /&gt;
&lt;br /&gt;
== User-defined functions ==&lt;br /&gt;
The following functions should be defined by the user: &lt;br /&gt;
&lt;br /&gt;
==== prepare() ====&lt;br /&gt;
: {{note|Please adjust old APKBUILDs, which still have a &#039;&#039;prepare()&#039;&#039; function that does the same as the &#039;&#039;default_prepare()&#039;&#039; when you edit them anyway.}}&lt;br /&gt;
: &#039;&#039;&#039;&#039;&#039;Optional&#039;&#039;.&#039;&#039;&#039;  Used for build preparation: patches, etc, should be applied here. When you don&#039;t specify a custom &#039;&#039;prepare()&#039;&#039;, the built-in &#039;&#039;default_prepare()&#039;&#039; from abuild will be used. It applies patches already (always prepare them in the &amp;lt;code&amp;gt;-p1&amp;lt;/code&amp;gt; format), so &#039;&#039;&#039;usually it makes sense to not create a custom &#039;&#039;prepare()&#039;&#039; function at all!&#039;&#039;&#039; If you do create one, call &#039;&#039;default_prepare()&#039;&#039; inside it:&lt;br /&gt;
&lt;br /&gt;
: Before default_prepare gets called, you can define &#039;&#039;patch_args&#039;&#039; to supply the argument to the patch command in global scope then throw away prepare() so it is unnecessary to use the old template code floating around to patch.  patch_args and autopatching is only available in Alpine &amp;gt;=3.4.  See [[Creating_an_Alpine_package#Patches]] to fix the patch that uses a different patch level (-pX).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prepare() {&lt;br /&gt;
    default_prepare&lt;br /&gt;
    # your custom code here&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== build() ====&lt;br /&gt;
: &#039;&#039;&#039;Required.&#039;&#039;&#039;  This is the compilation stage.  This function will be called as the current user (unless the &#039;&#039;package()&#039;&#039; function is missing - for compatibility reasons).  If no compilation is needed, this function can contain a single line: &amp;lt;code&amp;gt;return 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: To enable or disable CFLAGS, CXXFLAGS, CMake with option, or configure option per arch, use the CARCH variable:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local cmakeoptions=&lt;br /&gt;
case &amp;quot;$CARCH&amp;quot; in&lt;br /&gt;
        aarch64*|arm*|ppc64le|x86|s390x) cmakeoptions=&amp;quot;$cmakeoptions -DWITH_OPENMP=OFF&amp;quot; ;;&lt;br /&gt;
        x86_64)                          cmakeoptions=&amp;quot;$cmakeoptions -DWITH_OPENMP=ON&amp;quot; ;;&lt;br /&gt;
        *)                               msg &amp;quot;Unable to determine architecture from (CARCH=$CARCH)&amp;quot; ; return 1 ;;&lt;br /&gt;
esac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: The block can be used in other parts of the APKBUILD even in global.&lt;br /&gt;
&lt;br /&gt;
==== check() ====&lt;br /&gt;
: &#039;&#039;&#039;Required if functionality exists.&#039;&#039;&#039; This function is called right after the build stage.  It should check that the packaged thing is actually working, typically by running (integration) tests, if provided by upstream.  If there’s no (easy) way how to test the package, you can declare that it does not want to use &#039;&#039;check()&#039;&#039; by adding &amp;quot;!check&amp;quot; into the &#039;&#039;options&#039;&#039; variable (&amp;lt;code&amp;gt;options=&amp;quot;!check&amp;quot;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
: default_check() does nothing.  You need to manually explicitly call the unit tests or test suite yourself.  When you run the test, the program should return with an exit code of 0, indicating the tests were a success.  Unit tests or test suites will do feature tests, per function correctness check, fuzz testing, benchmarks.&lt;br /&gt;
&lt;br /&gt;
: A package may also require additional testing frameworks packages that are external dependencies.  You should add those to the &#039;&#039;checkdepends=&#039;&#039; in Alpine &amp;gt;=3.6 or &#039;&#039;makedepends=&#039;&#039; for older for backporters.  If the testing framework is not available, you need to create a package for it.  If it requires a specific version of a testing framework, consider making it an internal dependency or a new package with a package name containing the major and minor version number like the python packages.&lt;br /&gt;
&lt;br /&gt;
: Generally speaking, you should define the check functions for libraries, large programs like web browsers, or compilers and interpreters, cryptographic/security/anonymity stuff, mission critical stuff, PCI compliance/money/accounting software, server software with a lot of stakeholders or consumers.  Soon for the new policy change will have virtually &#039;&#039;&#039;all packages with testing capabilities be required to have a working and defined check() function&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: There are times when the unit tests do not work, just because the test itself is broken, new unimplemented feature, external factors not taken into consideration, unbundling path differences, breakage caused by ccache, missing test dependency or version mismatch dependency as in python2 vs python3, test scripts only work for particular language implementation like only supporting python2 but not python3 having used the 2to3 conversion script.  If a unit test is known not to work, you may need to patch it to omit that test or fix it; but, certain tests should not be disabled if it is important.  You may need to alter the references to uncompiled internal dependencies to work with the external dependencies instead.  For ccache, you can either disable it or remove it from the PATH environmental variable before running tests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Tests for graphical applications and toolkits might work on a X11 user setup but will fail on the server unless run with xvfb-run.}}&lt;br /&gt;
&lt;br /&gt;
: If you don&#039;t add the &#039;&#039;check()&#039;&#039; and the &#039;&#039;options=&#039;&#039;, this is what you will see:&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt;&amp;gt; WARNING: py-webtest*: APKBUILD does not run any tests!&lt;br /&gt;
    Alpine policy will soon require that packages have any relevant testsuites run during the build process.&lt;br /&gt;
    To fix, either define a check() function, or declare !check in $options to indicate the package does not have a testsuite.&lt;br /&gt;
&lt;br /&gt;
: If you do not do a check or disable it, you must state there is no testsuite in comment form (#) next to options=&amp;quot;!check&amp;quot; for the code reviewers.&lt;br /&gt;
&lt;br /&gt;
: To run test suite with autotools do:&lt;br /&gt;
&lt;br /&gt;
  make check&lt;br /&gt;
&lt;br /&gt;
: To run the test suite with python setuptools:&lt;br /&gt;
&lt;br /&gt;
  python2 setup.py test&lt;br /&gt;
  python3 setup.py test&lt;br /&gt;
&lt;br /&gt;
: For python it should be &#039;&#039;&#039;test&#039;&#039;&#039; not check.  Check for python setuptools will check the packaging metadata fields[https://docs.python.org/3/distutils/examples.html#checking-a-package] only but not run the unit tests.  There should be verbose output also.  The dependencies for the tests are found in test_require in the setup.py.&lt;br /&gt;
&lt;br /&gt;
: If it says &amp;lt;code&amp;gt;Ran 0 tests in 0.000s&amp;lt;/code&amp;gt; that is not acceptable.  check() will say it was good but it is not actually correct.  It needs to run the test suite with an alternative method like &amp;lt;code&amp;gt;tox -e py27,py36&amp;lt;/code&amp;gt; if you see a tox.ini file.&lt;br /&gt;
&lt;br /&gt;
: You want to do it for each implementation to ensure that the API calls are correct per implementation but ncopa said it was just fine with python3.&lt;br /&gt;
&lt;br /&gt;
: If there is a circular dependency for the checkdepends=, you need to disable the check and put the reason next to &amp;lt;code&amp;gt;options=&amp;quot;!check&amp;quot;&amp;lt;/code&amp;gt; that there is a circular dependency.  You should disable it for the package that package that is least important or least security risk.  The other solution is to make the conflicting dependency an internal dependency but making sure that it doesn&#039;t pull it at check time.  This way they can both preform tests properly.&lt;br /&gt;
&lt;br /&gt;
==== package() ====&lt;br /&gt;
: &#039;&#039;&#039;Required.&#039;&#039;&#039;  This is the packaging stage.  Here, the built application and support files should be installed into &#039;&#039;&#039;$pkgdir&#039;&#039;&#039;.  If this is a metapackage, this function can contain a single line: &amp;lt;code&amp;gt;mkdir -p &amp;quot;$pkgdir&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|Building in fakeroot will reduce performance for parallel builds dramatically.  It is for this reason that we split the build and package process into two separate functions.}}&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
The [[APKBUILD examples]] page will assist you in understanding how to create an APKBUILD.&lt;br /&gt;
&lt;br /&gt;
= Version =&lt;br /&gt;
&lt;br /&gt;
This document assumes abuild for Alpine Edge.  For older releases of abuild, some of these features may not be available if you are using an older release.  A link to the implementation is linked for researchers and backporters.&lt;br /&gt;
&lt;br /&gt;
For more information see [[APKBUILD_versions]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Python_package_policies&amp;diff=19606</id>
		<title>Python package policies</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Python_package_policies&amp;diff=19606"/>
		<updated>2021-06-17T15:46:03Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Add note about projects not shipping a setup.py&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Python packages in Alpine Linux should follow a general set of standards for their APKBUILDs.&lt;br /&gt;
&lt;br /&gt;
{{Draft|Pending consensus on this approach, some discussion is taking place on the [[Talk:Python_package_policies|talk page]]}}&lt;br /&gt;
&lt;br /&gt;
== Guidelines ==&lt;br /&gt;
&lt;br /&gt;
* Prefix Python 3 libraries with py3-. Do not prefix programs (distinct from libraries) at all.&lt;br /&gt;
&lt;br /&gt;
== General Template ==&lt;br /&gt;
&lt;br /&gt;
Be sure to make the following changes:&lt;br /&gt;
&lt;br /&gt;
* Update maintainer to yourself&lt;br /&gt;
* Set the pkgname to the Alpine package name (prefixed with &amp;quot;py3-&amp;quot;)&lt;br /&gt;
* Set _pyname (see [[Talk:Python_package_policies|talk page]]) to the name of the package on PyPI &lt;br /&gt;
* Update the version number, pkgdesc, url, and license&lt;br /&gt;
* Build it and address any issues that come up&lt;br /&gt;
* Read the build output and be vigilant for issues listed in the following sections - the build may complete successfully even though these issues are present&lt;br /&gt;
&lt;br /&gt;
=== Package template ===&lt;br /&gt;
&lt;br /&gt;
Note that if you are removing python2 support from a package which previously had it, you should add &amp;lt;pre&amp;gt;replaces=&amp;quot;py2-example&amp;quot;&amp;lt;/pre&amp;gt; as well. If the old package was a split package, also add &amp;lt;pre&amp;gt;replaces=&amp;quot;py-example&amp;quot;&lt;br /&gt;
provides=&amp;quot;py-example=$pkgver-r$pkgrel&amp;quot;&amp;lt;/pre&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;# Maintainer: Joe Bloe &amp;lt;joe@example.org&amp;gt;&lt;br /&gt;
pkgname=py3-alpine-name&lt;br /&gt;
_pyname=pypi-name&lt;br /&gt;
pkgver=1.2.3&lt;br /&gt;
pkgrel=0&lt;br /&gt;
pkgdesc=&amp;quot;Example Python package&amp;quot;&lt;br /&gt;
url=&amp;quot;https://example.org&amp;quot;&lt;br /&gt;
arch=&amp;quot;noarch&amp;quot;&lt;br /&gt;
license=&amp;quot;MIT&amp;quot;&lt;br /&gt;
depends=&amp;quot;python3&amp;quot;&lt;br /&gt;
makedepends=&amp;quot;py3-setuptools&amp;quot;&lt;br /&gt;
_pypiprefix=&amp;quot;${_pyname%${_pyname#?}}&amp;quot;&lt;br /&gt;
source=&amp;quot;https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz&amp;quot;&lt;br /&gt;
builddir=&amp;quot;$srcdir/$_pyname-$pkgver&amp;quot;&lt;br /&gt;
&lt;br /&gt;
build() {&lt;br /&gt;
	python3 setup.py build&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
check() {&lt;br /&gt;
	python3 setup.py test&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
package() {&lt;br /&gt;
	python3 setup.py install --prefix=/usr --root=&amp;quot;$pkgdir&amp;quot;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Common issues ==&lt;br /&gt;
&lt;br /&gt;
=== No source package available (only the wheel is on PyPI) ===&lt;br /&gt;
&lt;br /&gt;
Seek out the upstream source (e.g. GitHub) and swap out the URL.&lt;br /&gt;
&lt;br /&gt;
=== No tests in PyPI package &amp;quot;(0 tests run)&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
Seek out the upstream source (e.g. GitHub) and swap out the URL.&lt;br /&gt;
&lt;br /&gt;
=== setup.py test downloads a lot of dependencies ===&lt;br /&gt;
&lt;br /&gt;
Watch out for this and be sure to add any of these packages to checkdepends so that setuptools isn&#039;t downloading and testing against packages/versions which aren&#039;t in aports.&lt;br /&gt;
&lt;br /&gt;
=== You need to use the &#039;tox&#039; utility to run tests ===&lt;br /&gt;
&lt;br /&gt;
tox (knows as py3-tox on Alpine Linux) downloads all dependencies into a virtual environment by default, which bypasses the system tooling, making&lt;br /&gt;
testing somewhat less useful.&lt;br /&gt;
&lt;br /&gt;
Remember to use *--sitepackages* on your invocation of tox in the check() phase so it uses the system packages instead of downloading ones into&lt;br /&gt;
a virtual environment.&lt;br /&gt;
&lt;br /&gt;
=== setup.py does not exist ===&lt;br /&gt;
&lt;br /&gt;
In case a package uses a pyproject.toml instead of setup.py, you can use [https://github.com/mgorny/pyproject2setuppy pyproject2setuppy]. You can use gvm-tools as reference for how to use it: https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/community/gvm-tools.&lt;br /&gt;
&lt;br /&gt;
== Alpine+Python projects ==&lt;br /&gt;
&lt;br /&gt;
=== aports normalization project ===&lt;br /&gt;
&lt;br /&gt;
Many Python packages in aports (if not most) do not follow these guidelines.&lt;br /&gt;
&lt;br /&gt;
TODO: obtain consensus and organize this work.&lt;br /&gt;
&lt;br /&gt;
=== Python 2 deprecation ===&lt;br /&gt;
&lt;br /&gt;
{{Draft|Pending consensus on this approach}}&lt;br /&gt;
&lt;br /&gt;
The general approach to Python 2 deprecation and removal requires three broad steps:&lt;br /&gt;
&lt;br /&gt;
# Do not add new python 2 packages to aports, effective immediately.&lt;br /&gt;
# In the course of the aports normalization project, drop Python 2 support if it&#039;s easy or triage it and make a note for later if not.&lt;br /&gt;
# Making judgement calls for difficult packages on a case-by-case basis, based on the upstream&#039;s progress/amicability towards a Python 3 port. Upstreams which are unwilling to port to Python 3 should be removed from aports.&lt;br /&gt;
&lt;br /&gt;
TODO: Prepare some discussion place, git repos, scripts, etc, to organize this work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category: python]]&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Requirements&amp;diff=18551</id>
		<title>Requirements</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Requirements&amp;diff=18551"/>
		<updated>2021-01-11T21:27:25Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Architectures -&amp;gt; Architecture&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will tell you what requirements you will need to use the Alpine Linux operating system:&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Hardware requirements ==&lt;br /&gt;
&lt;br /&gt;
For installation and usage consider that Alpine can run on several kinds of devices, from the popular PC machine to video game consoles like the Game Boy Advance and the 3DS, and as such you must check the following of your machine:&lt;br /&gt;
&lt;br /&gt;
** Architecture&lt;br /&gt;
** Memory&lt;br /&gt;
** Storage&lt;br /&gt;
** Peripherals&lt;br /&gt;
&lt;br /&gt;
=== Architectures ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Architecture means kind of computer. The most popular architecture is the misnamed &amp;quot;Intel IBM PC&amp;quot;&#039;&#039;&#039; or &amp;quot;i386&amp;quot; which is actually in fact the x86 or x64. There are other supported computer architectures that are not &amp;quot;x86&amp;quot;, like mainframes, servers, and embedded devices (such as routers like Sonicwall and Cisco ones). Here are the architectures supported by Alpine:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Supported Arch !! Supported since !! Meaning of installation and target architecture&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || all || The popular AMD64 compatible 64-bit x86 based machines, i386 is not recommended for newer/latest hardware.&lt;br /&gt;
|-&lt;br /&gt;
| x86 || all || The all popular 32 bit intel (i386 pc 32bit) and x86_64 (i686 pc 64bit and amd64)compatible (both)&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || v3.6 || For the PowerPC devices with pure little-endian mode, mostly for POWER8 and POWER9&lt;br /&gt;
|-&lt;br /&gt;
| armhf || v3.0 || The newer ARM hard-float for newer, more powerful 32-bit devices alongside 64-bit. Including video games!&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || v3.9 || The 32-bit ARM only execution state of the ARMv7 devices machines. Including video game consoles!&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 || v3.5 || The 64-bit ARM only execution state of the ARMv8 device machines. Like Rasberri&#039;s&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || v3.6 || for 64-bit big-endian PowerPC and Power ISA processors like some MAC computers.&lt;br /&gt;
|-&lt;br /&gt;
| s390x || v3.6 || For the Super powered IBM mainframes, especially IBM Z and IBM LinuxONE servers.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Memory ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means minimum amount of RAM memory. Need of RAM it depends of the meaning of the installation&#039;&#039;&#039;, any hardware are supported and there is minimum sizes for:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Target Arch !! Minimum RAM to start !! Minimum RAM to install !! Minimum RAM for GUI desktop !! Enough for GUI work&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || 512 Megs || 512 Megs || 2 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| x86_32 || 128 Megs || 256 Megs || 1 Gigs || 3 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || 128 Megs || 256 Megs || 2 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| armhf || 256 Megs || 512 Megs || 1 Gigs || 6 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || 256 Megs || 512 Megs || 1 Gigs || 6 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 || 256 Megs || 512 Megs || 2 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || 256 Megs || 512 Megs || 1 Gigs || 6 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| s390x || 128 Megs || 256 Megs || 2 Gigs || N/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Storage ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means any external or internal storage device that can be added after or before install to use&#039;&#039;&#039; by the Alpine Linux system. Currently depends of the current linux kernel supported.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;All the PATA and SATA hard disk drives are supported, also any USB or SD&#039;&#039;&#039; card that can be detected by USB BUS by the linux kernel subsystem during install.&lt;br /&gt;
&lt;br /&gt;
=== Peripherals ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means any external or internal device that can be added after or before install to detectd&#039;&#039;&#039; by the Alpine Linux system. Currently depends of the current linux kernel supported.&lt;br /&gt;
&lt;br /&gt;
ISA devices are not supported since 3.8 because kernel drops support.&lt;br /&gt;
&lt;br /&gt;
Almost any GPU are supported, but for advanced features, 3D acceleration are manager by MESA project:&lt;br /&gt;
&lt;br /&gt;
* Intel: mostly any Intel by one exception, intel i810/i815 will lack of features cos only has 4Mb memory, Mesa and Linux drop theit support.&lt;br /&gt;
* ATI/AMD, only radeon series with exception of recent two last years respect Alpine release, Rage r128/match64 series has limited support.&lt;br /&gt;
* Nvidia: limited; only few are complete supported! not all features are allowed!&lt;br /&gt;
* Matrox: not all features are supported, just cos are shipped on most servers.&lt;br /&gt;
* Sis: limited features are supported, since code are not updated on Xorg and Linux kernel&lt;br /&gt;
* Via: limited features are supported, since openchrome code are not updated on Xorg and Linux kernel&lt;br /&gt;
&lt;br /&gt;
== Software requirements ==&lt;br /&gt;
&lt;br /&gt;
** Media&lt;br /&gt;
** Booting&lt;br /&gt;
** Storage&lt;br /&gt;
** Firmware&lt;br /&gt;
&lt;br /&gt;
=== Media ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means the files need for dump the install media, and later boot from the target install&#039;&#039;&#039; machine, of course downloaded from http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/ or main Download page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Available for !! ISO (for USB, CD/DVD) !! IMG (for Netboot)  !! TAR (for ROOTFS, in tar.gz) !! Download links&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/&lt;br /&gt;
|-&lt;br /&gt;
| x86 || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86/&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || NO || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/ppc64le/&lt;br /&gt;
|-&lt;br /&gt;
| armhf || NO || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/armhf/&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || NO || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/armv7/&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 ||  YES || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/&lt;br /&gt;
|-&lt;br /&gt;
| mips64 || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/mips64/&lt;br /&gt;
|-&lt;br /&gt;
| s390x || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/s390x/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Checksum ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means Commands to verify the checksum and GPG signature of a downloaded image file on different systems, is complete optional!&#039;&#039;&#039;. This kind of check are made to verify if the download media ISO (for USB, CD/DVD),  IMG (for Netboot)  or TAR (for ROOTFS, in tar.gz) file are correct and will work. Just performs that command in your system before use that downloaded file:&lt;br /&gt;
&lt;br /&gt;
{|  class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! OS where media was downloaded !! &amp;lt;code&amp;gt;sha265&amp;lt;/code&amp;gt; calculation (to be compared manually) !! &amp;lt;code&amp;gt;GPG&amp;lt;/code&amp;gt; signature verification&lt;br /&gt;
|-&lt;br /&gt;
| Linux || &amp;lt;code&amp;gt;sha256sum -c alpine-*.iso.sha256&amp;lt;/code&amp;gt;     || &amp;lt;code&amp;gt;curl https://alpinelinux.org/keys/ncopa.asc &amp;amp;#124;&amp;lt;br&amp;gt; gpg --import ;&amp;lt;br&amp;gt;&amp;lt;nowiki&amp;gt;gpg --verify alpine-*.iso.asc alpine-*.iso&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| MACOS  || &amp;lt;code&amp;gt;shasum -a 256 alpine-*.iso&amp;lt;/code&amp;gt; || - ? -&lt;br /&gt;
|-&lt;br /&gt;
| BSD || &amp;lt;code&amp;gt;/usr/local/bin/shasum -a 256 alpine-*.iso&amp;lt;/code&amp;gt; || - ? -&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Booting ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means support for kind of BIOS setup of machine, and where can be media downloaded will be boot&#039;&#039;&#039;, please for more info check [[Alpine_and_UEFI|Alpine and UEFI]] wiki page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Supported Arch !! Supported BIOS !! Supported Types !! Media Boot Recommended&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || Coreboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| x86 || Coreboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || Coreboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| armhf || Uboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;NET&#039;&#039;&#039;, MINIROOTFS (TAR.GZ)&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || Uboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;NET&#039;&#039;&#039;, MINIROOTFS (TAR.GZ)&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 || ?Coreboot?, Vendor/OEM || BIOS, ?UEFI? || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| mips64 || Vendor/OEM || ? || MINIROOTFS (TAR.GZ)&lt;br /&gt;
|-&lt;br /&gt;
| s390x || Vendor/OEM || BIOS, ?UEFI?|| &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If the computer does not automatically boot from the desired device, one needs to bring up the boot menu selection for choosing the media to boot from. Depending on the computer the menu may be accessed by quickly (repeatedly) pressing a key when booting starts, or sometimes it is needed to press the button before starting the computer and keep holding it when it boots. Typical keys are:  `F9`-`F12`, sometimes `F7` or `F8`. If these don&#039;t bring up the boot menu, it may be necessary to enter the BIOS configuration and adjust the boot settings, for which typical keys are: `Del.` `F1` `F2` `F6` or `Esc.`&lt;br /&gt;
&lt;br /&gt;
=== Space ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This means amount of available space in disk partitions to perform a kind of install&#039;&#039;&#039; and of course will depends of type and meaning of your desired install, this are the recommended sizes but depends of the BIOS/UEFI supported you must perform and read the [[Alpine_and_UEFI#Alpine_disk_layout_for_UEFI|Alpine disk layout for UEFI/BIOS at Alpine and UEFI]] wiki page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Minimum sizes !! Partition for BOOT (&amp;lt;code&amp;gt;/boot&amp;lt;/code&amp;gt;) !! Partition for ROOT (&amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;) !! Partition for HOME (&amp;lt;code&amp;gt;/home&amp;lt;/code&amp;gt;) !! Partition for SWAP (&amp;lt;code&amp;gt;N/A&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| base only || 100 Megs || 500 Megs || 1 Gigs || Optional&lt;br /&gt;
|-&lt;br /&gt;
| default server || 200 Megs || 2 Gigs || 2 Gigs || 4 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| default desktop || 250 Megs || 12 Gigs || 80 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| mail server || 200 Megs || 20 Gigs || 20+ Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| web server || 200 Megs || 10 Gigs || 20+ Gigs || 8 Gigs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
&lt;br /&gt;
# [[Installation]]&lt;br /&gt;
# [[Alpine_newbie#Install|Alpine_newbie Install section]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Requirements&amp;diff=18550</id>
		<title>Requirements</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Requirements&amp;diff=18550"/>
		<updated>2021-01-11T21:26:39Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Grammar edits.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page will tell you what requirements you will need to use the Alpine Linux operating system:&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Hardware requirements ==&lt;br /&gt;
&lt;br /&gt;
For installation and usage consider that Alpine can run on several kinds of devices, from the popular PC machine to video game consoles like the Game Boy Advance and the 3DS, and as such you must check the following of your machine:&lt;br /&gt;
&lt;br /&gt;
** Architectures&lt;br /&gt;
** Memory&lt;br /&gt;
** Storage&lt;br /&gt;
** Peripherals&lt;br /&gt;
&lt;br /&gt;
=== Architectures ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Architecture means kind of computer. The most popular architecture is the misnamed &amp;quot;Intel IBM PC&amp;quot;&#039;&#039;&#039; or &amp;quot;i386&amp;quot; which is actually in fact the x86 or x64. There are other supported computer architectures that are not &amp;quot;x86&amp;quot;, like mainframes, servers, and embedded devices (such as routers like Sonicwall and Cisco ones). Here are the architectures supported by Alpine:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Supported Arch !! Supported since !! Meaning of installation and target architecture&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || all || The popular AMD64 compatible 64-bit x86 based machines, i386 is not recommended for newer/latest hardware.&lt;br /&gt;
|-&lt;br /&gt;
| x86 || all || The all popular 32 bit intel (i386 pc 32bit) and x86_64 (i686 pc 64bit and amd64)compatible (both)&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || v3.6 || For the PowerPC devices with pure little-endian mode, mostly for POWER8 and POWER9&lt;br /&gt;
|-&lt;br /&gt;
| armhf || v3.0 || The newer ARM hard-float for newer, more powerful 32-bit devices alongside 64-bit. Including video games!&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || v3.9 || The 32-bit ARM only execution state of the ARMv7 devices machines. Including video game consoles!&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 || v3.5 || The 64-bit ARM only execution state of the ARMv8 device machines. Like Rasberri&#039;s&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || v3.6 || for 64-bit big-endian PowerPC and Power ISA processors like some MAC computers.&lt;br /&gt;
|-&lt;br /&gt;
| s390x || v3.6 || For the Super powered IBM mainframes, especially IBM Z and IBM LinuxONE servers.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Memory ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means minimum amount of RAM memory. Need of RAM it depends of the meaning of the installation&#039;&#039;&#039;, any hardware are supported and there is minimum sizes for:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Target Arch !! Minimum RAM to start !! Minimum RAM to install !! Minimum RAM for GUI desktop !! Enough for GUI work&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || 512 Megs || 512 Megs || 2 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| x86_32 || 128 Megs || 256 Megs || 1 Gigs || 3 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || 128 Megs || 256 Megs || 2 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| armhf || 256 Megs || 512 Megs || 1 Gigs || 6 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || 256 Megs || 512 Megs || 1 Gigs || 6 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 || 256 Megs || 512 Megs || 2 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || 256 Megs || 512 Megs || 1 Gigs || 6 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| s390x || 128 Megs || 256 Megs || 2 Gigs || N/A&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Storage ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means any external or internal storage device that can be added after or before install to use&#039;&#039;&#039; by the Alpine Linux system. Currently depends of the current linux kernel supported.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;All the PATA and SATA hard disk drives are supported, also any USB or SD&#039;&#039;&#039; card that can be detected by USB BUS by the linux kernel subsystem during install.&lt;br /&gt;
&lt;br /&gt;
=== Peripherals ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means any external or internal device that can be added after or before install to detectd&#039;&#039;&#039; by the Alpine Linux system. Currently depends of the current linux kernel supported.&lt;br /&gt;
&lt;br /&gt;
ISA devices are not supported since 3.8 because kernel drops support.&lt;br /&gt;
&lt;br /&gt;
Almost any GPU are supported, but for advanced features, 3D acceleration are manager by MESA project:&lt;br /&gt;
&lt;br /&gt;
* Intel: mostly any Intel by one exception, intel i810/i815 will lack of features cos only has 4Mb memory, Mesa and Linux drop theit support.&lt;br /&gt;
* ATI/AMD, only radeon series with exception of recent two last years respect Alpine release, Rage r128/match64 series has limited support.&lt;br /&gt;
* Nvidia: limited; only few are complete supported! not all features are allowed!&lt;br /&gt;
* Matrox: not all features are supported, just cos are shipped on most servers.&lt;br /&gt;
* Sis: limited features are supported, since code are not updated on Xorg and Linux kernel&lt;br /&gt;
* Via: limited features are supported, since openchrome code are not updated on Xorg and Linux kernel&lt;br /&gt;
&lt;br /&gt;
== Software requirements ==&lt;br /&gt;
&lt;br /&gt;
** Media&lt;br /&gt;
** Booting&lt;br /&gt;
** Storage&lt;br /&gt;
** Firmware&lt;br /&gt;
&lt;br /&gt;
=== Media ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means the files need for dump the install media, and later boot from the target install&#039;&#039;&#039; machine, of course downloaded from http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/ or main Download page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Available for !! ISO (for USB, CD/DVD) !! IMG (for Netboot)  !! TAR (for ROOTFS, in tar.gz) !! Download links&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/&lt;br /&gt;
|-&lt;br /&gt;
| x86 || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86/&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || NO || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/ppc64le/&lt;br /&gt;
|-&lt;br /&gt;
| armhf || NO || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/armhf/&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || NO || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/armv7/&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 ||  YES || YES || YES || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/&lt;br /&gt;
|-&lt;br /&gt;
| mips64 || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/mips64/&lt;br /&gt;
|-&lt;br /&gt;
| s390x || YES || YES || N/A || http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/s390x/&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Checksum ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means Commands to verify the checksum and GPG signature of a downloaded image file on different systems, is complete optional!&#039;&#039;&#039;. This kind of check are made to verify if the download media ISO (for USB, CD/DVD),  IMG (for Netboot)  or TAR (for ROOTFS, in tar.gz) file are correct and will work. Just performs that command in your system before use that downloaded file:&lt;br /&gt;
&lt;br /&gt;
{|  class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! OS where media was downloaded !! &amp;lt;code&amp;gt;sha265&amp;lt;/code&amp;gt; calculation (to be compared manually) !! &amp;lt;code&amp;gt;GPG&amp;lt;/code&amp;gt; signature verification&lt;br /&gt;
|-&lt;br /&gt;
| Linux || &amp;lt;code&amp;gt;sha256sum -c alpine-*.iso.sha256&amp;lt;/code&amp;gt;     || &amp;lt;code&amp;gt;curl https://alpinelinux.org/keys/ncopa.asc &amp;amp;#124;&amp;lt;br&amp;gt; gpg --import ;&amp;lt;br&amp;gt;&amp;lt;nowiki&amp;gt;gpg --verify alpine-*.iso.asc alpine-*.iso&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| MACOS  || &amp;lt;code&amp;gt;shasum -a 256 alpine-*.iso&amp;lt;/code&amp;gt; || - ? -&lt;br /&gt;
|-&lt;br /&gt;
| BSD || &amp;lt;code&amp;gt;/usr/local/bin/shasum -a 256 alpine-*.iso&amp;lt;/code&amp;gt; || - ? -&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Booting ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Means support for kind of BIOS setup of machine, and where can be media downloaded will be boot&#039;&#039;&#039;, please for more info check [[Alpine_and_UEFI|Alpine and UEFI]] wiki page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Supported Arch !! Supported BIOS !! Supported Types !! Media Boot Recommended&lt;br /&gt;
|-&lt;br /&gt;
| x86_64 || Coreboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| x86 || Coreboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| ppc64le || Coreboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| armhf || Uboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;NET&#039;&#039;&#039;, MINIROOTFS (TAR.GZ)&lt;br /&gt;
|-&lt;br /&gt;
| armv7 || Uboot, Vendor/OEM || BIOS, UEFI || &#039;&#039;&#039;NET&#039;&#039;&#039;, MINIROOTFS (TAR.GZ)&lt;br /&gt;
|-&lt;br /&gt;
| aarch64 || ?Coreboot?, Vendor/OEM || BIOS, ?UEFI? || &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD (ISO)&lt;br /&gt;
|-&lt;br /&gt;
| mips64 || Vendor/OEM || ? || MINIROOTFS (TAR.GZ)&lt;br /&gt;
|-&lt;br /&gt;
| s390x || Vendor/OEM || BIOS, ?UEFI?|| &#039;&#039;&#039;USB&#039;&#039;&#039;, CD/DVD&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If the computer does not automatically boot from the desired device, one needs to bring up the boot menu selection for choosing the media to boot from. Depending on the computer the menu may be accessed by quickly (repeatedly) pressing a key when booting starts, or sometimes it is needed to press the button before starting the computer and keep holding it when it boots. Typical keys are:  `F9`-`F12`, sometimes `F7` or `F8`. If these don&#039;t bring up the boot menu, it may be necessary to enter the BIOS configuration and adjust the boot settings, for which typical keys are: `Del.` `F1` `F2` `F6` or `Esc.`&lt;br /&gt;
&lt;br /&gt;
=== Space ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This means amount of available space in disk partitions to perform a kind of install&#039;&#039;&#039; and of course will depends of type and meaning of your desired install, this are the recommended sizes but depends of the BIOS/UEFI supported you must perform and read the [[Alpine_and_UEFI#Alpine_disk_layout_for_UEFI|Alpine disk layout for UEFI/BIOS at Alpine and UEFI]] wiki page.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Minimum sizes !! Partition for BOOT (&amp;lt;code&amp;gt;/boot&amp;lt;/code&amp;gt;) !! Partition for ROOT (&amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;) !! Partition for HOME (&amp;lt;code&amp;gt;/home&amp;lt;/code&amp;gt;) !! Partition for SWAP (&amp;lt;code&amp;gt;N/A&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| base only || 100 Megs || 500 Megs || 1 Gigs || Optional&lt;br /&gt;
|-&lt;br /&gt;
| default server || 200 Megs || 2 Gigs || 2 Gigs || 4 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| default desktop || 250 Megs || 12 Gigs || 80 Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| mail server || 200 Megs || 20 Gigs || 20+ Gigs || 8 Gigs&lt;br /&gt;
|-&lt;br /&gt;
| web server || 200 Megs || 10 Gigs || 20+ Gigs || 8 Gigs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
&lt;br /&gt;
# [[Installation]]&lt;br /&gt;
# [[Alpine_newbie#Install|Alpine_newbie Install section]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Alpine_Package_Keeper&amp;diff=18099</id>
		<title>Alpine Package Keeper</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Alpine_Package_Keeper&amp;diff=18099"/>
		<updated>2020-10-06T13:55:39Z</updated>

		<summary type="html">&lt;p&gt;Newbyte: Fix cache maintenance link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--For searching: apk, APK--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
Because Alpine Linux is designed to run from RAM, package management involves two phases:&lt;br /&gt;
* Installing / Upgrading / Deleting packages on a running system.&lt;br /&gt;
* Restoring a system to a previously configured state (e.g. after reboot), including all previously installed packages and locally modified configuration files. &#039;&#039;&#039;(RAM-Based Installs Only)&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;apk&#039;&#039;&#039; is the tool used to install, upgrade, or delete software on a running system.&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;lbu&#039;&#039;&#039; is the tool used to capture the data necessary to restore a system to a previously configured state.&lt;br /&gt;
&lt;br /&gt;
This page documents the [https://git.alpinelinux.org/apk-tools/ apk tool] - See the [[Alpine_local_backup|Alpine Local Backup page]] for the lbu tool.&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;apk&#039;&#039;&#039; tool supports the following operations:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[#Add a Package|add]] &lt;br /&gt;
| Add new packages or upgrade packages to the running system&lt;br /&gt;
|-&lt;br /&gt;
| [[#Remove a Package|del]]&lt;br /&gt;
| Delete packages from the running system&lt;br /&gt;
|-&lt;br /&gt;
| fix &lt;br /&gt;
| Attempt to repair or upgrade an installed package &lt;br /&gt;
|-&lt;br /&gt;
| [[#Update the Package list|update]] &lt;br /&gt;
| Update the index of available packages&lt;br /&gt;
|-&lt;br /&gt;
| [[#Info on Packages|info]]&lt;br /&gt;
| Prints information about installed or available packages&lt;br /&gt;
|-&lt;br /&gt;
| [[#Search for Packages|search]] &lt;br /&gt;
| Search for packages or descriptions with wildcard patterns&lt;br /&gt;
|-&lt;br /&gt;
| [[#Upgrade a Running System|upgrade]]&lt;br /&gt;
| Upgrade the currently installed packages&lt;br /&gt;
|-&lt;br /&gt;
| [[#Cache maintenance|cache]]&lt;br /&gt;
| Maintenance operations for locally cached package repository&lt;br /&gt;
|-&lt;br /&gt;
| version &lt;br /&gt;
| Compare version differences between installed and available packages&lt;br /&gt;
|-&lt;br /&gt;
| index &lt;br /&gt;
| create a repository index from a list of packages&lt;br /&gt;
|-&lt;br /&gt;
| fetch &lt;br /&gt;
| download (but not install) packages&lt;br /&gt;
|-&lt;br /&gt;
| audit &lt;br /&gt;
| List changes to the file system from pristine package install state&lt;br /&gt;
|-&lt;br /&gt;
| verify &lt;br /&gt;
| Verify a package signature&lt;br /&gt;
|- &lt;br /&gt;
| dot&lt;br /&gt;
| Create a [http://graphviz.org/ graphviz] graph description for a given package&lt;br /&gt;
|- &lt;br /&gt;
| [[#apk_policy|policy]]&lt;br /&gt;
| Display the repository that updates a given package, plus repositories that also offer the package&lt;br /&gt;
|- &lt;br /&gt;
| stats &lt;br /&gt;
| Display statistics, including number of packages installed and available, number of directories and files, etc.&lt;br /&gt;
|- &lt;br /&gt;
| manifest&lt;br /&gt;
| Display checksums for files contained in a given package&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Packages and Repositories =&lt;br /&gt;
&lt;br /&gt;
Software packages for Alpine Linux are digitally signed tar.gz archives containing programs, configuration files, and dependency metadata. They have the extension &amp;lt;code&amp;gt;.apk&amp;lt;/code&amp;gt;, and are often called &amp;quot;a-packs&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The packages are stored in one or more &#039;&#039;repositories&#039;&#039;. A repository is simply a directory with a collection of *.apk files.  The directory must include a special index file, named {{Path|APKINDEX.tar.gz}} to be considered a repository.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;apk&#039;&#039;&#039; utility can install packages from multiple repositories.  The list of repositories to check is stored in {{Path|/etc/apk/repositories}}, one repository per line. If you booted from a USB stick ({{Path|/media/sda1}}) or CD-ROM ({{Path|/media/cdrom}}), your repository file probably looks something like this:&lt;br /&gt;
&lt;br /&gt;
{{Cat|/etc/apk/repositories|/media/sda1/apks/}}&lt;br /&gt;
&lt;br /&gt;
In addition to local repositories, the &#039;&#039;&#039;apk&#039;&#039;&#039; utility uses &#039;&#039;&#039;busybox wget&#039;&#039;&#039; to fetch packages using &#039;&#039;http:&#039;&#039;, &#039;&#039;https:&#039;&#039; or &#039;&#039;ftp:&#039;&#039; protocols. The following is a valid repository file:&lt;br /&gt;
&lt;br /&gt;
{{Cat|/etc/apk/repositories|&lt;br /&gt;
/media/sda1/apks&lt;br /&gt;
http://dl-3.alpinelinux.org/alpine/v2.6/main&lt;br /&gt;
https://dl-3.alpinelinux.org/alpine/v2.6/main&lt;br /&gt;
ftp://dl-3.alpinelinux.org/alpine/v2.6/main&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Note|  A list of public repositories is in [https://git.alpinelinux.org/cgit/aports/tree/main/alpine-mirrors/mirrors.yaml mirrors.yaml] in the alpine-mirrors git repository.  Accepted protocols vary.}}&lt;br /&gt;
&lt;br /&gt;
== Repository pinning ==&lt;br /&gt;
&lt;br /&gt;
You can specify additional &amp;quot;tagged&amp;quot; repositories in {{Path|/etc/apk/repositories}}:&lt;br /&gt;
&lt;br /&gt;
{{Cat|/etc/apk/repositories|&lt;br /&gt;
http://nl.alpinelinux.org/alpine/v3.7/main&lt;br /&gt;
http://nl.alpinelinux.org/alpine/v3.7/community&lt;br /&gt;
@edge http://nl.alpinelinux.org/alpine/edge/main&lt;br /&gt;
@edgecommunity http://nl.alpinelinux.org/alpine/edge/community&lt;br /&gt;
@testing http://nl.alpinelinux.org/alpine/edge/testing&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After which you can &amp;quot;pin&amp;quot; dependencies to these tags using:&lt;br /&gt;
&lt;br /&gt;
{{cmd|apk add stableapp newapp@edge bleedingapp@testing}}&lt;br /&gt;
&lt;br /&gt;
Apk will now by default only use the untagged repositories, but adding a tag to specific package:&lt;br /&gt;
&lt;br /&gt;
1. will prefer the repository with that tag for the named package, even if a later version of the package is available in another repository&lt;br /&gt;
&lt;br /&gt;
2. &#039;&#039;allows&#039;&#039; pulling in dependencies for the tagged package from the tagged repository (though it &#039;&#039;prefers&#039;&#039; to use untagged repositories to satisfy dependencies if possible)&lt;br /&gt;
&lt;br /&gt;
== Commandline repository options ==&lt;br /&gt;
&lt;br /&gt;
By default, the &#039;&#039;&#039;apk&#039;&#039;&#039; utility will use the system repositories for all operations. This behavior can be overridden by the following options:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| --repositories-file REPOFILE&lt;br /&gt;
| Override the system repositories by specifying a repositories file.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;-X|--repository REPO&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| Specify a supplemental repository that will be used in addition to the system repositories. This option can be provided multiple times.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Update the Package list =&lt;br /&gt;
&lt;br /&gt;
Remote repositories change as packages are added and upgraded.   To get the latest list of available packages, use the &#039;&#039;update&#039;&#039; command.  The command downloads the {{Path|APKINDEX.tar.gz}} from each repository and stores it in the local cache, typically {{Path|/var/cache/apk/}}, {{Path|/var/lib/apk/}} or {{Path|/etc/apk/cache/}}.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk update}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
fetch http://dl-3.alpinelinux.org/alpine/v2.1/main/APKINDEX.tar.gz&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding the &amp;lt;code&amp;gt;--update-cache&amp;lt;/code&amp;gt;, or for short &amp;lt;code&amp;gt;-U&amp;lt;/code&amp;gt; switch to another apk command, as in &amp;lt;code&amp;gt;apk --update-cache upgrade&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;apk -U add ...&amp;lt;/code&amp;gt;, the command has the same effect as first running &amp;lt;code&amp;gt;apk update&amp;lt;/code&amp;gt; before the other apk command.&lt;br /&gt;
&lt;br /&gt;
{{Tip|With remote repositories, it is a good idea to always do an &#039;&#039;&#039;update&#039;&#039;&#039; right &#039;&#039;&#039;before&#039;&#039;&#039; doing an &#039;&#039;&#039;upgrade or add&#039;&#039;&#039; command. That way the command will install the latest available packages.}}&lt;br /&gt;
&lt;br /&gt;
= Add a Package =&lt;br /&gt;
&lt;br /&gt;
Use &#039;&#039;&#039;add&#039;&#039;&#039; to install packages from a repository. Any necessary dependencies are also installed. If you have multiple repositories, the &#039;&#039;&#039;add&#039;&#039;&#039; command installs the newest package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add openssh&lt;br /&gt;
apk add openssh openntp vim}}&lt;br /&gt;
&lt;br /&gt;
If you only have the main repository enabled in your configuration, apk will not include packages from the other repositories. To install a package from the edge/testing repository without changing your repository configuration file, use the command below. This will tell apk to use that particular repository.&lt;br /&gt;
&lt;br /&gt;
{{cmd|apk add cherokee --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted}}&lt;br /&gt;
&lt;br /&gt;
{{Note|Be careful when using third-party or the testing repository. Your system can go down.}}&lt;br /&gt;
&lt;br /&gt;
= Add a local Package =&lt;br /&gt;
&lt;br /&gt;
To install a locally available apk package, for example if this device has no internet access but you can upload apk packages directly to it, use the &#039;&#039;&#039;--allow-untrusted&#039;&#039;&#039; flag:&lt;br /&gt;
&lt;br /&gt;
{{cmd|apk add --allow-untrusted /path/to/file.apk}}&lt;br /&gt;
&lt;br /&gt;
Note that multiple packages can be given.  When installing a local package, all dependencies should also be specified.  For example:&lt;br /&gt;
&lt;br /&gt;
{{cmd|apk add --allow-untrusted /var/tig-2.2-r0.apk /var/git-2.11.1-20.apk}}&lt;br /&gt;
&lt;br /&gt;
= Remove a Package  =&lt;br /&gt;
Use &#039;&#039;&#039;del&#039;&#039;&#039; to remove a package (and dependencies that are no longer needed.)  &lt;br /&gt;
&lt;br /&gt;
{{cmd|apk del openssh&lt;br /&gt;
apk del openssh openntp vim}}&lt;br /&gt;
&lt;br /&gt;
= Upgrade a Running System =&lt;br /&gt;
&lt;br /&gt;
To get the latest security upgrades and bugfixes available for &#039;&#039;all&#039;&#039; the packages of a running system, first &#039;&#039;&#039;update&#039;&#039;&#039; the list of available packages and then &#039;&#039;&#039;upgrade&#039;&#039;&#039; the installed packages:&lt;br /&gt;
&lt;br /&gt;
{{cmd|apk update&lt;br /&gt;
apk upgrade&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Or, combining the same into one single command:&lt;br /&gt;
&lt;br /&gt;
{{cmd|apk -U upgrade&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is an example, showing the procedure on a system that has several additional [https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Repository_pinning repositories pinned]:&lt;br /&gt;
&lt;br /&gt;
 # apk update&lt;br /&gt;
 fetch http://dl-3.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz&lt;br /&gt;
 fetch http://dl-3.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz&lt;br /&gt;
 fetch http://dl-3.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz&lt;br /&gt;
 fetch http://dl-3.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz&lt;br /&gt;
 fetch http://dl-3.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz&lt;br /&gt;
 v3.6.2-191-gf98d79930f [http://dl-3.alpinelinux.org/alpine/v3.6/main]&lt;br /&gt;
 v3.6.2-190-ga5d68c47df [http://dl-3.alpinelinux.org/alpine/v3.6/community]&lt;br /&gt;
 v3.6.0-4618-g0bf77c9821 [http://dl-3.alpinelinux.org/alpine/edge/main]&lt;br /&gt;
 v3.6.0-4605-g85ed51dd83 [http://dl-3.alpinelinux.org/alpine/edge/community]&lt;br /&gt;
 v3.6.0-4624-g11f1b9c8ab [http://dl-3.alpinelinux.org/alpine/edge/testing]&lt;br /&gt;
 OK: 20118 distinct packages available&lt;br /&gt;
 &lt;br /&gt;
 # apk upgrade&lt;br /&gt;
 (1/2) Upgrading extra-cmake-modules@testing (5.38.0-r0 -&amp;gt; 5.39.0-r0)&lt;br /&gt;
 (2/2) Upgrading extra-cmake-modules-doc@testing (5.38.0-r0 -&amp;gt; 5.39.0-r0)&lt;br /&gt;
 Executing mdocml-apropos-1.14.1-r0.trigger&lt;br /&gt;
 OK: 2635 MiB in 803 packages&lt;br /&gt;
&lt;br /&gt;
To upgrade only &#039;&#039;specific&#039;&#039; packages, use the &#039;&#039;-u&#039;&#039; or &#039;&#039;--upgrade&#039;&#039; option of the &#039;&#039;&#039;add&#039;&#039;&#039; command:&lt;br /&gt;
&lt;br /&gt;
{{cmd|apk update&lt;br /&gt;
apk add --upgrade busybox &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Note|Remember that when you reboot your machine, remote repositories will not be available until after the networking is started. This means packages newer than your local boot media will likely not be installed after a reboot. To make an &amp;quot;upgrade&amp;quot; persist over a reboot, use a [[#Local Cache|local cache]].}}&lt;br /&gt;
&lt;br /&gt;
To upgrade an running system to a newer release, refer the release notes and [[Upgrading_Alpine]].&lt;br /&gt;
&lt;br /&gt;
= Search for Packages =&lt;br /&gt;
The &#039;&#039;&#039;search&#039;&#039;&#039; command searches the repository Index files for installable packages. &lt;br /&gt;
&lt;br /&gt;
The return format is &#039;&#039;&#039;Package&#039;&#039;&#039;-&#039;&#039;&#039;Version&#039;&#039;&#039;. Omit &#039;&#039;&#039;Version&#039;&#039;&#039; for &#039;&#039;apk add &#039;&#039;&#039;Package&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
* To list all packages available, along with their descriptions: {{cmd|apk search -v}}&lt;br /&gt;
* To list all packages are part of the ACF system: {{cmd|apk search -v &#039;acf*&#039; }}&lt;br /&gt;
* To list all packages that list NTP as part of their description, use the &#039;&#039;-d&#039;&#039; or &#039;&#039;--description&#039;&#039; option: {{cmd|apk search -v --description &#039;NTP&#039; }}&lt;br /&gt;
&lt;br /&gt;
= Information on Packages =&lt;br /&gt;
&lt;br /&gt;
== apk info ==&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;info&#039;&#039;&#039; command provides information on the contents of packages, their dependencies, and which files belong to a package.&lt;br /&gt;
&lt;br /&gt;
For a given package, each element can be chosen (for example, &#039;&#039;-w&#039;&#039; to show just the webpage information), or all information displayed with the &#039;&#039;-a&#039;&#039; command.&lt;br /&gt;
&lt;br /&gt;
Example: {{cmd|apk info -a zlib}}&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;zlib-1.2.5-r1 description:&#039;&#039;&#039;&lt;br /&gt;
 A compression/decompression Library&lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;zlib-1.2.5-r1 webpage:&#039;&#039;&#039;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://zlib.net&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;zlib-1.2.5-r1 installed size:&#039;&#039;&#039;&lt;br /&gt;
 94208&lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;zlib-1.2.5-r1 depends on:&#039;&#039;&#039;&lt;br /&gt;
 libc0.9.32&lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;zlib-1.2.5-r1 is required by:&#039;&#039;&#039;&lt;br /&gt;
 libcrypto1.0-1.0.0-r0&lt;br /&gt;
 apk-tools-2.0.2-r4&lt;br /&gt;
 openssh-client-5.4_p1-r2&lt;br /&gt;
 openssh-5.4_p1-r2&lt;br /&gt;
 libssl1.0-1.0.0-r0&lt;br /&gt;
 freeswitch-1.0.6-r6&lt;br /&gt;
 atop-1.25-r0 &lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;zlib-1.2.5-r1 contains:&#039;&#039;&#039;&lt;br /&gt;
 lib/libz.so.1.2.5&lt;br /&gt;
 lib/libz.so.1&lt;br /&gt;
 lib/libz.so &lt;br /&gt;
 &lt;br /&gt;
 &#039;&#039;&#039;zlib-1.2.5-r1 triggers:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As shown in the example you can determine&lt;br /&gt;
* The &#039;&#039;&#039;description&#039;&#039;&#039; of the package (&#039;&#039;-d&#039;&#039; or &#039;&#039;--description&#039;&#039;)&lt;br /&gt;
* The &#039;&#039;&#039;webpage&#039;&#039;&#039; where the application is hosted (&#039;&#039;-w&#039;&#039; or &#039;&#039;--webpage&#039;&#039;)&lt;br /&gt;
* The &#039;&#039;&#039;size&#039;&#039;&#039; the package will require once installed (in bytes) (&#039;&#039;-s&#039;&#039; or &#039;&#039;--size&#039;&#039;)&lt;br /&gt;
* What packages are required to use this one  (&#039;&#039;&#039;depends&#039;&#039;&#039;) (&#039;&#039;-R&#039;&#039; or &#039;&#039;--depends&#039;&#039;)&lt;br /&gt;
* What packages require this one to be installed (&#039;&#039;&#039;required by&#039;&#039;&#039;) (&#039;&#039;-r&#039;&#039; or &#039;&#039;--rdepends&#039;&#039;)&lt;br /&gt;
* The &#039;&#039;&#039;contents&#039;&#039;&#039; of the package, that is, which files it installs (&#039;&#039;-L&#039;&#039; or &#039;&#039;--contents&#039;&#039;)&lt;br /&gt;
* Any &#039;&#039;&#039;triggers&#039;&#039;&#039; this package sets. (&#039;&#039;-t&#039;&#039; or &#039;&#039;--triggers&#039;&#039;) Listed here are directories that are watched; if a change happens to the directory, then the trigger script is run at the end of the apk add/delete. For example, doing a depmod once after installing all packages that add kernel modules.&lt;br /&gt;
&lt;br /&gt;
{{Tip|The &#039;&#039;&#039;info&#039;&#039;&#039; command is also useful to determine which package a file belongs to.  For example: {{cmd|apk info --who-owns /sbin/lbu}} will display&lt;br /&gt;
&lt;br /&gt;
 /sbin/lbu is owned by alpine-conf-x.x-rx&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Listing installed packages ===&lt;br /&gt;
&lt;br /&gt;
To list all installed packages, use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;apk info&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To list all installed packages in alphabetical order, with a description of each, do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;apk -vv info|sort&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== apk policy ==&lt;br /&gt;
&lt;br /&gt;
To display the repository a package was installed from and will be updated from, plus any [https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Repository_pinning tagged] or enabled repositories where it is also offered, if any, for this architecture - its &#039;&#039;&#039;policy&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 apk policy &#039;&#039;package&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ apk policy vlc&lt;br /&gt;
 vlc policy:&lt;br /&gt;
  2.2.6-r1:&lt;br /&gt;
    lib/apk/db/installed&lt;br /&gt;
    http://dl-3.alpinelinux.org/alpine/v3.7/community&lt;br /&gt;
  3.0.0_rc2-r1:&lt;br /&gt;
    @edgecommunity http://dl-3.alpinelinux.org/alpine/edge/community&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional apk Commands =&lt;br /&gt;
In progress...&lt;br /&gt;
&lt;br /&gt;
= Local Cache =&lt;br /&gt;
&lt;br /&gt;
{{:Local_APK_cache}}&lt;br /&gt;
&lt;br /&gt;
= Advanced APK Usage =&lt;br /&gt;
&lt;br /&gt;
== Holding a specific package back ==&lt;br /&gt;
&lt;br /&gt;
In certain cases, you may want to upgrade a system, but keep a specific package at a back level. It is possible to add &amp;quot;sticky&amp;quot; or versioned dependencies. For instance, to hold the &#039;&#039;asterisk&#039;&#039; package to the 1.6.2 level or lower:&lt;br /&gt;
{{cmd|1=apk add asterisk=1.6.0.21-r0}}&lt;br /&gt;
or&lt;br /&gt;
{{cmd|apk add &#039;asterisk&amp;lt;1.6.1&#039;}}&lt;br /&gt;
&lt;br /&gt;
after which a {{cmd|apk upgrade}}&lt;br /&gt;
&lt;br /&gt;
will upgrade the entire system, keeping the asterisk package at the 1.6.0 or lower level&lt;br /&gt;
&lt;br /&gt;
To later upgrade to the current version,&lt;br /&gt;
&lt;br /&gt;
{{cmd|apk add &#039;asterisk&amp;gt;1.6.1&#039;}}&lt;br /&gt;
&lt;br /&gt;
will ensure that 1.6.1 is the minimum version used.&lt;br /&gt;
&lt;br /&gt;
You can also use &amp;quot;fuzzy&amp;quot; version matching to pin the version to a major/minor release.  For example:&lt;br /&gt;
&lt;br /&gt;
{{cmd|1=apk add &#039;asterisk=~1.6&#039;}}&lt;br /&gt;
&lt;br /&gt;
will match any version of asterisk that starts with 1.6 (such as 1.6.0.21-r0 or 1.6.9.31-r9)  &amp;lt;ref&amp;gt;[https://git.alpinelinux.org/apk-tools/commit/?id=693b4bcdb0f22904a521a7c8ac4f13e697dc4d71 Alpine source commit message]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you desire deterministic, repeatable package installation (such as with containerized environments) via package pinning, it is important to understand your package repo&#039;s version retention rules.  For example, most Alpine package repos contain an &amp;quot;edge&amp;quot; branch, which may drop package versions that are not deemed fit to make it into a stable branch.  This means that pinning to a version on the edge branch may stop working after the package version is revoked from the repo.  Always pin to a package version that is intended for your current Alpine Linux version.&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;apk-tools is old&amp;quot; == &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;apk update&#039;&#039;&#039;, &#039;&#039;&#039;apk upgrade&#039;&#039;&#039; or &#039;&#039;&#039;apk add&#039;&#039;&#039; may report the following: &lt;br /&gt;
 WARNING: This apk-tools is OLD! Some packages might not function properly&lt;br /&gt;
&lt;br /&gt;
This may happen if you are running Alpine Linux stable version with a certain edge/main, edge/community or testing package(s) also installed.  One resolution is to consider upgrading {{pkg|apk-tools}}.  If edge is already [https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Repository_pinning tagged] in your repositories, then try:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apk add --upgrade apk-tools@edge&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= =&lt;br /&gt;
* [https://www.cyberciti.biz/faq/10-alpine-linux-apk-command-examples/ 10 Alpine Linux apk Command Examples]  Vivek Gite 2019&lt;br /&gt;
&lt;br /&gt;
[[Category:Package Manager]]&lt;/div&gt;</summary>
		<author><name>Newbyte</name></author>
	</entry>
</feed>