why no apt.conf?

Questions about applications and software
Forum rules
Before you post please read how to get help

why no apt.conf?

Postby TomRoche on Sun Jul 08, 2012 8:27 pm

craigevil recommends the debian forum article Howto: Set up and Maintain a Mixed Testing/Unstable System, which says

Here is the key [to Doing it right]. We need to let Apt know which is our preferred update repository. That information comes from the /etc/apt/apt.conf file. If it doesn't exist, create it. It needs to include this line:

Code: Select all
APT::Default-Release "testing";


With that in place, aptitude will first look at testing, and if it sees the program you have identified, it will look no further. In our scenario, since we know we want our application from Unstable, our command will be:

Code: Select all
# aptitude install -t unstable ratpoison


That seems useful. But I note

Code: Select all
me@it:~$ ls -alh /etc/apt/apt*.conf
-rw-r--r-- 1 root root 2.1K Jul 24  2011 /etc/apt/apt-file.conf


and apt-file.conf serves a very different purpose. So why does LMDE not distribute an apt.conf by default?
TomRoche
Level 3
Level 3
 
Posts: 181
Joined: Thu Jan 13, 2011 2:52 pm

Linux Mint is funded by ads and donations.
 

Re: why no apt.conf?

Postby craigevil on Mon Jul 09, 2012 10:43 am

apt.conf is not created by default in Debian. That and the new 'correct' way is to create a file in /etc/apt/apt.conf.d/
Debian Sid KDE4.8.4 Kernel 3.4 Thinkpad R40 CPU Pentium M 1.3MHz RAM 2GB ATI Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Giant Debian sources.list | Debian upgrade script smxi | sysinfo script inxi
craigevil
Level 5
Level 5
 
Posts: 559
Joined: Wed Sep 15, 2010 6:10 am
Location: down the rabbit hole

Re: why no apt.conf?

Postby TomRoche on Mon Jul 09, 2012 11:46 am

craigevil wrote:apt.conf is not created by default in Debian.


So? This is LMDE, which by default has a definite, explicit relationship with one repo stream, testing.
TomRoche
Level 3
Level 3
 
Posts: 181
Joined: Thu Jan 13, 2011 2:52 pm


Return to Software & Applications

Who is online

Users browsing this forum: cambofrog and 6 guests