[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On Fri, May 03, 2019 at 03:30:13AM +0200, Emanuel Berg wrote:
> Optimally I'd like it like this:
> 
>     $ from-what-release w3m-el-snapshot
>     testing

The problem here is the packaging system does not KNOW from which source
a package came, after it is installed.

The best you can do is try to guess.

If the installed version of the package happens to match up with one of
the CURRENT package lists, then you could report that.

Otherwise, if the version string contains "+deb9u" then it probably came
from a stretch security update.  Likewise, if it contains "+deb8u" then
it probably came from a jessie security update.  And so on.

If none of those things happens to be true, then there's really no way
to know.


Reply to: