I wanted a way of when i backup my ubuntu desktop is to produce a list of apps, snaps and PPA have been installed since the system has been oringal installed using the command line.
This script create a file, check the following commands have been run by checking the bash history and write to the file
- apt install
- snap install
- apt-get install
- add-apt-repository ppa
Every time the script is rerun, it compares what is in the file and what is return from the bash history any new command is append to the file