1
0
mirror of https://gitlab.alpinelinux.org/alpine/apk-tools.git synced 2025-04-18 21:24:00 +03:00
Timo Teräs acae571db2 pkg: apk_pkg_replaces_{dir,file} access ipkgs consistently
minor style change - no functional changes
2025-04-18 11:15:01 +03:00
2025-04-17 09:59:22 +00:00
2025-01-03 13:04:59 +02:00
2024-12-09 16:10:41 +00:00
2024-07-09 10:32:48 +02:00
2020-05-07 10:45:34 +03:00
2025-02-08 16:22:52 +02:00

apk-tools

Alpine Package Keeper (apk) is a package manager originally built for Alpine Linux, but now used by several other distributions as well.

Building

The preferred build system for building apk-tools is Meson:

# meson setup -Dprefix=/ build
# ninja -C build
# meson install -C build

For bootstrapping without Python, muon is also compatible. All you have to do is replace meson with muon in the above example.

To build a static apk, pass the right arguments to the above commands:

# meson setup -Dc_link_args="-static" -Dprefer_static=true -Ddefault_library=static build
# ninja -C build src/apk

Which will give you a ./build/src/apk that is statically linked.

While there is a legacy Makefile-based system available, it only works for musl-linux targets, and will be dropped in the apk-tools 3.0 release.

Documentation

Online documentation is available in the doc/ directory in the form of man pages.

The apk(8) man page provides a basic overview of the package management system.

Description
Менеджер пакетов Alpine
Readme GPL-2.0 4.3 MiB
Languages
C 94.2%
Shell 2.6%
Meson 1.3%
Makefile 0.9%
Lua 0.9%