[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to give priority for slected source



Am 2007-03-08 09:33:05, schrieb abdelkader belahcene:
> Hi,
> I created  a locale repository, defined in sources.list
> 
> deb file:///home etch/

This should be:

deb file:///home/etch .

> which contains the desired packages
> 
> I added an official repository
> 
> deb ftp://ftp.fr.debian.org/debian etch main contrib
> 
> It works perfectly
> 
> 
> I just  want to tell to apt-get ,  that if the software is in my
> REPOSITORY ( I mean /home/etch)  take it from here et don't download
> it from the remote server !!!

cd /home/etch
dpkg-scanpackages ./ /dev/null >./Packages
gzip  <Packages >Packages.gz
bzip2 <Packages >Packages.bz2
apt-get update

and if the /home/etch entry is before the ftp.fr.debian.org entry
it is always tried first since "apt-get" and "aptitude" trying one
after one in the list.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: