Raspbian & pi-gen
Posted: Mon Sep 17, 2018 12:51 am
I have gotten the system to create an image modified to what I need, however I have been unable to figure out how / where to clean the apt/cache folders and purge, prior to creating the IMG zip file. I'd like the equivalent of :
sudo apt clean
sudo apt autoclean
sudo apt autoremove -y
Then have the system create the IMG.zip file in deploy.
Google gives me a few sites that have enabled me to copy script files, set crontab, enable ssh, enable wifi, etc., but not clean up all the post install files, which are quite substantial.
Thoughts, or search pointers?
sudo apt clean
sudo apt autoclean
sudo apt autoremove -y
Then have the system create the IMG.zip file in deploy.
Google gives me a few sites that have enabled me to copy script files, set crontab, enable ssh, enable wifi, etc., but not clean up all the post install files, which are quite substantial.
Thoughts, or search pointers?