Is it possible, maybe via pinning or other, to restrict which packages a repository can upgrade on a whitelist basis?
Example:
If I add the docker repo to apt:
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
and I want to specify that the docker repo can only install or upgrade the list of packages I specify:
docker-ce
docker-ce-cli
(Same for PPA repos of course). So now the docker repo cannot replace other software or trick me.
How can she do this whitelisting of packages per-repo security?
Ubuntu 18.04
containerd.io
,docker-ce-cli
anddocker-ce
. So your system will get only these packages. Moreover thecontainerd.io
is not provided from official repositories. So your idea is unnecessary and useless. – N0rbert Jun 07 '20 at 08:28