I found this in a forum… Pretty neat. Didn’t use it because in my case I didn’t want all the packages/apps I had before but still… Pretty cool!
dpkg --get-selections > installed-software
And if you wanted to use the list to reinstall this software on a fresh ubuntu setup,
dpkg --set-selections < installed-software
followed by:
dselect