6

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

reducing activity
  • 951
  • 2
  • 19
  • 45
  • 3
    You might want to look at my answer [here](http://askubuntu.com/a/598836/367990). 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 '15 at 16:30
  • 2
    http://superuser.com/a/287357/418028 – Sergiy Kolodyazhnyy Apr 14 '15 at 15:38

1 Answers1

2

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.

grantbow
  • 976
  • 11
  • 27