Is there a way to compare which programs are currently installed on my linux box compared to the stock versions? I need to recreate my current setup for another computer, and have installed many little command line programs that I can't remember everything that all of my own python scripts depend on - for example xdotool and xprintidle. If I try my python scripts on a computer without them, they just fail since the programs don't exist. Is there a way to get a list of all of these programs other than simply running each of my python programs until they fail?
The best command is
It produces a lot of output, so careful. It shows the package version and the architecture, neither of which are shown by dpkg --get-selections. Also, it allows searches:
all packages related to X server. But above all, it provides a brief description of each installed package,
which dpkg --get-selections does not provide: