|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I created a locale repository, defined in sources.list 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 !!! thanks for bela -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Thu, Mar 08, 2007 at 09:33:05AM +0100, abdelkader belahcene wrote:
> Hi, > I created a locale repository, defined in sources.list > > 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 !!! > > thanks for > bela > This sounds like a job for apt preferences. All you have to do is edit /etc/apt/preferences [0] (Create it if it doesn't exist) and pin your server to a higher value than the remote server. I'm not sure how this would work out though, you'd probably have to add some sort of flag to all of your local packages. Someone with more experience might want to add to this, I've never done it before. [0]http://jaqque.sbih.org/kplug/apt-pinning.html#preferences -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
"abdelkader belahcene" <abelahcene@gmail.com> wrote:
> 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 !!! If the packages on the server and in your repository are the same version then according to 'man sources.list' it should be enough to list the local repository first. Otherwise you need pinning. See 'man apt_preferences' HTH, 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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFF9s5+C0FPBMSS+BIRAmXdAJ9CeXdvHL7YcnVmaJCGjz 9gcEM0KACcDNj6 up+AvSbL7otzq/7rn0//ng8= =pyuR -----END PGP SIGNATURE----- |
|
![]() |
| Outils de la discussion | |
|
|