Skip to content
Ivan Max edited this page Sep 1, 2023 · 6 revisions

The glibc-packages repository stores the sources for compiling a package and also compiles those packages based on Glibc for Termux.

Steps to install glibc packages

You can install glibc packages from the gpkg repo or from the gpkg-dev repo. Use only one source as using both sources may not properly install the glibc package.

Installing glibc packages from the gpkg-dev repo

When installing a package from the dpkg-dev repo, it is not necessary to use pacman as the main package manager in Termux, as the packages in the gpkg-dev repo do not have dependencies on other packages. But also because of this, in order to install packages, you will need to install their dependencies yourself. Therefore, we recommend installing the gpkg-dev package group, this will install all packages from the gpkg-dev repo.

pacman -S gpkg-dev

Installing glibc packages from the gpkg repo

When installing glibc packages from the gpkg repo, it is recommended here to use pacman as the main package manager in Termux, since these packages have dependencies on other packages and dependency errors will occur when installing them (how to change the package manager is written here). You can install any package from the gpkg repo, but for convenience we recommend installing glibc-runner which will make it easier to use Glibc.

pacman -S glibc-runner