Questions tagged [apk-tools]

The APK package format and the apk tools used by Alpine Linux. Not to be confused with Android apk packages.

APK is the package format used by Alpine Linux . The main tool to manipulate APK packages is apk, distributed as part of apk-tools.

Not to be confused with Android apk packages.

External links

39 questions
28
votes
4 answers

How to search for a file in apk packages

I would like to know, given a binary's name, which package I should install on Alpine Linux. How can I do that?
Antoine
  • 1,021
  • 1
  • 12
  • 13
15
votes
2 answers

How to show details of error in Alpine apk

I use Alpine Linux 3.9.3 x86_64 when I issue: # apk upgrade the output is: 3 errors; 1973 MiB in 519 packages How can I get the details about those 3 errors? I tried the --verbose flag but result is same. These are the workarounds I thought would…
user1337
  • 403
  • 1
  • 3
  • 14
14
votes
3 answers

Install apk tool on Alpine Linux

I'm fiddling with a Docker image, built from a Virtualbox VM using Packer. The image is Alpine Linux 5.3.0, but apk seems to have been removed. How can I reinstall apk, or build it from source? Googling seems only to yield results on people…
EngineerBetter_DJ
  • 241
  • 1
  • 2
  • 5
8
votes
1 answer

How to get the source code used to build the packages of the base alpine linux docker image?

Why I want to know this: Currently, I use apt-get source to get the source code for all packages within my Debian based docker images to comply with the GPL when I distribute the docker images. Now there are e few docker images where I would like to…
5
votes
1 answer

How do I reinstall all installed packages in Alpine Linux?

I'm having some issues with my system and I would like to reinstall packages to see if that resolves it, but I'm not sure how I'd go about doing this. How do I reinstall all installed packages in Alpine Linux?
Newbyte
  • 856
  • 1
  • 9
  • 31
5
votes
1 answer

Alpine Linux apk add gives permission error

I'm trying to install packages in a docker image based on alpine. The host system is CentOS system, system-release: CentOS Linux release 7.6.1810 (Core). Here's what I do: # docker run -td…
Wilbert
  • 191
  • 1
  • 7
3
votes
1 answer

How do I build and install a package from an APKBUILD in Alpine Linux?

I have an APKBUILD and associated files (patches, et cetera), and I would like to build and install it locally. I'm aware that I can build it with abuild, but this doesn't seem to keep the package afterwards. How do I build and install a package…
3
votes
1 answer

BAD signature when installing specific package with apk after forced poweroff

Earlier I was playing around with my PinePhone running postmarketOS Edge (based on Alpine Linux Edge) and while installing gcc-go using apk via the command sudo apk add gcc-go the phone froze. As such, I did a forced power off and booted it back up.…
3
votes
2 answers

How to determine apk package name from search results

On Alpine Linux, given the results of an apk search, how do I determine the package name to give to apk add? For example, suppose I forgot the how to spell "lighttpd", or I forgot exactly what the package name was. I might do an apk search…
peterpi
  • 131
  • 4
2
votes
2 answers

How to install specific version of python on Alpine linux

I am using docker's official docker image and want to install python3.9.6 Running this installs python 3.10.x apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python and I can't figure out how to specify exact version of python I want…
hdw3
  • 121
  • 1
  • 1
  • 2
2
votes
1 answer

How to list all the dependencies inside an apk virtual package name?

deps added to a virtual package: apk add --no-cache --virtual .build-deps gcc make libc-dev How can I list them? apk list gives garbage. apk list .build-deps WARNING: Ignoring APKINDEX.00740ba1.tar.gz: No such file or directory WARNING: Ignoring…
marathon
  • 883
  • 3
  • 10
  • 25
2
votes
1 answer

How to prevent apk from overriding config files

So I've stumbled upon issue after issue every time I upgrade using apk upgrade that apk keeps on adding default config files without my consent, is there any way to have apk either never override/replace the config file or have it prompt the user…
Kappa
  • 21
  • 1
2
votes
1 answer

ERROR: unsatisfiable constraints: tor (missing)

I'm trying to add alpine package tor and getting a following error: root@linode:~/# docker run -it alpine /bin/sh / # apk update fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz fetch…
alexus
  • 986
  • 5
  • 16
  • 31
1
vote
1 answer

Alpine Linux: apk cache APKINDEX checksum details

In Alpine Linux, when I run the command apk update it looks at my /etc/apk/repositories file and downloads the APKINDEX.tar.gz file from each repository. It then renames each APKINDEX tar file using a checksum to be in the format…
1
vote
1 answer

unable to select packages so:libcrypto.so.3 on alpine

Situation: Almost the same question as Installing php7 on alpine: missing libcrypto and libssl However, as the latest comment said: Now that several years have gone by, all of the answers above are invalid, and there does not seem a stable solution…
xpt
  • 1,182
  • 2
  • 13
  • 32
1
2 3