Vous êtes dans un espace restreint en écriture.
Alpine Package Keeper
apk est le gestionnaire de paquets
voir Site « wiki - Alpine Package Keeper » (consulté le 18 juil 2023)
Commandes de base
distribution | alpine | debian |
paquets | apk info | dpkg -l |
mise à jour de la base | apk update | apt-get update |
installation | apk add [package name] | apt-get install [package name] |
recherche | apk search -v '[string]*' | apt-cache search [string] |
désinstallation | apk del [package name] | apt-get remove [package name] |
liste le contenu | apk info -L package name | |
nettoyage | (automatique) | apt-get clean && apt-get autoclean |
Installer / Désinstaller des paquets pour DEV
- installer des paquets
apk add --virtual .devenv git gcc make
(1/20) Installing ca-certificates (20211220-r0)
(2/20) Installing nghttp2-libs (1.41.0-r0)
(3/20) Installing libcurl (7.79.1-r1)
(4/20) Installing expat (2.2.10-r4)
(5/20) Installing pcre2 (10.35-r0)
(6/20) Installing git (2.26.3-r1)
(7/20) Installing make (4.3-r0)
(8/20) Installing binutils (2.34-r2)
(9/20) Installing gmp (6.2.1-r1)
(10/20) Installing isl (0.18-r0)
(11/20) Installing libgomp (9.3.0-r2)
(12/20) Installing libatomic (9.3.0-r2)
(13/20) Installing libgphobos (9.3.0-r2)
(14/20) Installing mpfr4 (4.0.2-r4)
(15/20) Installing mpc1 (1.1.0-r1)
(16/20) Installing gcc (9.3.0-r2)
(17/20) Installing .devenv (20220519.161847)
(18/20) Installing perl-error (0.17029-r0)
(19/20) Installing perl-git (2.26.3-r1)
(20/20) Installing git-perl (2.26.3-r1)
Executing busybox-1.31.1-r19.trigger
Executing ca-certificates-20211220-r0.trigger
OK: 284 MiB in 68 packages
- faire le devops
- purger
apk del --purge .devenv
(1/20) Purging .devenv (20220519.161847)
(2/20) Purging make (4.3-r0)
(3/20) Purging gcc (9.3.0-r2)
(4/20) Purging binutils (2.34-r2)
(5/20) Purging libatomic (9.3.0-r2)
(6/20) Purging libgomp (9.3.0-r2)
(7/20) Purging libgphobos (9.3.0-r2)
(8/20) Purging git-perl (2.26.3-r1)
(9/20) Purging perl-git (2.26.3-r1)
(10/20) Purging git (2.26.3-r1)
(11/20) Purging perl-error (0.17029-r0)
(12/20) Purging libcurl (7.79.1-r1)
(13/20) Purging ca-certificates (20211220-r0)
Executing ca-certificates-20211220-r0.post-deinstall
(14/20) Purging nghttp2-libs (1.41.0-r0)
(15/20) Purging expat (2.2.10-r4)
(16/20) Purging pcre2 (10.35-r0)
(17/20) Purging isl (0.18-r0)
(18/20) Purging mpc1 (1.1.0-r1)
(19/20) Purging mpfr4 (4.0.2-r4)
(20/20) Purging gmp (6.2.1-r1)
Executing busybox-1.31.1-r19.trigger
OK: 145 MiB in 48 packages
Recherche de paquets
Voir https://pkgs.alpinelinux.org/packages
Installer depuis edge
edge est la branche de développement.
Il est possible d'installer un paquet depuis cette branche avec la commande:
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing ccze
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
Option Possible:
--allow-untrusted