RedHat 6.5下安装bash补丁包方法

gcc组件下载地址:http://pan.baidu.com/s/10ZdD0
bash补丁包下载地址:http://ftp.gnu.org/gnu/bash/bash-4.4.18.tar.gz

1、复制到linux系统/root目录下并解压gcc-4.4.7-4.el6.x86_64.rar,然后分别进行安装
[root@localhost home]#rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
[root@localhost home]#rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
[root@localhost home]#rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm
[root@localhost home]#rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
[root@localhost home]#rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm
2、上传bash-4.4.18.tar.gz到服务器并解压缩;
进入压缩后的目录
[root@localhost home]# cd bash-4.4.18
确保安装了gcc组件后,进行编译安装即可
[root@localhost bash-4.4.18]# ./configure && make && make install
安装完毕需要做软链接,否则远程登陆查看系统bash版本时仍旧是老版本
[root@localhost bash-4.4.18]# mv /bin/bash /bin/bash.bak //将原文件改名备份
[root@localhost bash-4.4.18]# ln -s /usr/local/bin/bash /bin/bash //做软链接
[root@localhost bash-4.4.18]# bash -version //查看bash版本

猜你喜欢

转载自blog.51cto.com/3838490/2330895