list installed packages linux code example

Example 1: how to find installed packages in ubuntu

apt list --installed

Example 2: linux list application installation

Use this command on ubuntu:
> sudo dpkg --listfiles [appname]

Example 3: how to check installed packages in linux command

dpkg-query --list | grep -i nano
ii  nano    2.9.3-2    amd64    small, friendly text editor inspired by Pico

Example 4: list apt installed programs

# Use aptitude to get packages which were expressly installed (not just as dependecies)
aptitude search '~i!~M'

Example 5: list packages linux windows

apt list --installed | grep program_name