To list all installed packages on a system running the RPM package manager, you can use the following command:
rpm -qa
This command will list all of the RPM packages that are currently installed on the system, along with their versions and other relevant information.
If you want to see more detailed information about a specific package, you can use the following command:
rpm -qi <package name>
This will display detailed information about the package, such as its version, release, size, dependencies, and other details.
You can also use the yum
or dnf
command to list installed packages. These are package management utilities that are built on top of RPM and are commonly used on Red Hat-based systems. To list all installed packages using yum
, you can use the following command:
yum list installed
To list installed packages using dnf
, you can use the following command:
dnf list installed
Both of these commands will list all installed packages, along with their versions and other relevant information.