how to see all the packages ubuntu 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'