apt-get from arbitrary url
Is it possible to specify which URL to get packages from, out of the
URLs in the sources.list file, with apt-get?
For example, say I have something like:
#------------------------------------------------------------------------------
# foo package
#------------------------------------------------------------------------------
deb http://foo.org/pub/foo/Debian ./
#----------------------------------------------------------------------
# unstable
#----------------------------------------------------------------------
deb http://archive.progeny.com/debian/ unstable main contrib non-free
deb-src http://archive.progeny.com/debian/ unstable main contrib non-free
deb http://linux.csua.berkeley.edu/debian-non-US/ unstable/non-US main contrib non-free
deb-src http://linux.csua.berkeley.edu/debian-non-US/ unstable/non-US main contrib non-free
#----------------------------------------------------------------------
# testing
#----------------------------------------------------------------------
deb http://archive.progeny.com/debian/ testing main contrib non-free
deb-src http://archive.progeny.com/debian/ testing main contrib non-free
deb http://134.75.7.22/pub/Linux/debian-non-US/ testing/non-US main contrib non-free
deb-src http://134.75.7.22/pub/Linux/debian-non-US/ testing/non-US main contrib non-free
#----------------------------------------------------------------------
# stable
#----------------------------------------------------------------------
deb http://216.37.49.2/debian/ stable main contrib non-free
deb-src http://216.37.49.2/debian/ stable main contrib non-free
deb http://linux.csua.berkeley.edu/debian-non-US/ stable/non-US main contrib non-free
deb-src http://linux.csua.berkeley.edu/debian-non-US/ stable/non-US main contrib non-free
If I do:
apt-cache -f show foo
I get 2, one from the foo package URL, and one from the unstable
URL. The one from the foo URL is newer and I want that. How can I get
that, short of downloading the debs?
Reply to: