I have a private Debian repository setup with a few custom built packages (along with other official Debian packages). All my machines have this repository(only) configured in
/etc/apt/sources.list. I want to know if there is a way to serve certain packages to certain machines.
For example - machine1 should be able to connect to the repository but should be able to download package1 and package2 only. machine2 should not be able to upgrade package1 even if a new version is available in the repository.
I know how to do the above on the client side - by running (or not running) the appropriate commands on machine1 and machine2. I want to automate this - I was planning to run a cronjob on those machines to do
apt-get update && apt-get upgrade once every day but only the packages intended for them should be installed/upgraded.
I have looked up online for weeks but couldn't find anything useful. Is this even doable?