Re: how to give priority for site with apt
On Wed, Sep 19, 2007 at 02:15:42PM +0100, abdelkader belahcene wrote:
> hi, > I am looking for possibility to make priority for repository. > In fact I have a local repository, when I want to install a package I > want apt to check first in the local to install it from there if it > exists. > for example > here is my sources.list: > deb file:/opt/ R4.1_2/ > deb file:/opt/R4.1_1 etch main contrib > deb http://ftp.fr.debian.org/debian lenny main contrib non-free > > If a software (say lyx-1.5.1), exists in /opt/R4.1_2/ I want to > install it from here and not from ftp.fr.debian.org/debian. where the > version is the same of course. > > I haven't found info about priority in the apt doc????
Theoretically it should work like that. Please post the output of
'apt-cache policy lyx' (make sure it's a package you have in both
repos).
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Wed Sep 19 11:14:24 2007
This archive was generated by hypermail 2.1.8
: Sun Oct 07 2007 - 05:06:21 EDT
|