Re: Any way to make apt ignore dpkg status file?
Tim Woodall wrote:
> Hi
>
> $ APT_CONFIG=../apt/apt.conf.buster.amd64 apt-cache policy dpkg
> dpkg:
> Installed: 1.20.10
> Candidate: 1.20.10
> Version table:
> *** 1.20.10 100
> 100 /var/lib/dpkg/status
> 1.19.8 500
> 500 http://aptmirror17.home.woodall.me.uk/local buster/essential amd64 Packages
>
> Is there any way to make this not see the installed version other than
> by using -o RootDir?
/etc/apt/preferences.d/pin-dpkg:
---
Package: dpkg
Pin: version 1.19.8
Pin-Priority: 1001
---
This will eventually bite you when you inevitably forget about
it.
-dsr-
Reply to: