Questions tagged [alpine-linux]

Alpine Linux is a distribution for small, secure systems, based on busybox and musl

Alpine Linux is a Linux distribution designed for small, secure systems, often used in containers. It uses musl and for the core system rather than GNU libc and GNU coreutils. It has its own package manager, apk , manipulating APK packages. Its init system is .

External links

297 questions
47
votes
6 answers

How to solve “tar: invalid magic” error on Linux Alpine

I'm installing sqlite on Alpine Linux. I download sqlite-autoconf-3130000.tar.gz but tar could not open it. I tried this answer but it's not working. tar gives this message: tar: invalid magic tar: short read I wrote these commands. wget…
daylight
  • 571
  • 1
  • 4
  • 4
31
votes
5 answers

"date -d" command fails on Docker Alpine Linux container

I built Alpine Linux in a Docker container with the following Dockerfile: FROM alpine:3.2 RUN apk add --update jq curl && rm -rf /var/cache/apk/* the build run successfully: $ docker build -t collector . Sending build context to Docker daemon 2.048…
BBJ3
  • 981
  • 1
  • 7
  • 8
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
24
votes
1 answer

Alpine linux missing shutdown command

Im on a smartphone with alpine linux & KDE desktop, running ssh in, and for some reason no one thought to put a shutdown aplet in a logical place, and even the shutdown utility is not present. $ whereis shutdown shutdown: nothing, ooh but I do…
j0h
  • 3,467
  • 8
  • 27
  • 36
20
votes
3 answers

Why does Linux network traffic only go through eth0?

I got two NICs on the server side, eth0 ? 192.168.8.140 and eth1 ? 192.168.8.142. The client sends data to 192.168.8.142, and I expect iftop to show the traffic for eth1, but it does not. All networks go through eth0, so how can I test the two…
wener
  • 456
  • 3
  • 9
18
votes
2 answers

Automatic yes to prompts when installing package on Alpine Linux

I'd like to know if apk add is capable of automatically assuming yes to any prompts when installing a new package on Alpine Linux? I'm familiar with running something like apt-get install -y curl on Ubuntu and wondering if there's an equivalent…
pjlangley
  • 283
  • 1
  • 2
  • 5
18
votes
1 answer

How to install Microsoft true type font on Alpine Linux?

I would like to create a Docker image using Alpine Linux and LibreOffice to render PDF documents. The LibreOffice source documents are using Microsofts Times New Roman font. How can I install Microsoft fonts using apk on Alpine Linux? Is there an…
saw303
  • 283
  • 1
  • 2
  • 7
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
1 answer

Alpine Linux run a startup script to change the /etc/issue

I have done the following shell script that update the /etc/issue with the current ip's of all non-loopback interfaces: #!/bin/sh echo "You can use one of the following ip addresses in order to look the page or even ssh into the machine" >…
Dimitrios Desyllas
  • 979
  • 3
  • 11
  • 27
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
12
votes
2 answers

Installing mongodb on alpine > 3.9

Since mongodb changed their license, it is no longer available as an apk package on the alpine repository for alpine versions after 3.9. mongodb exists on alpine 3.9 mongodb does not exist on alpine 3.11 Is there any way to install it on newer…
DannyB
  • 221
  • 1
  • 2
  • 4
10
votes
2 answers

How to install Java 8 on Alpine Linux?

When I look at package lists they suggest that all sorts of Java 8 packages exist for Alpine, but when I try to install them I always get: apk add openjdk8 ERROR: unsatisfiable constraints: openjdk8-jre (missing): required by:…
Maxim
  • 728
  • 3
  • 12
  • 22
10
votes
3 answers

Alpine version-sort

How to do sort -V in alpine linux? sort: unrecognized option: V BusyBox v1.28.4 (2018-12-06 15:13:21 UTC) multi-call binary. Usage: sort [-nrugMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]... Sort lines of…
Rex Lam
  • 203
  • 2
  • 4
9
votes
3 answers

Alpine Linux sometimes DNS is not resolved

Sometimes when I run the commands: sudo apk update && sudo apk upgrade Over Alpine linux fails to update the packages even if connected to internet. But if I do sudo su "echo 'nameserver 8.8.8.8' > /etc/resolv.conf" I manage to dowload them. But…
Dimitrios Desyllas
  • 979
  • 3
  • 11
  • 27
9
votes
2 answers

crond log level meaning

I cannot find anywhere the log level meaning of crond. I know that 0 is pretty much "log everything" while 8 is "show only important info" thanks to the crond help: / # crond --help BusyBox v1.26.2 (2017-11-23 08:40:54 GMT) multi-call…
Oscar Fanelli
  • 193
  • 1
  • 1
  • 5
1
2 3
19 20