1

I require Bash 4.2 or higher. Amazon Linux default repositories only provide Bash 4.1. I have done some searches and can not find a yum repository for recent versions of Bash. I don't want to compile from source, because I want to outsource keeping abreast of bug fixes (such as Shellshock).

I am looking for either a yum repo I can install for recent Bash binaries, or another workable way to keep a recent version of Bash on the server.

This is yum output on one of the nodes in question:

[ec2-user@nodeX ~]$ sudo yum install bash
Loaded plugins: priorities, update-motd, upgrade-helper
33 packages excluded due to repository priority protections
Package bash-4.1.2-15.23.amzn1.x86_64 already installed and latest version
Nothing to do

Note this is a crosspost of my previous question on the "Unix and Linux" Stack Exchange site.

9
  • Create your own repo from source? Pay someone to maintain a repo for you? – Daniel Widrick Dec 9 '14 at 20:22
  • 2
    Are you sure that shellshock patches haven't been back ported to the version you have? – Hyppy Dec 9 '14 at 20:23
  • Please don't crosspost. If necessary, flag for migration. – Sven Dec 9 '14 at 20:51
  • @Sven I didn't know there was such a thing as migration, but now, reading up on it, it doesn't look very useful. Firstly, it requires a high reputation user, and second, it erases existing answers, and there's a useful answer (though not an acceptable answer) on the first post. – Travis Well Dec 9 '14 at 21:30
  • @Hyppy actually the current version is patched. Shellshock is an example supporting the reason not to compile from source, which is that there could be future vulnerabilities, and there is no one on the team being paid to keep on top of patches. – Travis Well Dec 9 '14 at 21:34
1

Use the new Amazon Linux 2 at https://aws.amazon.com/amazon-linux-2/ which comes standard with 4.2.

$ bash --version

GNU bash, version 4.2.46(2)-release (x86_64-koji-linux-gnu)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.