Open Rajpratik71 opened 4 years ago
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages .
By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install.
This results in smaller downloads and installation of packages .
Refer to blog at Ubuntu Blog .
Another Cleanup tweaks using
apt-get clean
rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/*
removing downloaded packages and packages list will free up some space ,
results in smaller image size.
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages .
By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install.
This results in smaller downloads and installation of packages .
Refer to blog at Ubuntu Blog .
Another Cleanup tweaks using
apt-get clean
rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/*
removing downloaded packages and packages list will free up some space ,
results in smaller image size.