Skip to the content.

yum cheat sheet

# Check CentOS version
lsb_release -a
rpm --query centos-release

# Upgrade a package
yum upgrade <package_name>