Tag Archives: CentOS 7

Install newest gcc on CentOS 7

Enable repository and install newest gcc with following commands. yum install centos-release-scl yum install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils Activate it and check version. scl enable devtoolset-9 bash gcc –version For make activation permanent add “scl enable devtoolset-9 bash” to end of the the /etc/profile file. Ok.That’s it!  

Posted in Linux | Tagged , , | Leave a comment

How to disable IPv6 on CentOS 7

We will be disabling IPv6 in kernel module. First, check IPv6 is enabled or not ifconfig -a | grep inet6 if you see inet6 in the output, you have IPv6. Let’s disable it. Edit /etc/default/grub file and add ” ipv6.disable=1″ to GRUB_CMDLINE_LINUX GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=”$(sed ‘s, release .*$,,g’ /etc/system-release)” GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT=”console” GRUB_CMDLINE_LINUX=”crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb Read More

Posted in Linux | Tagged , , , | Leave a comment