If I run
docker run -it --rm --entrypoint=/bin/bash fedora:latest
dnf install moreutils
it works.
If I run:
19:57:34:~/ $ docker run -it --rm --entrypoint=/bin/bash public.ecr.aws/lambda/provided:al2023
bash-5.2# dnf install moreutils
dnf install moreutils
Downloading metadata...
error: No package matches 'moreutils'
bash-5.2#
it doesn't. Why?
These instructions refer to AL2: https://stackoverflow.com/questions/37951437/installing-moreutils-on-ec2-instance and don't work on Al2023 and enabling the suggested repo doesn't seem to do anything useful either:
22:46:20:~/ $ docker run -it --rm --entrypoint=/bin/bash public.ecr.aws/lambda/provided:al2023
bash-5.2# dnf --enablerepo epel install moreutils
dnf --enablerepo epel install moreutils
error: repo epel not found
bash-5.2#