how to check software is installed linux code example
Example 1: list of software installed linux
dpkg-query -W -f='${Installed-Size;8} ${Package}\n' | sort -n
Example 2: see all apps linux
sudo dpkg --get-selections
dpkg-query -W -f='${Installed-Size;8} ${Package}\n' | sort -n
sudo dpkg --get-selections