Article 5GFTK aptitude search with archive pattern - unexpected results

aptitude search with archive pattern - unexpected results

by
stoorky
from LinuxQuestions.org on (#5GFTK)
Hi,

I just did some tests with "$ aptitude search", and I'm puzzled by the results.

First I tried to get all installed packages having "Debian" as origin, and "unstable" as archive :

Code:$ aptitude search "?narrow(?installed,?and(?origin(^Debian$),?archive(^unstable$)))"
i apt-mirror - APT sources mirroring tool
i A cups-pk-helper - PolicyKit helper to configure cups with fine-grained privileges
(...)
i wmctrl - control an EWMH/NetWM compatible X Window Manager
i A youtube-dl - downloader of videos from web page.Why not...

Then I tried to get all installed packages having "Debian" as origin, and not "stable" as archive :
Code:$ aptitude search "?narrow(?installed,?and(?origin(^Debian$),?not(?archive(^stable$))))"
i A amd64-microcode - Processor microcode firmware for AMD CPUs
i bluez-firmware - Firmware for Bluetooth devices
(...)
i A update-glx - utility for switching the GLX implementation
i A youtube-dl - downloader of videos from web page.I expected the results of the first command to be a subset of the results of the second command (packages from archive "unstable" should be a subset of the packages of all archives except "stable"). But it's not the case, and incidentally the first set of results is much larger than the second.

Am I missing something ?latest?d=yIl2AUoC8zA latest?i=M_TqQJo3meM:cNYdrD8gXiw:F7zBnMy latest?i=M_TqQJo3meM:cNYdrD8gXiw:V_sGLiP latest?d=qj6IDK7rITs latest?i=M_TqQJo3meM:cNYdrD8gXiw:gIN9vFwM_TqQJo3meM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments