I created my own repository so I can provide a newer version of a package than the one the Ubuntu repository currently holds. Everything works fine, with the exception that I have to specify the version when installing it:
sudo apt-get install package=1.2.1
If I don't specify the version, then it will install it from Ubuntu's repository.
I tried to put my repository at the top of the
sources.list but it doesn't make any difference.
So I'm wondering if there's a flag when building the
.deb package that will give priority to my repository at all times? or a flag in the actual repository? I'd prefer not having the user to change their
/etc/apt/preferences to set the priority, nor using
apt-get -t repo.
I tried to install the
Tor browser given this instructions and it does install the latest version from their custom repo. I don't know what they're doing but it does work with only the steps they list.