Skip to content

HowtoCentOS

List versions of a package.

# yum list <package> --show-duplicates

Upgrade from 8 to Stream.

# dnf install centos-release-stream && dnf update

Exclude path when unpacking package. Useful for unprivileged containers.

# dnf reinstall --downloadonly filesystem
# find /var/cache -iname "*filesy*"
# rpm -ivh --excludepath=/proc --excludepath=/sys /var/cache/dnf/baseos-504ddb1bf3482a98/packages/filesystem-3.8-3.el8.x86_64.rpm

Last update: July 21, 2022
Created: December 9, 2020