Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #264887

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

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: Why is /var/lib/apt/lists not in /var/cache?
Date 2023-12-18 15:40 +0100
Message-ID <HMmWJ-eqVp-9@gated-at.bofh.it> (permalink)
References <HLFoK-e0lr-9@gated-at.bofh.it> <HMmtH-eqLX-11@gated-at.bofh.it> <HMmtH-eqLX-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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 cached for programs.
> >
> > * /var/lib - Variable state information for programs.
> 
> These leave open the question of what "data cached for the program" mean
> and what "Variable state" means.
> 
> Another way to look at it is in terms of what it implies.
> For me, `/var/lib` data is data that is important to keep, e.g. data you
> definitely don't want to delete/lose without a very good reason, whereas
> `/var/cache` is data that's handy to have but not indispensable because
> we can reconstruct it (or something close enough) from other sources,
> which means that it doesn't have to be included in backups and it can
> be deleted if it strikes your fancy (typically when you're in urgent need
> of a tiny bit more disk space).

[...]

Most probably you are right, especially since TLDP only says you can
delete /var/cache's content safely across reboots [1]. The apt lists
will be regenerated after doing an apt-get update, so...

OTOH it'd be only a true-real-honestly-promised cache if every apt
command did an apt-get update whenever it found that file missing.

Cheers

[1] https://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/var.html
-- 
t

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Why is /var/lib/apt/lists not in /var/cache? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-12-16 17:10 +0100
  Re: Why is /var/lib/apt/lists not in /var/cache? David Wright <deblis@lionunicorn.co.uk> - 2023-12-16 18:40 +0100
    Re: Why is /var/lib/apt/lists not in /var/cache? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-12-16 19:00 +0100
      Re: Why is /var/lib/apt/lists not in /var/cache? David Wright <deblis@lionunicorn.co.uk> - 2023-12-17 06:20 +0100
        Re: Why is /var/lib/apt/lists not in /var/cache? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-12-17 07:10 +0100
          Re: Why is /var/lib/apt/lists not in /var/cache? David Wright <deblis@lionunicorn.co.uk> - 2023-12-17 19:40 +0100
            Re: Why is /var/lib/apt/lists not in /var/cache? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-12-17 21:40 +0100
              Re: Why is /var/lib/apt/lists not in /var/cache? David Wright <deblis@lionunicorn.co.uk> - 2023-12-18 01:50 +0100
                Re: Why is /var/lib/apt/lists not in /var/cache? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-12-18 05:10 +0100
  Re: Why is /var/lib/apt/lists not in /var/cache? Max Nikulin <manikulin@gmail.com> - 2023-12-17 03:20 +0100
    Re: Why is /var/lib/apt/lists not in /var/cache? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-12-17 06:10 +0100
  Re: Why is /var/lib/apt/lists not in /var/cache? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-12-18 15:10 +0100
    Re: Why is /var/lib/apt/lists not in /var/cache? <tomas@tuxteam.de> - 2023-12-18 15:40 +0100

csiph-web