4 years ago
list="" list="$list package1" list="$list package2"
sudo apt_get install $list ===========================================
Keep this in your usual login directory and update it each time you add or remove packages. Then run it after a clean install.
I've done this for years with Fedora Linux, though now it has a good, reliable version upgrade in situ process. But, being a belt and braces type, I still maintain the list on my Fedora boxes (though the command there is 'dnf install', so it was natural to do the same on my RPi.
-- Martin | martin at Gregorie | gregorie dot org