dnf list installed <name>
or
dnf info <name>
dnf list available <name>
Get a list of updates with:
yum history list
Roll one back with:
yum history undo <ID>
Or rollback to a specific version with:
yum history rollback <ID>
When I see the message:
A newer release of "Amazon Linux" is available.
Run "/usr/bin/dnf check-release-update" for full release...
Run this to update:
sudo /usr/bin/dnf upgrade --releasever=2023.2.20231026
See current version of Amazon Linux:
rpm -q system-release
Update to the latest:
/usr/bin/dnf check-release-update --latest-only --version-only 2>&1 | xargs -I {} sudo dnf upgrade -y --releasever="{}"
Also see ~/notes/aws.md
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.
There is no package that I could find.
See notes/ffmpeg.html for installing from source