Hacker News new | ask | show | jobs
by ryan-duve 1419 days ago
I've only had to use `apk` for a Dockerfile layer when we were really trying to minimize the footprint of an image. From what I could tell, there was no discernible difference from `yum` or `apt`. What are the features that make it stand out to you?
2 comments

The packaging format and system is very different to yum and deb, despite the similarities in cli interface for local maintenance. It's quite similar to PKGBUILD in Arch, except with more streamlined tooling.
intuitive CLI, things are packaged a bit better, easy configuration.

I swore off of apt based distros after I accidentally installed some graphical things on my WSL and multiple debian wizards couldn't figure out how to remove them, even when I installed stuff like dpigs and aptitude.

I've been running debian for 8 or 9 years now, on hardware not WSL2 and have no issues with apt. I use debian on my own machine because we use debian on all our cloud VMs and I don't want to learn more than one distro so idk if your WSL2 problems are a great reason to swear debian off
My golden rule of sys admin is if you can't fix it, you reformat and replace it.

If you reproduce the error, congrats, now you get to figure out where to file the bug report with reproduction steps.

My golden rule of sys admin is that anything on a Linux based OS can be fixed. Preferably without a reboot.

Though a friend of mine once discovered that it's a bad idea to force remove glibc (on a non BusyBox distro, of course).

God, yes. If all you know is reboot & reinstall (bad habits probably brought from the windows world where you generally can't do anything else), you'll never get past the basics.
Reinstalling broken Linux systems has been my go-to technique for 20-odd years. It shouldn't take any time at all to get them back up and running, because all the installation and deployment is automated.

I've never tried Windows but I've heard it's a faff to do this. Good to hear it's catching up, though!

> My golden rule of sys admin is that anything on a Linux based OS can be fixed. Preferably without a reboot.

Is it worth your time, though?