CentOS 6.x 如何升級 glibc 2.17
ldd --versionrpm -qa | grep glibc#查看glibc的版本strings /lib64/libc.so.6 |grep GLIBC_sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
update glibc to 2.17 for CentOS 6
# update glibc to 2.17 for CentOS 6wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm &wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm &wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm &wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm &wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm &wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm &wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm &sudo rpm -e --nodeps --justdb glibc-2.*.i686 --allmatchessudo rpm -Uvh *-2.17-55.el6.x86_64.rpm#或者:sudo rpm -Uvh *-2.17-55.el6.x86_64.rpm --force --nodeps
update glibc to 2.15 for CentOS 6
# update glibc to 2.15 for CentOS 6wget -c http://ftp.redsleeve.org/pub/steam/glibc-utils-2.15-60.el6.x86_64.rpm &wget -c http://ftp.redsleeve.org/pub/steam/glibc-headers-2.15-60.el6.x86_64.rpm &wget -c http://ftp.redsleeve.org/pub/steam/glibc-static-2.15-60.el6.x86_64.rpm &wget -c http://ftp.redsleeve.org/pub/steam/glibc-common-2.15-60.el6.x86_64.rpm &wget -c http://ftp.redsleeve.org/pub/steam/glibc-2.15-60.el6.x86_64.rpm &wget -c http://ftp.redsleeve.org/pub/steam/glibc-common-2.15-60.el6.i686.rpm &wget -c http://ftp.redsleeve.org/pub/steam/glibc-devel-2.15-60.el6.x86_64.rpm &wget -c http://ftp.redsleeve.org/pub/steam/nscd-2.15-60.el6.x86_64.rpm &sudo rpm -e --nodeps --justdb glibc-2.*.i686 --allmatchesrpm -Uvh *-2.15-60.el6.x86_64.rpmrpm -Uvh glibc-2.15-60.el6.i686.rpmldconfig# -e, --erase erase (uninstall) package# -U, --upgrade=<packagefile>+ upgrade package(s)# -v, --verbose provide more detailed output# -h, --hash print hash marks as package installs (good with -v)# --nodeps 忽略軟體包的依賴關係強行安裝
源碼安裝
wget https://mirrors.tuna.tsinghua.edu.cn/gnu/glibc/glibc-2.17.tar.gztar -zxvf glibc-2.17.tar.gzcd glibc-2.17mkdir build && cd $_sudo ../configure --prefix=/usr/glibc-2.17 --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin make && make install
分享Centos6.5升級glibc過程
CentOS 6.x 如何升級 glibc 2.17
Linux rpm 命令參數使用詳解[介紹和應用]
rpm 安裝時error: Failed dependencies