23

How to install Debian packages on Alpine?

For example:

wget https://dl.influxdata.com/influxdb/releases/influxdb_0.13.0_armhf.deb
sudo dpkg -i influxdb_0.13.0_armhf.deb
valiano
  • 16,433
  • 7
  • 64
  • 79
viswa
  • 259
  • 1
  • 2
  • 4

2 Answers2

34

Good news:

alpine now has dpkg package available in its repository and you can install it by apk add dpkg and you can use dpkg -i *.deb to install the deb you want.

Himanshu
  • 3
  • 5
JiaHao Xu
  • 2,452
  • 16
  • 31
5

Alpine Linux is not a Debian derivate (luckily), so it does not support Debian packages.

Alpine doesn't provide a package for influxdb (yet), so you can create one or install influxdb from sources.

Jakub Jirutka
  • 10,269
  • 4
  • 42
  • 35
  • 26
    Why is that a good thing that Alpine is not compatible with Debian? This makes life hard for people who want to switch. – Mahdi Sep 06 '17 at 10:12
  • 11
    well it's a completely different linux distribution so why would you expect it in any way to be compatible with debian packages? how often do you see kangaroos mating with whales? –  Jun 01 '18 at 13:45
  • 6
    That is not a strange expectation. There are plenty of distributions that use common package managers. For example, Ubuntu and Kali use Debian packages. RPMs are used by Red Hat (obviously), SUSE, and Mandriva linux distributions. – Sevak Avakians Feb 04 '19 at 19:46
  • 3
    Alpine's theme is: "Small. Simple. Secure.". Adding deb support would conflict with it. There are plenty of alternatives for Alpine. If space is not an issue, why not simply use a ubuntu server image? – mace May 22 '19 at 16:20
  • @mace for me it's centralization and latest versions, The way alpine structure APKs are so good as making blender latest down to 77.51 installed size due to **separation** of dependancies, that ones could be used by other packages olso, so that allow for less proccess replication and more of hardware effetiency for large scale setup also, but it still lake many packages – Abd-Elaziz Sharaf Aug 12 '23 at 17:17