升级bash,但bash --version没有变化,为什么

时间:2014-09-29 06:55:45

标签: linux bash shellshock-bash-bug

对于Shellshock问题 我在redhat 4,5上升级bash使用以下步骤

  1. 检查bash版本

    root@aaaA:/usr/src/redhat/RPMS/x86_64>bash --version GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc.

  2. 升级bash

    rpmbuild --rebuild -bb bash-3.2-33.el5_11.4.src.rpm
    cd /usr/src/redhat/RPMS/x86_64/
    root@aaa:/usr/src/redhat/RPMS/x86_64>rpm -Uvh bash-* Preparing... ########################################### [100%] 1:bash ########################################### [ 50%] 2:bash-debuginfo ########################################### [100%]

  3. 再次检查bash版本

  4. root@aaa:/usr/src/redhat/RPMS/x86_64>bash --version GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc.

    1. 重新启动并再次检查bash版本
    2. root@aaa:/usr/src/redhat/RPMS/x86_64>bash --version GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc.

      1. check rpm
      2. root@aaa:/usr/src/redhat/RPMS/x86_64>rpm -qa | grep bash bash-3.2-33.4 bash-debuginfo-3.2-33.4

        为什么bash版本没有改变为bash-3.2-33.4

0 个答案:

没有答案