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

Re: apt-pinning



michael bode schrieb:
> hallo,
>
> das es ganz so "einfach" wie in hier beschrieben:
>
> http://www.linux-magazin.de/Artikel/ausgabe/2002/11/apt/apt.html
>
> jedenfalls nicht funktioniert habe ich jetzt feststellen
> dürfen. nach einer neuinstallation funktioniert mein system
> jetzt wieder.

Hallo,

also das es nicht so einfach ist habe ich auch gerade rausgefunden.
Also ich will bei woody standardmäßig bleiben, aber auch mal was aus unstable 
oder testing installieren.
OK diverse dateien editiert:
/etc/apt.conf
APT::Default-Release "stable";
APT::Cache-Limit 12582912;

/etc/apt/preferences
Package: *
Pin: release a=testing
Pin-Priority: 50
Package: *
Pin: release a=unstable
Pin-Priority: 20
das ich aus allen installieren kann er aber testing bevorzugt.

und dann mal testweise ein "apt-cache policy" ausgeführt und siehe da:

debian:/etc/apt# apt-cache policy
Package Files:
 100 /var/lib/dpkg/status
     release a=now
  20 http://download.uni-hd.de sid/non-free Packages
     release o=Debian,a=unstable,l=Debian,c=non-free
     origin download.uni-hd.de
  20 http://download.uni-hd.de sid/main Packages
     release o=Debian,a=unstable,l=Debian,c=main
     origin download.uni-hd.de
  20 http://download.uni-hd.de sid/contrib Packages
     release o=Debian,a=unstable,l=Debian,c=contrib
     origin download.uni-hd.de
 500 http://non-us.debian.org sarge/non-US/non-free Packages
     release o=Debian,a=testing,l=Debian,c=non-US/non-free
     origin non-us.debian.org
 500 http://non-us.debian.org sarge/non-US/contrib Packages
     release o=Debian,a=testing,l=Debian,c=non-US/contrib
     origin non-us.debian.org
 500 http://non-us.debian.org sarge/non-US/main Packages
     release o=Debian,a=testing,l=Debian,c=non-US/main
     origin non-us.debian.org
 500 http://download.uni-hd.de sarge/non-free Packages
     release o=Debian,a=testing,l=Debian,c=non-free
     origin download.uni-hd.de
 500 http://download.uni-hd.de sarge/main Packages
     release o=Debian,a=testing,l=Debian,c=main
     origin download.uni-hd.de
 500 http://download.uni-hd.de sarge/contrib Packages
     release o=Debian,a=testing,l=Debian,c=contrib
     origin download.uni-hd.de
 500 http://sunsite.informatik.rwth-aachen.de testing/contrib Packages
     release o=Debian,a=testing,l=Debian,c=contrib
     origin sunsite.informatik.rwth-aachen.de
 500 http://sunsite.informatik.rwth-aachen.de testing/non-free Packages
     release o=Debian,a=testing,l=Debian,c=non-free
     origin sunsite.informatik.rwth-aachen.de
 500 http://sunsite.informatik.rwth-aachen.de testing/main Packages
     release o=Debian,a=testing,l=Debian,c=main
     origin sunsite.informatik.rwth-aachen.de
 990 http://non-us.debian.org stable/non-US/non-free Packages
     release v=3.0,o=Debian,a=stable,l=Debian,c=non-US/non-free
     origin non-us.debian.org
 990 http://non-us.debian.org stable/non-US/contrib Packages
     release v=3.0,o=Debian,a=stable,l=Debian,c=non-US/contrib
     origin non-us.debian.org
 990 http://non-us.debian.org stable/non-US/main Packages
     release v=3.0,o=Debian,a=stable,l=Debian,c=non-US/main
     origin non-us.debian.org
 990 http://download.uni-hd.de woody/non-free Packages
     release v=3.0,o=Debian,a=stable,l=Debian,c=non-free
     origin download.uni-hd.de
 990 http://download.uni-hd.de woody/main Packages
     release v=3.0,o=Debian,a=stable,l=Debian,c=main
     origin download.uni-hd.de
 990 http://download.uni-hd.de woody/contrib Packages
     release v=3.0,o=Debian,a=stable,l=Debian,c=contrib
     origin download.uni-hd.de
 990 http://marillat.free.fr stable/main Packages
     release o=Christian Marillat,a=stable,l=Unofficial Packages Free,c=main
     origin marillat.free.fr
 500 http://people.debian.org ./ Packages
     origin people.debian.org
 500 ftp://ftp.kde.org ./ Packages
     origin ftp.kde.org
 500 http://www.mirror.ac.uk woody/main Packages
     origin www.mirror.ac.uk
 500 http://www.mirror.ac.uk woody/non-free Packages
     origin www.mirror.ac.uk
 990 http://ftp.freenet.de woody/contrib Packages
     release o=debian-openoffice,a=stable,l=OpenOffice.org backports to 
Woody,c=contrib
     origin ftp.freenet.de
 990 http://ftp.freenet.de woody/main Packages
     release o=debian-openoffice,a=stable,l=OpenOffice.org backports to 
Woody,c=main
     origin ftp.freenet.de
 500 http://non-us.debian.org woody-proposed-updates/non-US/non-free Packages
     release 
v=3.0-updates,o=Debian,a=proposed-updates,l=Debian,c=non-US/non-free
     origin non-us.debian.org
 500 http://non-us.debian.org woody-proposed-updates/non-US/contrib Packages
     release 
v=3.0-updates,o=Debian,a=proposed-updates,l=Debian,c=non-US/contrib
     origin non-us.debian.org
 500 http://non-us.debian.org woody-proposed-updates/non-US/main Packages
     release v=3.0-updates,o=Debian,a=proposed-updates,l=Debian,c=non-US/main
     origin non-us.debian.org
 990 http://security.debian.org stable/updates/non-free Packages
     release v=3.0,o=Debian,a=stable,l=Debian-Security,c=updates/non-free
     origin security.debian.org
 990 http://security.debian.org stable/updates/contrib Packages
     release v=3.0,o=Debian,a=stable,l=Debian-Security,c=updates/contrib
     origin security.debian.org
 990 http://security.debian.org stable/updates/main Packages
     release v=3.0,o=Debian,a=stable,l=Debian-Security,c=updates/main
     origin security.debian.org
Pinned Packages:


?? Irgendwie scheint da etwas grob anderst zu sein als ich es verstanden habe.

Danke :-))



Reply to: