If I have to two repositories listed in my sources.list or sources.list.d is there a way to tell apt which is preferred?
My exact use case is if a package is found on the intranet repository and on the remote repository I want apt to always use the intranet one. Right now it seems to pick randomly between the two.