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

Re: local install with apt-get still producing caches in /var/lib/dpkg/{info,alternatives,info, ...}



In <[🔎] 9ef66fac1002060513q7316011fvececd062063ade1b@mail.gmail.com>, Albretch 
Mueller wrote:
>~
> After taking snapshots of my file system before and after
>installations using apt-get, I noticed lots of files in:
>~
>/var/lib/dpkg/{info,alternatives,info, ...}

Right, that's where dpkg keeps information about installed packages.  Which 
files they own, their pre- and post- install and removal scripts, 
alternatives, diversions, etc.

> relating to the files I installed, but those files I had grabbed
>locally like this:
>~
>_SL=<some partial local repo/directory>
>apt-get update -o Dir::Etc::SourceList=${_SL}
>apt-get install -y -V -o Dir::Etc::SourceList=${_SL} kate
>~
> dpkg does have an admindir option to set the temporary local cache

It's not a cache.  It is the information dpkg needs to manipulate a package 
during the time it is installed.

> and apt-get(8) does not say a thing about caching files at:
>~
> /var/lib/dpkg

It's not a cache.

> I am not using dpkg to any install packages, just to list installed
>packages a la:

Like Andrei covered, apt-get uses dpkg internally.
-- 
Boyd Stephen Smith Jr.                   ,= ,-_-. =.
bss@iguanasuicide.net                   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
http://iguanasuicide.net/                    \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: