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