[Aptitude-devel] Bug#929102: "show" command doesn't reveal apt-mark effects
Sven Joachim
svenjoac at gmx.de
Wed Oct 2 18:57:17 BST 2019
Control: tags -1 moreinfo
On 2019-05-17 14:54 +0800, 積丹尼 Dan Jacobson wrote:
> Package: aptitude
> Version: 0.8.11-7
>
> Even though using apt-mark affects aptitude's decision making, but there
> is no way to detect it via the "show" command.
>
> # aptitude show gcc-9-base|sum
> 11672 1
> # apt-mark hold gcc-9-base
> gcc-9-base set on hold.
> # aptitude show gcc-9-base|sum
> 11672 1
> # aptitude -vvvv show gcc-9-base|sum
> 11672 1
Is the package gcc-9-base actually installed? If yes, I cannot
reproduce this:
,----
| # aptitude show gcc-9-base | grep ^State
| State: installed
| # apt-mark hold gcc-9-base
| gcc-9-base set on hold.
| # aptitude show gcc-9-base | grep ^State
| State: installed [held]
`----
For packages which are not installed I can reproduce the behavior, but
in that case it is actually apt-mark which is lying to you because it
does not write anything to /var/lib/apt/extended_states.
Cheers,
Sven
More information about the Aptitude-devel
mailing list