To get a list of installed packages on an Ubuntu or Debian Linux system, you can use the dpkg
utility.
To list all installed packages, run the following command:
dpkg --listSource:www.lautturi.com
This will display a list of all installed packages, along with their names and versions.
To list only the names of the installed packages, run the following command:
dpkg --list | awk '{ print $2 }'
This will display a list of the names of all installed packages, one per line.
To list only the names of the installed packages that belong to a specific group of packages, you can use the grep
utility. For example, to list all installed packages that belong to the base-files
group, run the following command:
dpkg --list | grep '^ii' | grep base-files | awk '{ print $2 }'
This will display a list of the names of all installed packages that belong to the base-files
group, one per line.
That's it! You now have a list of installed packages on your Ubuntu or Debian Linux system.