I want to restrict the packages installable from a repo, eg restrict some packages to the main Ubuntu repos, even if they are available from launchpad or some other third party repos, something like pinning
some packages to certain repository.
Normally the repository last added repo takes over all the packages which were available in other earlier repos.
To set up AptPreferences for a set of packages add a new file in
/etc/apt/preferences.d/
.Add add the following lines in that file:
I will prevent ppa versions to replace packages provided by the main Ubuntu archives
To check if the package pin version run:
Visit https://help.ubuntu.com/community/PinningHowto