PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > how to give priority for slected source
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

how to give priority for slected source

Réponse
 
LinkBack Outils de la discussion
Vieux 08/03/2007, 09h00   #1
abdelkader belahcene
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how to give priority for slected source

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
  Réponse avec citation
Vieux 08/03/2007, 12h10   #2
Michael Pobega
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to give priority for slected source

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
  Réponse avec citation
Vieux 08/03/2007, 17h00   #3
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to give priority for slected source

"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
  Réponse avec citation
Vieux 13/03/2007, 18h00   #4
Michelle Konzack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFF9s5+C0FPBMSS+BIRAmXdAJ9CeXdvHL7YcnVmaJCGjz 9gcEM0KACcDNj6
up+AvSbL7otzq/7rn0//ng8=
=pyuR
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h02.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12242 seconds with 12 queries