Skip to content

Instantly share code, notes, and snippets.

@metaskills
Created June 27, 2022 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metaskills/14bf3ddb65f7cc1e6156ee1609e64cb3 to your computer and use it in GitHub Desktop.
Save metaskills/14bf3ddb65f7cc1e6156ee1609e64cb3 to your computer and use it in GitHub Desktop.

Learning more about Lambda Amazon Linux images:

$ cat /etc/os-release | grep LIKE
ID_LIKE="centos rhel fedora"
$ rpm -E %{rhel}
7
$ cat /proc/version
Linux version 5.4.0-1074-azure (buildd@lcy02-amd64-065) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #77~18.04.1-Ubuntu SMP Wed Mar 30 15:36:02 UTC 2022

More about the repo lists.

$ yum repolist all
$ yum repolist --enablerepo "amzn2-core-source"
$ cat /etc/yum.repos.d/amzn2-core.repo
$ yum install yum-utils
$ yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
( note there is an 8 and 9 but have warning)
$ yum --disablerepo="*" --enablerepo="epel" list available
$ yum --disablerepo="*" --enablerepo="epel" list available | grep glibc
$ yum --disablerepo="amzn2-core" list available | grep glibc
yum install -y yum-utils
yum-config-manager --add-repo "https://rpmfind.net/linux/centos/8-stream/BaseOS/x86_64/os/"
yum repolist check && yum makecache
yum remove glibc || true
yum update glibc -y --skip-broken
yum --disablerepo="amzn2-core" install glibc --skip-broken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment