Discussions

Amazon Linux 2: rpm vs yum: installed package list differs
What does “yum info gpg-pubkey” report? More on reddit.com
🌐 r/aws
4
1
March 16, 2018
Amazon Linux 2: has anyone made a list of good add-on packages?

What’s the purpose of the machine? Gaming rig? Dev box? Web server? Bastion host? The answer to that will dictate what you install on the machine. What’s a good add on package for me (the entirety of emacs) may not be for you.

Just install the stuff you need, on an as you need basis. Then script it so you can make it repeatable! Use ansible or salt or plain ol bash scripts.

But since you insist: I generally install vim, git, tmux, wget, gcc, ntp, docker, zsh, make, mlocate, php, python, ruby, go, virtualenv, pip, strace, dtrace.

More on reddit.com
🌐 r/aws
3
0
March 13, 2018
Amazon Linux 2
Kernel version for Amzn Linux 2 is 4.14. That is significantly newer than the CentOS kernel 3.10. The packages come from amazon's own repos so many will be different versions than what is available on CentOS. For example the FAQ on amazon linux 2 lists glibc as version 2.26 while CentOS7 is on 2.17. General use things like systemctl start/stop and yum install work the same. I wouldn't expect/count on binary compatibility between programs compiled on CentOS to run on amazon linux 2 though. It is really its own unique distribution. More on reddit.com
🌐 r/aws
5
5
May 23, 2019
Run Packages Installation Commands on Amazon Linux 2 using EB Extensions - Stack Overflow
I'm running ASP.NET Core 3.1 Application on Elastic Beanstalk with Amazon Linux 2 EC2 instances. I need my app to be able to generate QR codes and for this I'm using QRCoder library. It worked on my More on stackoverflow.com
🌐 stackoverflow.com
People also ask

Enhanced developer productivity

Amazon Linux 2 is offered as a virtual machine and container image for on-premises development and testing. Developers can speed up their application development by building, testing, and integrating on the same Linux distribution that is used in their production environment.

🌐
aws.amazon.com
aws.amazon.com › products › compute › amazon linux 2
Amazon Linux 2
Optimized performance

Amazon Linux 2 includes support for the latest Amazon Elastic Compute Cloud (Amazon EC2) instance capabilities and is tuned for enhanced performance. It includes packages that help ease integration with other AWS services.

🌐
aws.amazon.com
aws.amazon.com › products › compute › amazon linux 2
Amazon Linux 2
Peace of mind with long-term support

Amazon Linux 2 offers long-term support. Developers, IT administrators, and ISVs get the predictability and stability of a long-term support (LTS) release, but without compromising access to the latest versions of popular software packages.

🌐
aws.amazon.com
aws.amazon.com › products › compute › amazon linux 2
Amazon Linux 2
🌐
Amazon Web Services
aws.amazon.com › products › compute › amazon linux 2
Amazon Linux 2
1 week ago - Amazon Linux 2 includes support for the latest Amazon Elastic Compute Cloud (Amazon EC2) instance capabilities and is tuned for enhanced performance. It includes packages that help ease integration with other AWS services.
🌐
Repology
repology.org › repository › amazon_2
Amazon Linux 2 repository information - Repology
See documentation for a best way to make package metadata available for Repology. Amazon Linux 2 · 7582 · 719 · 4842 · 24 · 2616 · 483 · 2061 · 42 · Package filtering in Repology is very flexible, so you can combine all kinds of conditions. But here are some preset queries to start with: All packages present in this repository.
🌐
GitLab
about.gitlab.com › blog › news › amazon linux 2 support and distro-specific packages for gitlab
Amazon Linux 2 support and distro-specific packages for GitLab
May 2, 2022 - According to the AWS FAQ page for ... tuned for performance on Amazon EC2. A set of core packages including systemd, GCC 7.3, Glibc 2.26, Binutils 2.29.1 that receive Long Term Support (LTS) from AWS....
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › al2 source packages
AL2 Source Packages - Amazon Linux 2
You can view the source of packages you have installed on your instance for reference purposes by using tools provided in Amazon Linux. Source packages are available for all of the packages included in Amazon Linux and the online package repository. Determine the package name for the source ...
Find elsewhere
🌐
Reddit
reddit.com › r/aws › amazon linux 2: rpm vs yum: installed package list differs
r/aws on Reddit: Amazon Linux 2: rpm vs yum: installed package list differs
March 16, 2018 -

the commands i did are rpm -list and yum -qa -qf "%{name}.%{arch}\n" with some post processing (mostly in awk, but it would easy to do in just about any language) to merge split lines that yum does. and extract the installed packages vs. the available packages into separate files. rpm reports an extra package that yum does not report. that package is gpg-pubkey.(none). i am wondering why the difference. maybe yum won't list installed packages that are not in the repository and this package is not?

i was building (what was to be) a quick script to gather package info for study so i could make decisions on what additional packages i would include in my own base AMIs for a spectrum of projects (some new, some to be upgraded). here is a copy what that script ended up like.

🌐
GitHub
github.com › topics › amazon-linux-2
amazon-linux-2 · GitHub Topics · GitHub
aws package rpm zabbix zabbix-agent amazon-linux zabbix-proxy amazonlinux amazon-linux-2 amazonlinux2
🌐
Mondoo
mondoo.com › home › blog › amazon linux 2023: a comprehensive overview of new features and updates
Amazon Linux 2023: A Comprehensive Overview of New Features and Updates
March 22, 2023 - Essentially, Amazon maintained a single, canonical repository of approved packages for Amazon Linux 2 and updated the packages as needed.
Top answer
1 of 2
2

I tried to replicate the issue on EB with Amazon Linux 2, but your commands worked perfectly fine. I used Python platform, not .NET, but since both are based on AL2 I don't see why would they be different in this aspect.

To troubleshoot, you can ssh into your EB instance, or download EB logs from console and inspect /var/log/cfn-init-cmd.log. It should have details regarding install_gdi.config execution.

For comparision, I attach my output:

2020-08-30 05:34:52,631 P3617 [INFO] Command 01_install_gdi
2020-08-30 05:35:08,423 P3617 [INFO] -----------------------Command Output-----------------------
2020-08-30 05:35:08,423 P3617 [INFO]    Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
2020-08-30 05:35:08,423 P3617 [INFO]    http://csc.mcs.sdsmt.edu/epel/7/x86_64/repodata/0e811d5e2eb547161695f97c2fb8c2eaa0ccfe0ba7125321404db90dab5af5b3-updateinfo.xml.bz2: [Errno 12] Timeout on http://csc.mcs.sdsmt.edu/epel/7/x86_64/repodata/0e811d5e2eb547161695f97c2fb8c2eaa0ccfe0ba7125321404db90dab5af5b3-updateinfo.xml.bz2: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 5 seconds')
2020-08-30 05:35:08,423 P3617 [INFO]    Trying other mirror.
2020-08-30 05:35:08,423 P3617 [INFO]    200 packages excluded due to repository priority protections
2020-08-30 05:35:08,423 P3617 [INFO]    Resolving Dependencies
2020-08-30 05:35:08,424 P3617 [INFO]    --> Running transaction check
2020-08-30 05:35:08,424 P3617 [INFO]    ---> Package libgdiplus.x86_64 0:2.10-10.el7 will be installed
2020-08-30 05:35:08,424 P3617 [INFO]    --> Processing Dependency: libXrender.so.1()(64bit) for package: libgdiplus-2.10-10.el7.x86_64
2020-08-30 05:35:08,424 P3617 [INFO]    --> Processing Dependency: libcairo.so.2()(64bit) for package: libgdiplus-2.10-10.el7.x86_64
2020-08-30 05:35:08,424 P3617 [INFO]    --> Processing Dependency: libexif.so.12()(64bit) for package: libgdiplus-2.10-10.el7.x86_64
2020-08-30 05:35:08,424 P3617 [INFO]    --> Processing Dependency: libgif.so.4()(64bit) for package: libgdiplus-2.10-10.el7.x86_64
#
# more logs
#
2020-08-30 05:35:08,433 P3617 [INFO]
2020-08-30 05:35:08,433 P3617 [INFO]    Installed:
2020-08-30 05:35:08,434 P3617 [INFO]      libgdiplus.x86_64 0:2.10-10.el7
2020-08-30 05:35:08,434 P3617 [INFO]
#
# more logs
#
2020-08-30 05:35:08,435 P3617 [INFO]    Complete!
2020-08-30 05:35:08,435 P3617 [INFO] ------------------------------------------------------------
2020-08-30 05:35:08,435 P3617 [INFO] Completed successfully.

2 of 2
2

The problem was with my buildspec.yml file.

It used to look like this and it didn't include .ebxtensions folder into the publish artifact folder:

version: 0.2

phases:
  build:
    commands:
      - dotnet publish WebApi.csproj -c Release
artifacts:
  files:
    - bin/Release/netcoreapp3.1/publish/*
  discard-paths: yes

I changed it to look like this and it works now:

version: 0.2

phases:
  build:
    commands:
      - dotnet publish WebApi.csproj -c Release
artifacts:
  files:
    - '**/*'
  base-directory: bin/Release/netcoreapp3.1/publish
🌐
AWS
docs.aws.amazon.com › amazon linux 2 › release notes › amazon linux 2 release notes
Amazon Linux 2 release notes - Amazon Linux 2
Find the release notes for Amazon Linux 2, which provide information about new features, updates, and fixes.
🌐
Amazon
alas.aws.amazon.com › alas2.html
Amazon Linux 2 Security Advisories
Below are bulletins for security or privacy events pertaining to Amazon Linux 2.
🌐
AWS re:Post
repost.aws › knowledge-center › ec2-install-extras-library-software
Install software from the Extras Library on an AL2 EC2 instance | AWS re:Post
June 18, 2025 - [ec2-user@ip-172-31-47-190 ~]$ sudo yum repolist all repo id repo name status amazonlinux Amazon Linux 2023 repository enabled amazonlinux-debuginfo Amazon Linux 2023 repository - Debug disabled amazonlinux-source Amazon Linux 2023 repository - Source packages disabled kernel-livepatch Amazon Linux 2023 Kernel Livepatch repository enabled kernel-livepatch-source Amazon Linux 2023 Kernel Livepatch repository - Source packages disabled [ec2-user@ip-172-31-47-190 ~]$
🌐
AWS Marketplace
aws.amazon.com › marketplace › pp › prodview-zc4x2k7vt6rpu
AWS Marketplace: Amazon Linux 2 AMI (HVM), SSD Volume Type (64-bit x86) Operating System
It is designed to provide a stable, secure, and high performance execution environment for applications running on Amazon EC2. This Amazon Linux 2 OS also includes packages that enable easy integration with AWS, including launch configuration tools and many popular AWS libraries and tools.
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › comparing al2 and al2023
Comparing AL2 and AL2023 - Amazon Linux 2023
2 weeks ago - Learn about key differences between AL2 and AL2023. Find out about lifespan and support, consistency with deterministic upgrades through versioned repositories, and new core packages.