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 ?


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 ?