[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is there a tool which keeps track of space on filesystems during install?

Brian May <bam@debian.org> wrote:
>>>>>> "Itai" == Itai Zukerman <zukerman@math-hat.com> writes:
> > The pre/post-inst/rm scripts complicate things slightly.
> > Preinst might free up some space, for example.  Still, I
> > think a warning (or controlled error) might be better than
> > outright failure and potential database corruption.  What
> > happens when /var fills up?
>IMHO, this is a more important issue. Especially when postinst scripts:
>a) generate files that use more disk space (eg. any package with
>(x)emacs LISP files).

It's possible to tell dpkg-gencontrol about this:

              Additional disk space  used  when  the  package  is
              installed.   If  this  variable is set its value is
              added  to  that  of  the  Installed-Size   variable
              (whether set explicitly or using the default value)
              before it is copied into the Installed-Size control
              file field.

Colin Watson                                     [cjw44@flatline.org.uk]

Reply to: