LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Closed Thread
  Search this Thread
Old 04-12-2021, 09:35 AM   #1
stoorky
Member
 
Registered: Sep 2015
Posts: 63

Rep: Reputation: Disabled
aptitude search with archive pattern - unexpected results


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 ?
 
Old 04-12-2021, 09:38 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
duplicate of https://www.linuxquestions.org/quest...ts-4175693558/
 
  


Closed Thread

Tags
aptitude, archive, debian, search, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vi search multiple pattern and remove only exact matching pattern amateurscripter Linux - Newbie 4 05-07-2018 01:19 PM
Search and replace Pattern preceeding another pattern nbkisnz Programming 3 05-13-2012 01:50 PM
[SOLVED] /bin/bash if statement pattern search, end of pattern special character? headhunter_unit23 Programming 3 04-29-2010 08:05 AM
Question on Aptitude search pattern Akhran Debian 1 02-11-2006 04:18 AM
Question on aptitude search pattern Akhran Linux - Newbie 4 02-10-2006 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration