thiagowfx's avatar

Β¬ just serendipity πŸ€ (not just serendipity)

Alpine Linux: package is gone?!

β€’ 168 words β€’ 1 min β€’ updated

⚠️ This post is over one year old. It may no longer be up to date or relevant. Opinions may have changed.

Upon upgrading one of our Dockerfiles from Alpine Linux 3.21 to 3.22, we noticed that the ruby-json package no longer exists:

shell
% docker build -t myproject -f Dockerfile .
[...]
 > [ 2/10] RUN apk add --update --no-cache ruby-json=~"3.4" [...]
[...]
2.371 ERROR: unable to select packages:
2.371   ruby-json (no such package):
2.371     required by: world[ruby-json~3.4]

Why??

First, look into Alpine Linux Packages: query. Ensure to set branch to v3.22 and architecture to All. And it’s indeed not there anymore:

No matching packages found…

Next, do a bit of digging in the aports repository on the Alpine Linux GitLab: query. Search for ruby-json in “All” Merge requests.

That leads to !80599:

community/ruby-json: remove

ruby-json is already bundled with main/ruby. The community/ruby-json could never be installed due to conflicts.

Aha, then there’s nothing to do here. Installing the base ruby package should be enough from now on.

#16938:

I think it’s safe to say community/ruby-json does literally nothing, has never been installed, and does not work.

Oh well.