Show all RPM packages installed and what repository they came from on RedHat or Centos
Here’s a quick linux command to show all the packages you have installed (on RPM based systems, like RHEL and Centos) and what repository they came from. NOTE: the “sort” command sorts the packages by name, and the “column” command outputs the list in a neatly formatted tab delimited display in your terminal.
Sample output:
And if you wanted to see all packages that came from external (non-Centos) repositories: