Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 06-01-2007, 05:31 PM   #1
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Rep: Reputation: 30
Apt-pinning question

I've been looking up on apt pinning and it seems pritty simple, but I have one question, I want to pin the official repose (main, contrib, non-free) above the Debian Multimedia one, how exactly do I do that?

Package: *
Pin: release a=testing
Pin-Priority: 650

I assume I just replace a=testing with something, but I have no idea what that something is.
Old 06-01-2007, 07:09 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271

Looks like you want to use the origin="" tag on the Pin: line.
Old 06-02-2007, 02:20 AM   #3
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Original Poster
Rep: Reputation: 30
Thank you, better read those release files
Old 06-02-2007, 09:16 AM   #4
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 714
Blog Entries: 1

Rep: Reputation: 33
Smile apt-pinning deepclutch way ;)

here is how i run apt:
I made Sid as my default repo.
my /etc/apt/preferences file:
Package: *
Pin: release o=Debian a=unstable
Pin-Priority: 900

Package: *
Pin: release o=Debian a=experimental
Pin-Priority: 500

Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 50

Package: *
Pin: release o=Debian
Pin-Priority: -1
and got an /etc/apt/apt.conf
APT::Default-Release "unstable";
APT::Cache-Limit "25165824";
APT::Authentication::TrustCDROM "true";
Acquire::http::Proxy "false";
my sources.list:
# # If you get GPG errors with this sources.list, locate the GPG key in this file
# # and run these commands (where KEY is replaced with that key)
# #
# # gpg --keyserver hkp:// --recv-keys KEY
# # gpg --export --armor KEY |  apt-key add -

#debian testing repository 
deb testing main contrib non-free 
deb-src testing main contrib non-free 
#debian testing security updates
deb testing/updates main contrib 
deb-src testing/updates main contrib 

#debian unstable  repository
deb unstable main contrib non-free 
deb-src unstable main contrib non-free 
#debian experimental repository
deb experimental main contrib non-free 
deb-src experimental main contrib non-free repsoitory
deb ./ 
deb ./ 
#debian multimedia repository
deb sid main 
deb experimental main 
#debian-unofficial repository
deb unstable main contrib non-free restricted 
# deb experimental main contrib non-free 
#kirya's repository
deb unstable main contrib non-free 

#new linux kernel
# deb trunk main 

deb sid main 
deb-src sid main 

deb ./
#use this source line for unstable drivers
deb unstable nvidia-graphics-drivers 
deb unstable nvidia-kernel-common 
deb unstable nvidia-settings 
deb unstable nvidia-xconfig 
deb unstable modules
hope this helps


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-pinning question nx5000 Debian 3 04-11-2007 05:48 PM
APT Pinning not working as expected kushalkoolwal Debian 10 03-13-2006 08:54 PM
apt pinning question divukman Debian 3 12-01-2005 10:49 AM
Apt-get build-dep and Pinning McCloud Debian 2 09-07-2005 05:36 AM
apt-pinning h/w Debian 6 02-25-2004 11:57 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration