HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Apt-Pinning For Debian Testing,Unstable:Help (http://www.howtoforge.com/forums/showthread.php?t=46069)

praka123 23rd May 2010 15:23

Apt-Pinning For Debian Testing,Unstable:Help
 
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 :)

falko 24th May 2010 23:17

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

praka123 2nd June 2010 19:17

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



All times are GMT +2. The time now is 08:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.