List installed packages in Ubuntu or Debian

In some situations we need to know which packages we have installed in a Debian or Ubuntu system. In that case, we can use the tool dpkg, which will give us the information we need. dpkg Next command will give us the current packages installed with different states: dpkg --get-selections The states we can have are: install: The package is selected for installation. hold: A package marked to be on hold is not handled by dpkg, unless forced to do that with option –force-hold....

July 30, 2018 · 2 min · Yvoictra