List installed packages and query package information with Yum

In this short tutorial, we will learn how to retrieve package information with Yum.

This includes using the yum caching feature to speed up our searches, list available packages and list installed packages, query package repositories and get information about the packages.

This tutorial applies to Linux distributions that make use of the Yum package manager, that includes CentOS and RedHat, but also older Fedora distributions.