Awesome! Thanks, I thought 'section' would have been something like libs vs oldlibs in Debian, so I didn't even try it. Sorry.
apt list '?installed?section(^universe/)' -- seems to work as I wanted. Thanks -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/2008141 Title: apt pattern to list packages from universe Status in apt package in Ubuntu: Triaged Bug description: Hello, a friend would like to remove all universe packages from their system but I do not know an easy way to discover which installed packages came from universe. I expected one of these two apt patterns to work: ?archive(REGEX), ~AREGEX Selects versions that come from the archive that matches the specified regular expression. Archive, here, means the values after a= in apt-cache policy. ?origin(REGEX), ~OREGEX Selects versions that come from the origin that matches the specified regular expression. Origin, here, means the values after o= in apt-cache policy. However, a quick check of my own system's apt-cache policy output shows the a= and o= values aren't helpful for determining universe from main: $ apt-cache policy | grep -A1 universe 500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=universe,b=amd64 origin security.ubuntu.com -- 400 http://192.168.0.27/ubuntu focal-proposed/universe amd64 Packages release v=20.04,o=Ubuntu,a=focal-proposed,n=focal,l=Ubuntu,c=universe,b=amd64 origin 192.168.0.27 -- 500 http://192.168.0.27/ubuntu focal-updates/universe amd64 Packages release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=universe,b=amd64 origin 192.168.0.27 -- 500 http://192.168.0.27/ubuntu focal/universe amd64 Packages release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=universe,b=amd64 origin 192.168.0.27 Are there apt patterns that can select the c=universe state? Thanks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2008141/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp