I'm trying to list all packages (and their respective repositories) from other sources than the main/restricted/universe/multiverse.
First I've typed that command to list those packages :
$ aptitude search -F '%p' '!?origin(Ubuntu) ( ?architecture(amd64) | ?architecture(all) ) ?installed' | head
albert
brave-browser
brave-keyring
browsh
cdda2wav
cdrecord
dockmanager
e2fsprogs-l10n
ffmbc
firefox-esr
But if I add '%e'
or '%E'
or '%O'
to the -F
argument, the aptitude
immediately returns ... nothing :
$ aptitude search -F '%p %O' '!?origin(Ubuntu) ( ?architecture(amd64) | ?architecture(all) ) ?installed' | head
$
Is this an aptitude bug ?
!( ?origin(ubuntu) | ?origin(debian) )
or( !?origin(ubuntu) !?origin(debian) )
(de Morgan's rule - NOT (a OR b) == (NOT a AND NOT b)?%e
/%E
fineapt-get changelog aptitude
on the 18.04 box), "Add format strings for Source (%E), Architecture (%e) and Origin (%O)" happened in 0.7.5-1 - so my guess is the version on your system is earlier and simply bails when passed a format specifier that it doesn't understand