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

Bug#874770: debian-edu-config: Use of /var/lib/apt/lists internals

On Sat, Sep 09, 2017 at 04:59:38PM +0200, Petter Reinholdtsen wrote:
> [Julian Andres Klode]
> > Instead of relying on internals, please use the interfaces provided by
> > APT 1.1 and newer:
> We will try.  As you might have noticed from the URL you sent, the LTSP
> hook for Debian Edu purge the downloaded package lists before updating
> them in a chroot.  Is there an official interface to do purge the
> package lists?

I think the easiest way is to run

  apt update -o Dir::Etc::sourcelist=/dev/null -o Dir::Etc::sourceparts=/dev/null 

This basically does an update with completely empty sources.list
files, and then purges all unused files (which are all...).

Another "official" interface would be to just delete the
/var/lib/apt/lists directory, or well, more precisely the directory
given by the Dir::State::Lists option:

$ apt-config shell lists dir::state::lists/d 

Or alternatively, I guess you can just run update

APT recreates it on update.

I have not filed bug reports for hardcoding the directory names,
I think there are simply too many instances of that for it to be

Debian Developer - deb.li/jak | jak-linux.org - free software dev
                  |  Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline').  Thank you.

Reply to: