Apt-Pinning For Debian Testing,Unstable:Help

Discussion in 'HOWTO-Related Questions' started by praka123, May 23, 2010.

  1. praka123

    praka123 New Member

    I've just Installed Debian Testing.I want to apt pin Squeeze and Sid(testing and unstable).
    I want to have testing along with packages from unstable also installed with almost equal priority hopefully not breaking the system.
    few years back,I tried running unstable and experimental apt-pinned and it was such a mess with daily huge updates.
    I don't want such a mess.
    My Plan is to Apt Pinn:

    • Debian Squeeze,Debian Squeeze-proposed-updates given maximum priority
    • Debian Sid/Unstable given slightly less Priority.

    There is a testing-proposed-updates repository also with Debian Squeeze.

    Checked your(falko) How to and Below is How My /etc/apt/preferences File Looks like:
    Code:
    Package: *
    Pin: release a=testing
    Pin-Priority: 700
    
    Package: *
    Pin: release a=testing-proposed-updates
    Pin-Priority: 700
    
    
    Package: *
    Pin: release a=unstable
    Pin-Priority: 650
    
    And here ,the Other Files:
    /etc/apt/apt.conf:
    Code:
    APT::Cache-Limit "100000000";
    APT::Default-Release "testing";
    
    and /etc/apt/sources.list :
    Code:
    # Testing
    deb http://ftp.debian.org/debian/ testing main contrib non-free
    deb-src http://ftp.debian.org/debian/ testing main contrib non-free
    
    #Testing Security Updates
    deb http://security.debian.org/ testing/updates main
    deb-src http://security.debian.org/ testing/updates main
    
    #Testing Proposed Updates
    deb http://ftp.debian.org/debian/ testing-proposed-updates main contrib non-free
    deb-src http://ftp.debian.org/debian/ testing-proposed-updates main contrib non-free
    
    # Marillat For info visit http://www.debian-multimedia.org
    deb http://www.debian-multimedia.org testing main non-free
    #deb-src http://www.debian-multimedia.org testing main
    
    #Unstable
    deb http://ftp.debian.org/debian/ unstable main contrib non-free
    deb-src http://ftp.debian.org/debian/ unstable main contrib non-free
    
    #Unstable Kirya 
    deb http://packages.kirya.net/debian/ sid main contrib non-free
    deb-src http://packages.kirya.net/debian/ sid main contrib non-free
    Is This OK?

    Thanks :)
     
    Last edited: May 23, 2010
  2. falko

    falko Super Moderator Howtoforge Staff

    Looks good, but did you test with apt-policy?
     
  3. praka123

    praka123 New Member

    Solved

    Forgot to Update the Post.
    apt-cache policy shows everything as of now was pulled from testing(Squeeze) repository :)
    I've below /etc/apt/apt.conf file:
    Code:
    APT::Cache-Limit "100000000";
    APT::Default-Release "testing";
    
    and /etc/apt/preferences file:
    Code:
    Package: *
    Pin: release a=testing
    Pin-Priority: 900
    
    
    Package: *
    Pin: release a=unstable
    Pin-Priority: 300
    
    Package: *
    Pin: release o=Debian
    Pin-Priority: -1
    
     

Share This Page