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


Groups > linux.debian.user > #175547

Re: default "Default-Release" for APT

From Martin T <m4rtntns@gmail.com>
Newsgroups linux.debian.user
Subject Re: default "Default-Release" for APT
Date 2016-12-08 12:00 +0100
Message-ID <sM4AF-57U-13@gated-at.bofh.it> (permalink)
References <sLP8B-3DP-27@gated-at.bofh.it> <sLSzv-5Ru-1@gated-at.bofh.it> <sLTFg-6FW-41@gated-at.bofh.it> <sM4AF-57U-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web