see all apps linux

C++
Use this command on ubuntu:
> sudo dpkg --listfiles [appname]sudo dpkg --get-selections
Source

Also in C++: