I'm running nginx and Django/python on Ubuntu 20.04 and would like to remove all unnecessary packages to reduce image size and attack surface and patch frequency.
I assume I can remove apache?
Maybe python2.7?
I saw a thread that it's not good to remove perl.
Is it ok to remove sendmail if only using postfix?
Do you know any commands to list all packages by size, and determine if required?
Thank you
I assume I can remove apache?
Maybe python2.7?
I saw a thread that it's not good to remove perl.
Is it ok to remove sendmail if only using postfix?
Do you know any commands to list all packages by size, and determine if required?
Thank you