LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2011, 11:38 PM   #1
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Rep: Reputation: 15
Debian: apt setup for apt-pinning


Okay, I rarely post topics here, but I think this one fits into a newbie section. :-/

Here's the deal. I'm running a stable version of Debian 6, and I would like to install a package from the unstable (sid) repo. Now most tutorials on google suggest that I should edit my /etc/apt/preferences and /etc/apt/apt.conf files to add a few lines. I have checked the /etc/apt folder and the two mentioned files do not exist. But two directories with similar names do: /etc/apt/preferences.d/ and /etc/apt/apt.conf.d/

This confuses me. Should I simply create the "preferences" and "apt.conf" files like the tutorials suggest or is this some form of different apt configuration where appropriate files have to be put inside these folders (like apache2 which uses sites-enabled and sites-available instead of one large httpd.conf file)?

Regards
 
Old 05-29-2011, 11:58 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Anything that the tutorial says to put in /etc/apt/preferences can be put in a file in /etc/apt/preferences.d/ directory and the same with /etc/apt/conf.d
 
Old 05-30-2011, 09:11 AM   #3
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Original Poster
Rep: Reputation: 15
And I take it that it is irrelevant what the file name is as long as it resides in one of those two directories, yes?
 
Old 05-30-2011, 08:48 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
correct
 
Old 05-31-2011, 06:01 AM   #5
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
Reminds me of my debian squeeze.

I create file <any-name>.list containing
Code:
deb file:/root <folder>/
in /etc/apt/sources.list.d when I create Packages.gz file ( in /root/<folder> ) locally using 'dpkg-scanpackages' .

So I don't touch /etc/apt/sources.list
Then 'apt-get update' adds my local packages in 'apt-cache' list.

Last edited by sumeet inani; 05-31-2011 at 06:02 AM.
 
Old 05-31-2011, 09:33 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Take a look at:
AptPreferences - Debian Wiki - http://wiki.debian.org/AptPreferences
Apt-Pinning for Beginners - http://jaqque.sbih.org/kplug/apt-pinning.html
Chapter*2.*Debian package management - http://www.debian.org/doc/manuals/de...didate_version

All of the info you need is in the Debian docs and/or the wiki.
 
  


Reply

Tags
apt, configuration, debian, pinning, sid



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
[Debian Testing] Apt pinning, Google Earth, Pulseaudio problems Keessince1988 Debian 3 02-22-2010 02:52 AM
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 05:50 PM
apt pinning aquaboot Debian 2 10-14-2008 03:44 AM
Partial upgrade with APT pinning (debian)? MaulingMonkey Linux - Software 1 01-21-2005 06:11 AM
apt-pinning h/w Debian 6 02-25-2004 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:17 AM.

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