debian list apt packages like 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'