dnf
is now the preferred way to install software on
AL2023.
E.g. dnf install <package-name>
ls -l $(which yum)
shows that yum is symlinked to the
dnf-3
executable.
All the commands I use below still work.
sudo yum repolist all
/etc/yum.repos.d/
/etc/dnf/dnf.conf
yum repolist enabled
dnf config-manager --set-enabled <repo-name>
dnf config-manager --set-disabled <repo-name>
yum list installed
or
yum list installed "mysql*"
yum remove <package-name>
rpm -ql <package-name>
yum list available "maria*" --enablerepo=<some-repo>
or
yum list | grep -i maria
/etc/pki/rpm-gpg
It seems epel
is no longer compatible with Amazon Linux
2023.
Posted on twitter here: https://twitter.com/louzell_/status/1668062601308413954
If someone figures it out please let me know.
It used to be possible to modify /etc/yum.repos.d/epel.repo
and set enabled
to 1, but that file no longer exists.