Posted By

SalvadorDev on 10/23/17


Tagged

debian


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

SalvadorDev


Reduced Debian


 / Published in: Bash
 

URL: reducedebian.sh

Starting with a fresh debian install, we'll reduce it at minimal by removing recommended and suggested packages, clearing apt, and replacing some heavy packages with perfectly suitable substitutes.

  1. apt update -y && apt install aptitude -y
  2. apt purge $(aptitude search '~i!~M!~prequired!~pimportant!~R~prequired!~R~R~prequired!~R~pimportant!~R~R~pimportant!busybox!systemd!libcryptsetup4!grub!initramfs-tools' | awk '{print $2}') -yf
  3. apt-get purge aptitude
  4. apt-get autoremove
  5. apt-get clean
  6. cat <<EOT >> /etc/apt/apt.conf
  7. APT::Install-Recommends "0";
  8. APT::Install-Suggests "0";
  9. EOT
  10. rm -rf /usr/share/man/??
  11. rm -rf /usr/share/man/??_*
  12. apt update -y && apt upgrade -y

Report this snippet  

You need to login to post a comment.