I know that I can use parameters (with aliases or apt.conf I can even make it permanent) to skip this steep.

But I still want to be warned about major amounts of used disk space, what seems to be purpose of this function.

The problem is that I and apt-get have different opinion what is major amount of disk space

  • for me it would be over 200MB.

And apt-get

  • well:

    After this operation, 9805 kB of additional disk space will be used. Do you want to continue? [Y/n] y

  • 3
    You might want to look at my answer here. It gives you a script that probes the download and installation sizes of (a) package(s) and its dependencies and displays them without installing. You can add some lines to it so that it will compare the output with your 200MB value and decide whether to ask (run sudo apt-get install normally) or not (run with -y switch). Note that apt-get only asks for confirmation depending on whether there are additional dependencies to install, not on the size. See my answer linked above. And don't forget to vote! :)
    – Byte Commander
    Mar 30, 2015 at 16:30
  • 2

1 Answer 1


This is not possible with tool itself. The script linked by @ByteCommander would be nice if slightly modified. I think apt-get could use this feature. Consider making a feature request or asking a question. Offering a patch is a little more challenging but makes it more likely you and others can get the feature.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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