Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

From running:

apt-cache depends python2.6-minimal | grep Depends


apt-cache depends python2.6 | grep Depends

it looks like python2.6 depends on python2.6-minimal and a lot more.

However, when I run, apt-get install python2.6-minimal it tries to install the same packages as when I run apt-get install python2.6 -- both warns 17.0 MB of additional disk space will be used. Why is this happening?


Another funky thing that seems to happen is that when I try to install the python package, it wants 18.0 MB of additional disk space. But

apt-cache depends python | grep Depends

only shows

Depends: python2.6
Depends: python-minimal

Why does python require a megabyte more than python2.6?

share|improve this question
up vote 5 down vote accepted

The reason you are having extra package installations, is because of python-minimal's recommends. apt-get has been configured to automatically install all recommended packages, when you install a new package. You can tell apt-get to not install recommended packages like this.

apt-get install --no-install-recommends python2.6-minimal

Just remember... When you don't install recommends, you might not get all the functionality. Often people assume you always install recommends, then they have no idea why some installed package throws errors. The problem is most recommends should really be suggests, which has made recommends somewhat useless. Most of the time I install without recommends, and it only results in unexpected behavior occasionally. Any package that is not system or desktop critical, usually can be installed without recommends.

I hope I was able to help,

share|improve this answer

python-minimal recommends python.

% apt-cache depends python-minimal
  Depends: python2.7-minimal
  Depends: dpkg
  Recommends: python
  Conflicts: python-central
  Conflicts: <python-central:i386>
  Breaks: idle

By default, apt-get installs recommendations automatically. Try

sudo apt-get install --no-install-recommends python-minimal
share|improve this answer

As well as the other suggestions, you can also disable automatic bundling of recommends globally by adding a file in /etc/apt/apt.conf.d with the statement APT::Install-Recommends "0";.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.