Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alpine Add Package from Edge repository

If I'm using Alpine 3.8, how can I add a specific package from the Alpine Edge repository? Is this even supported? There is no equivalent of backports, from what I can see.

I want to add the new version of this: https://pkgs.alpinelinux.org/package/edge/community/armhf/librdkafka

And not the older version in the 3.8 repo: https://pkgs.alpinelinux.org/package/v3.8/community/s390x/librdkafka

like image 427
clay Avatar asked Oct 19 '18 20:10

clay


People also ask

How do I add packages to Alpine?

Add a PackageUse add to install packages from a repository. Any necessary dependencies are also installed. If you have multiple repositories, the add command installs the newest package. If you only have the main repository enabled in your configuration, apk will not include packages from the other repositories.

What is Alpine edge repository?

"edge" is the name given to the current development tree of Alpine Linux. It consists of a APK repository called "edge" and contains the latest build of all available Alpine Linux packages. Those packages are updated on a regular basis. Warning: "edge" is under constant development so be careful using it in production.

Where does Alpine install packages?

You can install packages from a local disk (such as CDROM or a USB stick) or the internet archive location using apk command, the Alpine package manager for binary packages, instead of compiling them from the source. The list of repositories is stored in /etc/apk/repositories configuration file.

Does Alpine have a package manager?

apk is the Alpine Package Keeper - the distribution's package manager. It is used to manage the packages (software and otherwise) of the system. It is the primary method for installing additional software, and is available in the apk-tools package.


1 Answers

You could specify the exact repo to apk, using the --repository parameter.
In your case:

apk add librdkafka --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community 
like image 106
valiano Avatar answered Nov 08 '22 10:11

valiano