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


Groups > linux.debian.user > #264886

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

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

Show all headers | View raw


> 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).

> system, so apt's state is more like the state of the repositories.

But both the "files that contain the list of .deb files" and "the .deb
files" are part of the state of the repositories :-)

Or, stated in another way, this way to look at the problem degenerates
into philosophical questions.  So I think the question "does it have
to be included in the backup" is a better guide.


        Stefan

Back to linux.debian.user | Previous | Next — Previous in thread | Next 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