7

We noticed that wget on Amazon Linux 2 is v1.14, but on the older version of Amazon Linux, it was v1.18.

Any idea why this would be? I'm fairly certain we installed from yum in both cases.

Is there a way to get yum to install a more modern wget under Amazon Linux 2?

"repoquery -i wget" on Amazon Linux 1:

Name        : wget
Version     : 1.18
Release     : 5.30.amzn1
Architecture: x86_64
Size        : 2497696
Packager    : Amazon.com, Inc. <http://aws.amazon.com>
Group       : Applications/Internet
URL         : http://www.gnu.org/software/wget/
Repository  : amzn-updates
Summary     : A utility for retrieving files using the HTTP or FTP protocols
Source      : wget-1.18-5.30.amzn1.src.rpm

and on Amazon Linux 2:

Name        : wget
Version     : 1.14
Release     : 18.amzn2
Architecture: x86_64
Size        : 2050885
Packager    : Amazon Linux
Group       : Applications/Internet
URL         : http://www.gnu.org/software/wget/
Repository  : amzn2-core
Summary     : A utility for retrieving files using the HTTP or FTP protocols
Source      : wget-1.14-18.amzn2.src.rpm

(Note: previously posted at https://stackoverflow.com/questions/56060472/why-does-amazon-linux-2-have-older-version-of-wget-vs-amazon-linux-1 but did not get any responses there)

boozedog
  • 73
  • 3
  • 2
    Now that is strange. I think it's unlikely that anyone outside Amazon is going to know the answer though. – Michael Hampton May 12 '19 at 17:26
  • 3
    Because Amazon Linux packages are poorly maintained and usually out of date. That's one of the main reasons I don't recommend Amazon Linux, you have to compile a lot of your own software. The other is lack of documentation and community support., – Tim May 12 '19 at 19:21
  • I think, they have some dependancy on this wget version or something else is breaking after moving to upper version, from outside aws you can't get that info. – asktyagi May 13 '19 at 03:29
  • Thanks @Tim ... what distro(s) do you prefer to use on AWS? – boozedog May 13 '19 at 11:18

1 Answers1

4

Amazon Linux does not update packages regularly. I've found I need to download source and build software a lot more on Amazon Linux / AL2 than Ubuntu, Centos, or Red Hat. The Amazon Linux package repository packages are usually out of date. I don't even bother with them for some software any more - Nginx, Apache, Fail2ban. I do use the Amazon repository for MySQL, PHP 5.6, and things that are very mature and not open to the internet directly.

When I'm installing servers on AWS for myself or smaller businesses I prefer to use Ubuntu, because the package repositories are kept up to date well and there's a massive amount of community support.

When I'm doing enterprise work you use what they specify, but it tends to be Red Hat, Centos or Windows Server. Sometimes an enterprise will use Amazon Linux, which tends to be ok since they have the staff and budget to set it up properly, install or build software, and maintain it, and a lot of that is done by tools like Ansible.

Tim
  • 30,383
  • 6
  • 47
  • 77