i have to servers, the main of them , called server1 is a working ubuntu server, with some packages hold in some version, and some of them compiled from deb-src too.
I want to make a local repository with the packages installed in server1, to replicate over my network, then if i wanted to install postgresql (with my own changes, just as it is in server 1) in server2, i could get the package from my local repo compiled and versioned just in the exact way i installed in server1
Im thinkin / searching in some kind of script just after install one deb (from official repo, or local compiled) which will rsync to my local repo server. But i dont know if it is posible or there is another cleaner way to get it.
Thanks a lot.