Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save latuminggi/5da516b85dc4b1d944a00dc8dbca8daf to your computer and use it in GitHub Desktop.
Save latuminggi/5da516b85dc4b1d944a00dc8dbca8daf to your computer and use it in GitHub Desktop.
Updating glibc, libstdc++, and gcc on RHEL / CentOS 6
### Updating glibc, libstdc++, and gcc on RHEL / CentOS 6 ###
# https://code.visualstudio.com/docs/remote/linux#_updating-glibc-and-libstdc-on-rhel-centos-6
# https://serverkurma.com/linux/how-to-update-glibc-newer-version-on-centos-6-x/
# https://gist.github.com/harv/f86690fcad94f655906ee9e37c85b174
# https://copr.fedorainfracloud.org/coprs/mosquito/myrepo-el6/
# WARNING !!!
# Do not run this script on anything mission critical without a rollback strategy
# since it does update libraries that other applications depend on.
# Update glibc and static libs
# strings /lib64/libc.so.6 | grep GLIBC
wget https://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 \
https://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 \
https://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 \
https://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 \
https://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 \
https://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 && \
rpm -Uh --force --nodeps \
glibc-2.17-55.el6.x86_64.rpm \
glibc-common-2.17-55.el6.x86_64.rpm \
glibc-devel-2.17-55.el6.x86_64.rpm \
glibc-headers-2.17-55.el6.x86_64.rpm \
glibc-static-2.17-55.el6.x86_64.rpm \
glibc-utils-2.17-55.el6.x86_64.rpm
# Update libstdc++ & gcc
# strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
# gcc --version
wget https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/binutils-2.23.52.0.1-17.fc20/binutils-2.23.52.0.1-17.el6.x86_64.rpm \
https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/cpp-4.8.2-16.3.el6.x86_64.rpm \
https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libgomp-4.8.2-16.3.el6.x86_64.rpm \
https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libstdc++-4.8.2-16.3.el6.x86_64.rpm \
https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libstdc++-devel-4.8.2-16.3.el6.x86_64.rpm \
https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libstdc++-static-4.8.2-16.3.el6.x86_64.rpm \
https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/libgcc-4.8.2-16.3.el6.x86_64.rpm \
https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/gcc-4.8.2-16.3.el6.x86_64.rpm \
https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/gcc-4.8.2-16.3.fc20/gcc-c++-4.8.2-16.3.el6.x86_64.rpm && \
rpm -Uh --force --nodeps \
binutils-2.23.52.0.1-17.el6.x86_64.rpm \
cpp-4.8.2-16.3.el6.x86_64.rpm \
libgomp-4.8.2-16.3.el6.x86_64.rpm \
libstdc++-4.8.2-16.3.el6.x86_64.rpm \
libstdc++-devel-4.8.2-16.3.el6.x86_64.rpm \
libstdc++-static-4.8.2-16.3.el6.x86_64.rpm \
libgcc-4.8.2-16.3.el6.x86_64.rpm \
gcc-4.8.2-16.3.el6.x86_64.rpm \
gcc-c++-4.8.2-16.3.el6.x86_64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment