Amazon Linux 2 Cheatsheet

MD
R
Markdown

The amazon/aws-cli Docker image is based on Amazon Linux, which does not use apt-get for package management. Instead, Amazon Linux uses yum or dnf for package management.

The $releasever variable in the repository URL may not be resolving correctly

yum --releasever=2 update -y && yum --releasever=2 install -y make

Edit Yum Respository File

sed -i 's/$releasever/2/g' /etc/yum.repos.d/*.repo

Add YUM Utilities

yum install yum-utils yum install wget wget https://github.com/roboll/helmfile/releases/download/v0.140.0/helmfile_linux_amd64 chmod +x helmfile_linux_amd64 mv helmfile_linux_amd64 /usr/local/bin/helmfile

Clean yum Cache

yum clean all yum update -y yum install -y make

Created on 4/7/2024