Web lists-archives.com

Re: apt pinning: find out from which system version is a package




On 29.04.2019 10:35, Jonas Smedegaard wrote:
Quoting Emanuel Berg (2019-04-29 05:30:30)
With apt pinning [1], in /etc/apt/preferences ,
I have learned that one can have certain packs
from another release than the rest of the
system, seemlessly (?) with apt-get and the
other tools, for example like this for
w3m-el-snapshot:

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

    Package: w3m-el-snapshot
    Pin: release a=testing
    Pin-Priority: 800

But is there a way to find out/confirm from
which release is a certain pack? I know about
'aptitude show' but save for the version, which
I suppose one could Google and compare (poor
man's solution IMO), it doesn't seem to say
what I can see.

Neither does 'dpkg -l'.

So is there a way to do this with shell
tool(s)?
Add file /etc/apt/apt.conf.d/99aptitude-list-suite-local
eith the following one-line content:

aptitude::UI::Package-Display-Format "%c%a%M%S %p %Z %t %v %V";

...and install and use aptitude in fullscreen mode (i.e. start it with 
no non-option arguments).

 - Jonas

You can check what branches have the package you want with "rmadison" command.
Example:
$ sudo apt install devscripts
$ rmadison linux-image-amd64
linux-image-amd64 | 3.16+63+deb8u2  | oldstable         | amd64, i386
linux-image-amd64 | 4.9+80+deb9u7   | stable            | amd64
linux-image-amd64 | 4.19+104~bpo9+1 | stretch-backports | amd64
linux-image-amd64 | 4.19+104        | testing           | amd64
linux-image-amd64 | 4.19+104        | unstable          | amd64


You can check what package will be installed with "apt-cache" command.
Example:
$ apt-cache policy linux-image-amd64
linux-image-amd64:
  Installed: 4.15+91~bpo9+1
  Candidate: 4.19+104~bpo9+1
  Version table:
     4.19+104~bpo9+1 100
        100 https://mirror.yandex.ru/debian stretch-backports/main amd64 Packages
 *** 4.15+91~bpo9+1 100
        100 /var/lib/dpkg/status
     4.9+80+deb9u7 500
        500 https://mirror.yandex.ru/debian stretch/main amd64 Packages
     4.9+80+deb9u6 500
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

-- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀