blog/content/post/do-not-install-recommended-packages.md
2022-09-08 10:55:06 +05:30

1.7 KiB

title date lastmod draft keywords description tags categories author comment toc autoCollapseToc postMetaInFooter hiddenFromHomePage contentCopyright reward mathjax mathjaxEnableSingleDollar mathjaxEnableAutoNumber hideHeaderAndFooter flowchartDiagrams sequenceDiagrams
Do Not Install Recommended Packages with APT 2022-07-09T16:26:12+05:30 2022-07-09T16:26:12+05:30 false
apt debian ubuntu
apt
linux
false false false true false false false false false false false
enable options
false
enable options
false

This applies only if you use Debian or Ubuntu or any distribution that uses apt package manager.

Normally when you run apt install, it will automatically install a lot of optional packages, without which your intended package will work perfectly fine since these are optional. They just consume more bandwidth and a lot more diskpace. These will only add up as you update your system over time.

Now, there are two ways to get rid of this behaviour. Pass --no-install-recommends to apt everytime you install a package, or put it in /etc/apt/apt.conf.d/99-no-install-recommend to avoid typing it every time.

APT::Install-Recommends "false";
APT::Install-Suggests "false";