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

Re: Does apt clean delete /var/cache/apt/*pkgcache.bin on purpose?



On Thu, Oct 12, 2017 at 11:24:37PM +0200, Julian Andres Klode wrote:
> On Thu, Oct 12, 2017 at 10:04:50PM +0200, Marc Haber wrote:
> > Hi,
> > 
> > I have recently noticed (too late, this has made me wonder for a while)
> > that apt clean also deletes /var/cache/apt/*pkgcache.bin. Is that on
> > purpose? If so, may I ask why?
> 
> It is on purpose because there were historically lots of broken cache
> files causing segfaults, and the only way to recover from that is to
> delete them. It also cleans up any temporary cache file that was not
> renamed correctly.
> 
> I think the problem is basically gone now that we have checksums for
> the cache files, but it's still a good idea to keep the deletion
> IMO.

Thanks for the fast explanation!

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421


Reply to: