Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-18 Thread tomas
On Mon, Dec 18, 2023 at 09:05:22AM -0500, Stefan Monnier wrote: > > I would imagine that it's due to the FHS (Filesystem Hierarchy Standard) > > which defines what the various directories on a "typical Linux system" are > > for. "man hier", for example, tells me that: > > > > * /var/cache - Data

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-18 Thread Stefan Monnier
> I would imagine that it's due to the FHS (Filesystem Hierarchy Standard) > which defines what the various directories on a "typical Linux system" are > for. "man hier", for example, tells me that: > > * /var/cache - Data cached for programs. > > * /var/lib - Variable state information for

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-18 Thread Darac Marjal
On 16/12/2023 15:59, Stefan Monnier wrote: AFAICT, all of `/var/lib/apt/lists` is made of files fetched from repositories, which APT will re-fetch if missing. So, it sounds to me like it belongs in `/var/cache/apt/lists`, really. What am I missing? Or is it just a historical accident?

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-17 Thread Stefan Monnier
>> That was a typo. it's `/var/cache/plocate/plocate.db`, sorry. > My plocate.db is in /var/lib/plocate/, as is bookworm's. > Is that changing in the future? Hmm... I could swear that I saw it in /var/cache but every machine I look at has it in /var/lib, indeed. [ GNU locate puts its DB in

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-17 Thread David Wright
On Sun 17 Dec 2023 at 15:33:30 (-0500), Stefan Monnier wrote: > >> That seems similar to things like `locate` failing if you remove > >> `/var/log/plocate/plocate.db` (until that DB is rebuilt). > > > > It's tricky to discern your point as /var/log/ is not involved. > > That was a typo. it's

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-17 Thread Stefan Monnier
>> That seems similar to things like `locate` failing if you remove >> `/var/log/plocate/plocate.db` (until that DB is rebuilt). > > It's tricky to discern your point as /var/log/ is not involved. That was a typo. it's `/var/cache/plocate/plocate.db`, sorry. Stefan

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-17 Thread David Wright
On Sun 17 Dec 2023 at 01:06:28 (-0500), Stefan Monnier wrote: > > Some packages will stay the same for years, but in the past week > > I can see four occasions when changes in list contents have occurred > > on oldstable. So there's little similarity. > > The question is not really whether

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-16 Thread Stefan Monnier
> Some packages will stay the same for years, but in the past week > I can see four occasions when changes in list contents have occurred > on oldstable. So there's little similarity. The question is not really whether "apt/lists" is similar to "apt/archives", but whether the content of

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-16 Thread David Wright
On Sat 16 Dec 2023 at 12:50:51 (-0500), Stefan Monnier wrote: > David Wright [2023-12-16 11:30:01] wrote: > > On Sat 16 Dec 2023 at 10:59:48 (-0500), Stefan Monnier wrote: > >> AFAICT, all of `/var/lib/apt/lists` is made of files fetched from > >> repositories, which APT will re-fetch if missing.

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-16 Thread Stefan Monnier
Max Nikulin [2023-12-17 09:10:29] wrote: > On 16/12/2023 22:59, Stefan Monnier wrote: >> AFAICT, all of `/var/lib/apt/lists` is made of files fetched from >> repositories, which APT will re-fetch if missing. >> So, it sounds to me like it belongs in `/var/cache/apt/lists`, really. > APT running by

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-16 Thread Max Nikulin
On 16/12/2023 22:59, Stefan Monnier wrote: AFAICT, all of `/var/lib/apt/lists` is made of files fetched from repositories, which APT will re-fetch if missing. So, it sounds to me like it belongs in `/var/cache/apt/lists`, really. APT running by a regular user is unable to write to

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-16 Thread Stefan Monnier
David Wright [2023-12-16 11:30:01] wrote: > On Sat 16 Dec 2023 at 10:59:48 (-0500), Stefan Monnier wrote: >> AFAICT, all of `/var/lib/apt/lists` is made of files fetched from >> repositories, which APT will re-fetch if missing. >> So, it sounds to me like it belongs in `/var/cache/apt/lists`,

Re: Why is /var/lib/apt/lists not in /var/cache?

2023-12-16 Thread David Wright
On Sat 16 Dec 2023 at 10:59:48 (-0500), Stefan Monnier wrote: > AFAICT, all of `/var/lib/apt/lists` is made of files fetched from > repositories, which APT will re-fetch if missing. > So, it sounds to me like it belongs in `/var/cache/apt/lists`, really. > What am I missing? Or is it just a

Why is /var/lib/apt/lists not in /var/cache?

2023-12-16 Thread Stefan Monnier
AFAICT, all of `/var/lib/apt/lists` is made of files fetched from repositories, which APT will re-fetch if missing. So, it sounds to me like it belongs in `/var/cache/apt/lists`, really. What am I missing? Or is it just a historical accident? Stefan "whose `/var/lib/apt/lists` is a