Debian/Ubuntu set apt defaults for no recommends or suggests
Posted: Sep 15, 18, 16:02 techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Location: East Coast, West Coast? I know it's one of them.
Depending on the default configurations, Debian has some really bad settings for apt, the worst of all is the installation of suggests or recommends by default.
To fix this, create a file, I call this one: /etc/apt/apt.conf.d/80basics
Note that on this system, it's a Buster (testing) base, with sid (unstable) sources added so I can install stuff not in testing repos.
:: Code ::// apt 0.7 introduces automatic behaviour unsuitable for sid, revert this
// auto-remove breaks on meta packages
// Recommends are as of now still abused in many packages
// PDiffs reduce the required download for apt-get update, but increase the
// CPU requirements and quite often fail.
Next, and this only applies if you want to pin the distro base to a specific version (does not apply if you only use one type of the distro, like testing, or sid, or stable. Note that by default, apt will use the highest level, unless you pin the distro:
:: Code ::preferences.d/90basics:1:Package: *
Pin: release a=testing
Pin: release a=unstable
Pin: release a=experimental
The pin priority determines what apt will use when deciding between, in this case, sid and testing. I don't actually use experimental in general, but I put that in there just in case I needed something from it at some point. I don't believe numbers > 1000 have any meaning or point.
Back to top
All times are GMT - 8 Hours