Skip to content
A glibc compatibility layer package for Alpine Linux
Branch: master
Clone or download
sgerrand Merge pull request #109 from sgerrand/fix-RTLDLIST-in-ldd
Symlink lib64 version of Linux image file
Latest commit 27f0370 Feb 11, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Alpine Linux 3.9 Feb 11, 2019
.gitignore commit public key Feb 22, 2016
APKBUILD Symlink lib64 version of Linux image file Feb 11, 2019 Update version in docs Feb 11, 2019
glibc-bin.trigger trigger ldconfig to regerenate on lib dir changes Feb 13, 2016 /lib/ link, fixes issues with musl built openjdk Feb 9, 2017


CircleCI x86_64

This is the GNU C library as a Alpine Linux package to run binaries linked against glibc. This package utilizes a custom built glibc binary based on the vanilla glibc source. Built binary artifacts come from


See the releases page for the latest download links. If you are using tools like localdef you will need the glibc-bin and glibc-i18n packages in addition to the glibc package.


The current installation method for these packages is to pull them in using wget or curl and install the local file with apk:

apk --no-cache add ca-certificates wget
wget -q -O /etc/apk/keys/
apk add glibc-2.29-r0.apk

Please Note

⚠️ The URL of the public signing key has changed! ⚠️

Any previous reference to should be updated with immediate effect to


You will need to generate your locale if you would like to use a specific one for your glibc application. You can do this by installing the glibc-i18n package and generating a locale using the localedef binary. An example for en_US.UTF-8 would be:

apk add glibc-bin-2.29-r0.apk glibc-i18n-2.29-r0.apk
/usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
You can’t perform that action at this time.