List installed packages on Linux or FreeBSD / OpenBSD system

List installed packages on Linux or FreeBSD / OpenBSD system

To list the installed packages on a Linux system, you can use the dpkg command for Debian-based systems, or the rpm command for Red Hat-based systems.

On a Debian-based system (such as Ubuntu), use the dpkg command with the -l option:

dpkg -l
Source:‮ttual.www‬uri.com

This will list all the installed packages on the system, along with their names, versions, and descriptions.

On a Red Hat-based system (such as CentOS), use the rpm command with the -qa option:

rpm -qa

This will list all the installed packages on the system, along with their names and versions.

To list the installed packages on a FreeBSD or OpenBSD system, you can use the pkg command.

On a FreeBSD system, use the pkg command with the info option:

pkg info

This will list all the installed packages on the system, along with their names, versions, and descriptions.

On an OpenBSD system, use the pkg_info command:

pkg_info

This will list all the installed packages on the system, along with their names and versions.

Created Time:2017-10-30 10:17:49  Author:lautturi