Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175521 > unrolled thread

default "Default-Release" for APT

Started byMartin T <m4rtntns@gmail.com>
First post2016-12-07 19:30 +0100
Last post2016-12-08 12:00 +0100
Articles 5 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  default "Default-Release" for APT Martin T <m4rtntns@gmail.com> - 2016-12-07 19:30 +0100
    Re: default "Default-Release" for APT maderios <maderios@gmail.com> - 2016-12-07 23:10 +0100
      Re: default "Default-Release" for APT Martin T <m4rtntns@gmail.com> - 2016-12-08 00:20 +0100
        Re: default "Default-Release" for APT maderios <maderios@gmail.com> - 2016-12-08 11:10 +0100
        Re: default "Default-Release" for APT Martin T <m4rtntns@gmail.com> - 2016-12-08 12:00 +0100

#175521 — default "Default-Release" for APT

FromMartin T <m4rtntns@gmail.com>
Date2016-12-07 19:30 +0100
Subjectdefault "Default-Release" for APT
Message-ID<sLP8B-3DP-27@gated-at.bofh.it>
Hi,

I read the apt_preferences man page and it says that "To configure the
default release in the configuration file, use: APT::Default-Release
"stable";". While I have multiple distributions in sources.list
file(stable, testing, unstable, jessie-backports), then I don't have
the "Default-Release" configured:

# grep -R Default-Release /etc/apt/
#

What is the default "Default-Release"? How is this determined?


thanks,
Martin

[toc] | [next] | [standalone]


#175532

Frommaderios <maderios@gmail.com>
Date2016-12-07 23:10 +0100
Message-ID<sLSzv-5Ru-1@gated-at.bofh.it>
In reply to#175521
On 12/07/2016 07:26 PM, Martin T wrote:
> Hi,
>
> I read the apt_preferences man page and it says that "To configure the
> default release in the configuration file, use: APT::Default-Release
> "stable";". While I have multiple distributions in sources.list
> file(stable, testing, unstable, jessie-backports), then I don't have
> the "Default-Release" configured:
>
> # grep -R Default-Release /etc/apt/
> #
>
> What is the default "Default-Release"? How is this determined?
>
Hi
Look at your /etc/apt/apt.conf

My apt.conf for testing:

APT::Install-Recommends "false";
APT::Install-Suggests "false";
APT::Default-Release "testing";

-- 
Maderios

[toc] | [prev] | [next] | [standalone]


#175536

FromMartin T <m4rtntns@gmail.com>
Date2016-12-08 00:20 +0100
Message-ID<sLTFg-6FW-41@gated-at.bofh.it>
In reply to#175532
Hi,

as I showed in my initial post, I don't have that file:

# ls -l /etc/apt/apt.conf
ls: cannot access /etc/apt/apt.conf: No such file or directory
#

That's what made me wondering what is the default release if
"APT::Default-Release" is not configured and based on what this
default release is determined.


thanks,
Martin

On Thu, Dec 8, 2016 at 12:03 AM, maderios <maderios@gmail.com> wrote:
> On 12/07/2016 07:26 PM, Martin T wrote:
>>
>> Hi,
>>
>> I read the apt_preferences man page and it says that "To configure the
>> default release in the configuration file, use: APT::Default-Release
>> "stable";". While I have multiple distributions in sources.list
>> file(stable, testing, unstable, jessie-backports), then I don't have
>> the "Default-Release" configured:
>>
>> # grep -R Default-Release /etc/apt/
>> #
>>
>> What is the default "Default-Release"? How is this determined?
>>
> Hi
> Look at your /etc/apt/apt.conf
>
> My apt.conf for testing:
>
> APT::Install-Recommends "false";
> APT::Install-Suggests "false";
> APT::Default-Release "testing";
>
> --
> Maderios
>

[toc] | [prev] | [next] | [standalone]


#175546

Frommaderios <maderios@gmail.com>
Date2016-12-08 11:10 +0100
Message-ID<sM3Oh-4RM-19@gated-at.bofh.it>
In reply to#175536
On 12/08/2016 12:11 AM, Martin T wrote:
> Hi,
>
> as I showed in my initial post, I don't have that file:
>
> # ls -l /etc/apt/apt.conf
> ls: cannot access /etc/apt/apt.conf: No such file or directory
man apt.conf
'/etc/apt/apt.conf is the main configuration file shared by all the
        tools in the APT suite of tools'
Maybe  it was created by apt-config internal command of apt
https://linux.die.net/man/8/apt-config

-- 
Maderios

[toc] | [prev] | [next] | [standalone]


#175547

FromMartin T <m4rtntns@gmail.com>
Date2016-12-08 12:00 +0100
Message-ID<sM4AF-57U-13@gated-at.bofh.it>
In reply to#175536
This makes sense, thanks! A good example would be libapparmor1:

# apt-cache policy libapparmor1
libapparmor1:
  Installed: 2.9.0-3
  Candidate: 2.10.95-7
  Version table:
     2.10.95-7 0
        500 http://ftp.se.debian.org/debian/ unstable/main amd64 Packages
     2.10.95-6 0
        500 http://ftp.se.debian.org/debian/ testing/main amd64 Packages
     2.10.95-4~bpo8+2 0
        100 http://ftp.se.debian.org/debian/ jessie-backports/main
amd64 Packages
 *** 2.9.0-3 0
        500 http://ftp.se.debian.org/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status
#

As seen above, version 2.10.95-7 from "unstable" would get installed
because it is the highest version(checked with "dpkg
--compare-versions") from all three sources with priority 500.


Martin

On Thu, Dec 8, 2016 at 1:35 AM, Mark Fletcher <mark27q1@gmail.com> wrote:
>
> On Thu, 8 Dec 2016 at 08:11, Martin T <m4rtntns@gmail.com> wrote:
>>
>> Hi,
>>
>> as I showed in my initial post, I don't have that file:
>>
>> # ls -l /etc/apt/apt.conf
>> ls: cannot access /etc/apt/apt.conf: No such file or directory
>> #
>>
>> That's what made me wondering what is the default release if
>> "APT::Default-Release" is not configured and based on what this
>> default release is determined.
>>
>>
>> thanks,
>> Martin
>>
>> On Thu, Dec 8, 2016 at 12:03 AM, maderios <maderios@gmail.com> wrote:
>> > On 12/07/2016 07:26 PM, Martin T wrote:
>> >>
>> >> Hi,
>> >>
>> >> I read the apt_preferences man page and it says that "To configure the
>> >> default release in the configuration file, use: APT::Default-Release
>> >> "stable";". While I have multiple distributions in sources.list
>> >> file(stable, testing, unstable, jessie-backports), then I don't have
>> >> the "Default-Release" configured:
>> >>
>> >> # grep -R Default-Release /etc/apt/
>> >> #
>> >>
>> >> What is the default "Default-Release"? How is this determined?
>> >>
>> > Hi
>> > Look at your /etc/apt/apt.conf
>> >
>> > My apt.conf for testing:
>> >
>> > APT::Install-Recommends "false";
>> > APT::Install-Suggests "false";
>> > APT::Default-Release "testing";
>> >
>> > --
>> > Maderios
>> >
>>
>
> It's using all of them, in that case. Then, newest versions of packages
> supersede older ones. Net effect -- you get sid.
>
> Mark

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web