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

Re: apt-get problems

Frodo Baggins wrote:
> It's not exactly the same thing, but I'd like to give you a warn (I
> know, I know, I sould signal it as a bug... I'll do). In the In the
> "Installing Debian/Linux 2.1 for Intel x86" document they say, about
> partitioning (section 4.2. Planing the use of the System"):
> [...] Notably, the Debian '/var' partition contains a lot of state
> information. [...], you should usually allocate at least 50Mb for
> /var.
> Well, I did it. I even allocated 128Mb, just to be on the sure
> side. But during istallation it crashed. Infact, apt uses a
> subdirectory of /var to put packages dowloaded but not yet installed
> and at installation time you need a lot of packages.

apt-get downloads *.deb files to /var/cache/apt/archives, so you do need
space there. It's not an apt-get bug, but it might be a documentation

> Then it seems to me that there are only two alternatives:
>   make an huge /var partition, knowing that there will be a lot of
> unused space after your installation is complete, or
>   don't make a partition neither of /var nor /usr, make a huge /
> partition and let the system use the space as it needs.

third alternative:
- make a directory /usr/local/apt
- copy the stuff in /var/cache/apt to it:
  $ cd /var/cache/apt
  $ tar cf - * | (cd /usr/local/apt; tar xvf - )
- after making sure that everything copied okay, delete everything under
  $ cd /var/cache
  $ rm -rf apt       # be careful with this!
- symlink to the new location
  $ ln -s /usr/local/apt apt

Now apt-get will download packages and they will go on the same
partition that /usr/local lives on.


Reply to: