Questions tagged [apk-tools]
The APK package format and the apk tools used by Alpine Linux. Not to be confused with Android apk packages.
40
questions
0
votes
1
answer
16
views
Apktool version
When I type apktool -version in the terminal, it tells me that it has version 2.6.0 When I type ./apktool -version in /usr/local/bin, it prints 2.7.0. How can I bring apktool to 2.7.0 version?
1
vote
0
answers
27
views
How does apk's replaces work when the package being replaced gets upgraded?
Say I have a package A, and package B. Package B contains some files which deliberately conflict with package A, and it is desirable for package B's files to be favoured over the ones in package A if ...
1
vote
0
answers
100
views
How do I use abuild inside of a Distrobox container?
I want to use Alpine inside of a Distrobox container using the alpine-toolbox-edge image and do various tasks involving the abuild program. I followed the instructions in the "Creating an Alpine ...
1
vote
1
answer
49
views
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 ...
0
votes
1
answer
2k
views
Using apk add to install a specific version of package from alpinelinux.org
I'm trying to use nginx-mod-http-lua on Alpine v3.17-stable. I want to use this specific 1.24.0-r2 version of the package which was just released two days ago.
I'm trying docker run -it nginx:1.24.0-...
0
votes
1
answer
2k
views
How to install sudo on Alpine 3.17 VM?
I have installed Alpine r3.17 on a VM under KVM. I want to install sudo tool.
# su -
# apk update
...
OKL 4994 distinct packages available
# apk add sudo
ERROR: unable to select packages:
sudo ...
0
votes
1
answer
36
views
android : from a modern Android system, how to install an old apk only compatible to an older Android system
android :
from a modern Android system, how to install an old apk only compatible to an older Android system?
0
votes
1
answer
804
views
Alpine not installing "latest" package
I am trying to install latest version of chromium (v108.0.5359.125), and I have the following in my Dockerfile:
FROM node:14.20.1-alpine3.16
ENV CHROME_BIN=/usr/bin/chromium-browser
RUN echo @latest ...
1
vote
1
answer
5k
views
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 ...
1
vote
1
answer
235
views
Identify apk packages based on .PKGINFO depend entry
I am interested in resolving apk package dependencies, ideally with a scripting language like python. Basically I want to be able to derive a dependency tree of a package, without the need to run on a ...
3
votes
2
answers
20k
views
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 ...
0
votes
1
answer
328
views
Can you configure Alpine's apk to be interactive by default?
I find myself preferring the interactive mode that can be accessed by adding the -i flag when running Alpine's apk over the default non-interactive mode. However, it is rather tedious to constantly ...
0
votes
0
answers
236
views
Capstone install
I want to build app from some source code, i run this in docker.
have this error
/vulnscan/src/disassembler.h:4:10: fatal error: capstone\capstone.h: No such file or directory
#include "capstone\...
0
votes
1
answer
1k
views
how to update repositories in Alpine
I am trying to get the latest version of the "consul" package.
the current available and installed package is version 1.10.6 but the latest is 1.11.1
sudo apk list | grep consul
consul-...
1
vote
1
answer
387
views
Tell whether reboot is required after apk upgrade
How do we know whether we need to reboot after apk upgrade? I know that we probably need to reboot after kernel update, but how about system libraries and Busybox (as init)?
For Debian we have several ...
1
vote
1
answer
3k
views
In alpine, why won't an upgradable python package upgrade?
In alpine edge, I have the packaged onboard installed, but it is failing to launch.
$ onboard
Traceback (most recent call last):
File "/usr/bin/onboard", line 32, in <module>
...
1
vote
1
answer
1k
views
How to download alpine linux packages over tor
In Debian, one can install apt-transport-tor, which allows packages to be downloaded over tor (to prevent an observer from seeing what packages you are installing). Is there an equivalent in Alpine ...
1
vote
1
answer
962
views
python3.7 on modern alpine linux
I need cpython 3.7 in alpine linux 3.13. I cannot find any way to install it or build it.
I have to have python3.8 (the standard from the repos) installed as well. I only need python3.7 in order to ...
0
votes
1
answer
1k
views
cannot open '/home/user/original/AndroidManifest.xml' for reading: No such file or directory
I've been trying to use evil-droid to backdoor an apk. But it showed me this error.
] Adding permission and Hook Smali
[ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ]
head: cannot ...
5
votes
1
answer
3k
views
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 ...
3
votes
1
answer
3k
views
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 ...
3
votes
1
answer
2k
views
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,...
1
vote
0
answers
281
views
python3 not installed from /etc/apk/world
I have created my own lbu for a customized USB bootable installation. The apkovl file contains the apk cache.
Everything works as expected. All packages, but python3, from /etc/apk/world are ...
1
vote
0
answers
280
views
Alpine Linux apk continues to install despite pre-install failure
The documentation for the Alpine package says the following of the pre-install script:
Note the exit 0 at the end. If the script exits with failure (if the user already exist), the package will not ...
1
vote
1
answer
1k
views
Alpine Linux: See errors from apk add/del
apk add/del is reporting errors after any operation. It's always 2 errors. For example (coreutils is already installed):
$ sudo apk add -vv coreutils
After this operation, 0 KiB of additional disk ...
1
vote
1
answer
706
views
Trouble creating Alpine package
I'm trying to create an .apk file. I read a number of tutorials about it, and tried to follow them as best as I could, I have APKBUILD file, I have the sample-version.tar.gz, have the checksum. But ...
2
votes
1
answer
5k
views
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....
1
vote
1
answer
766
views
How to create alpine package without git?
If I already have all the files how do I package them up into an .apk file that I can later installed?
Sort of an equivalent of fakeroot dpkg-deb -b package-dir package.deb, or something to achieve ...
0
votes
1
answer
1k
views
Docker file with apt package
I have below two commands using apk
apk add --no-cache curl && \
curl -sSLO https://github.com/awslabs/aws-sam-local/releases/download/v${VERSION}/sam_${VERSION}_linux_386.tar.gz &&...
2
votes
1
answer
265
views
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/...
15
votes
2
answers
12k
views
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 ...
5
votes
1
answer
9k
views
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 alpine:3....
9
votes
1
answer
5k
views
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 ...
1
vote
1
answer
3k
views
Alpine Linux - Ignoring APKINDEX : Bad file Descriptor
when I do apk update or apk add ..., gives me error below:
fetch http://dl-4.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-4.alpinelinux.org/alpine/v3.8/main: Bad file ...
0
votes
1
answer
489
views
How to install audit2allow on Alpine Linux 3.5?
I am coming from an apt-get background and am now trying (and failing) to use Alpine Linux's apk utility for package management.
I try running apk install audit2allow and end up with a help message ...
3
votes
2
answers
2k
views
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 ...
14
votes
3
answers
34k
views
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? ...
1
vote
2
answers
6k
views
Install Node.js 4 on Alpine Linux
I am new to Alpine Linux and I tried to install Node.js 4.
According to this I can specify the version like this:
apk add nodejs=4
I also tried this because I though maybe it doesn't understand ...
2
votes
1
answer
10k
views
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....
29
votes
4
answers
25k
views
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?