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

Re: deletar versoes antigas de pacotes no cache



Em Seg, 2003-06-30 às 04:43, Bruno Cunha Torres escreveu:
> Eu gostaria de saber se há alguma forma fácil, ou pelo menos um pouco
> automatizada de manter o meu diretorio /var/cache/apt/archives apenas
> com as versões mais novas dos pacotes que eu baixar.
> Por exemplo, se eu baixo o programa foo-2.0.1-1 e depois atualizo para
> foo-2.0.1-2, os dois arquivos .deb vao ficar no cache. Eu queria saber
> como deletar os pacotes de mesmo nome com versoes mais antigas, como o
> pacote foo-2.0.1-1. Alguém sabe?

O man apt-get sabe:

 clean        clean clears out the local repository of retrieved package files. It
              removes  everything  but the lock file from /var/cache/apt/archives/
              and /var/cache/apt/archive/partial/. When APT  is  used  as  a  dse-
              lect(8)  method,  clean  is run automatically.  Those who do not use
              dselect will likely want to run apt-get clean from time to  time  to
              free up disk space.

 autoclean
              Like  clean,  autoclean clears out the local repository of retrieved
              package files. The difference is that it only removes package  files
              that  can  no  longer  be  downloaded, and are largely useless. This
              allows a cache to be maintained over a long period without it  grow-
              ing  out  of  control. The configuration option APT::Clean-Installed
              will prevent installed packages from being erased if it  is  set  to
              off.

[]'s
-- 
Outgoing mail is certified Windows Free.
Checked by Debian GNU/Linux <http://www.debian.org>.

"free your computer and your soul will follow..."



Reply to: