Questions tagged [apk-tools]
The APK package format and the apk tools used by Alpine Linux. Not to be confused with Android apk packages.
28
questions
0
votes
1
answer
22
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
40
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
155
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-...
0
votes
1
answer
31
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 ...
0
votes
1
answer
756
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
439
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
650
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
575
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
1k
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 ...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
981
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
132
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
183
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
520
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
388
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 ...
1
vote
1
answer
2k
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
391
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
311
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
174
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/...
10
votes
2
answers
7k
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 ...
3
votes
1
answer
5k
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....
1
vote
1
answer
2k
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
353
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
1k
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 ...
12
votes
3
answers
24k
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 ...
1
vote
1
answer
9k
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....
25
votes
3
answers
18k
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?