see what programs installed apt code example
Example: list apt installed programs
# Use aptitude to get packages which were expressly installed (not just as dependecies)
aptitude search '~i!~M'
# Use aptitude to get packages which were expressly installed (not just as dependecies)
aptitude search '~i!~M'