https://github.com/sgerrand/alpine-pkg-glibc
A glibc compatibility layer package for Alpine Linux
https://github.com/sgerrand/alpine-pkg-glibc
alpine-glibc alpine-linux glibc
Last synced: 5 days ago
JSON representation
A glibc compatibility layer package for Alpine Linux
- Host: GitHub
- URL: https://github.com/sgerrand/alpine-pkg-glibc
- Owner: sgerrand
- Created: 2015-04-02T22:02:17.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T14:56:17.000Z (11 months ago)
- Last Synced: 2025-04-11T18:25:04.272Z (about 1 month ago)
- Topics: alpine-glibc, alpine-linux, glibc
- Language: Shell
- Size: 128 KB
- Stars: 2,105
- Watchers: 57
- Forks: 286
- Open Issues: 51
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# alpine-pkg-glibc
[](https://circleci.com/gh/sgerrand/alpine-pkg-glibc/tree/main) 
This is the [GNU C Library](https://gnu.org/software/libc/) 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 https://github.com/sgerrand/docker-glibc-builder.
## Releases
See the [releases page](https://github.com/sgerrand/alpine-pkg-glibc/releases) for the latest download links. If you are using tools like `localedef` you will need the `glibc-bin` and `glibc-i18n` packages in addition to the `glibc` package.
## Installing
The current installation method for these packages is to pull them in using `wget` or `curl` and install the local file with `apk`:
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk
apk add glibc-2.35-r1.apk### Please Note
:warning: The URL of the public signing key has changed! :warning:
Any previous reference to `https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub` should be updated with immediate effect to `https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub`.
## Locales
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:
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-bin-2.35-r1.apk
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-i18n-2.35-r1.apk
apk add glibc-bin-2.35-r1.apk glibc-i18n-2.35-r1.apk
/usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8