Wednesday, March 19, 2014

Install bash 4.2.45 in 3 minutes or less

So here we go.

I set PS1 to '\t \$ ' in order to document the time required to do this. Everything was typed by hand and done from memory except a short alt-tab to nvALT to ensure proper numbering for curl'ing the patches.

  • md src
  • curl -OL http://ftpmirror.gnu.org/bash/bash-4.2.tar.gz
  • tar xzf bash-4.2.tar.gz
  • cd bash-4.2
  • md patches
  • curl -L "http://mirror.anl.gov/pub/gnu/bash/bash-4.2-patches/bash42-0[01-45]" -o "bash42-0#1"

step 1 - 6
  • cd ..
  • for patchfile in ./patches/*; do patch -p0 <"$patchfile"; done

step 7-8
  • ./configure
  • make -j4
  • sudo make install

Done!
To wrap up simply edit /etc/shells like in my previous post and chsh -s on your user.




No comments:

Post a Comment