How to List Installed Packages in Fedora, RHEL, CentOS
June 24, 2023 —
Gregg Szumowski
Listing installed packages with YUM:
$ sudo yum list installed
To display details about a package:
$ yum info nginx
You can cat all installed packages to a file, copy the file to another machine and duplicate the system:
$ sudo yum list installed > installed-packages.txt
$ sudo yum -y install $(cat installed-packages.txt)
List installed packages with RPM:
$ sudo rpm -qa
List them by installation date:
$ sudo rpm -qa --last
Display information about a package:
$ rpm -qi nginx