centos8

Add libraries for static compilation CentOS 8


How do I install static versions of glibc on CentOS 8?

I am trying to compile a version of rsync using static linked libraries.


Solution

  • How do I install static versions of glibc on CentOS 8

    # dnf search glibc
    # dnf provides */libc.a
             // both commands will (also) reply: glibc-static
    # dnf install glibc-static
    

    Note : glibc-static is in this repo: /etc/yum.repos.d/CentOS-PowerTools.repo

    # dnf config-manager --enable PowerTools
    

    Package list, "PowerTools" http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/

    Example mirror, "PowerTools" http://mirror.centos.org/centos/8/PowerTools/x86_64/os/