News for hackers. Stuff that matters.
Re:In Praise of Alpine and APK by nrclark on Monday February 20, 2023 @04:41PM (#34873328)
Alpine is great, and I have nothing bad to say about it. I'm curious though: what sharp corners have you found with apt? I've been a Debian user for 20 years and I've never had any problems relating to apt/dpkg.
Re:In Praise of Alpine and APK by hawski on Monday February 20, 2023 @05:33PM (#34873848)
For me personally apt is just annoyingly slow, but dnf is much worse. I've seen how fast APK is and I feel, that my distro of choice (Void) has a package manager (XBPS) that is maybe slightly slower than it.

I sometimes wonder if it is like that, because XBPS and APK were designed and built by C hackers while apt where done by system administrators maybe. With dnf/rpm I attribute it to this quirkiness I often feel diving into some of Red Hat's tech. Not trying to offend, just wondering and I acknowledge that I am biased.

Re:In Praise of Alpine and APK by invalidator on Monday February 20, 2023 @06:22PM (#34874248)
> apt is just annoyingly slow

A lot of that is due to aggressive use of fsync. apt tries hard to be robust against power failures when changing the system.

When using it for something ephemeral (say, part of a CI workflow) you can disable fsync and let it rip. It's still not as fast as apk but it's several times faster than normal.

  apt-get -yq install eatmydata
  eatmydata apt-get -yq install (all the other things)
Re:In Praise of Alpine and APK by gorgoiler on Monday February 20, 2023 @11:25PM (#34876574)
Wow. You weren’t kidding.

I tried apt install ffmpeg in a debian:sid docker container on two different docker hosts: one with slow IO (a cheap VPS with slow, contentious storage); and one with much faster, less over subscribed IO.

Fast IO: 27s -> 26s with eatmydata. Basically the same.

Slow IO: 280s -> 140s with eatmydata. Literally twice as fast.

Re:In Praise of Alpine and APK by PhilipRoman on Monday February 20, 2023 @05:08PM (#34873612)
Never used pure Debian so I don't know how much of this is Ubuntu's fault but just today I had to fix a similar issue as described here: https://askubuntu.com/questions/1097066 Also the solution somehow ended up uninstalling the desktop environment. Still scratching my head over that one. It wasn't my own system though.
Re:In Praise of Alpine and APK by pxc on Monday February 20, 2023 @06:39PM (#34874399)
* * *
Re:In Praise of Alpine and APK by PhilipRoman on Tuesday February 21, 2023 @01:10AM (#34877337)
Thanks, this was an interesting writeup. Learned a few new things today.