I'm trying to list and display some info about available security updates on Ubuntu server.
I would use the following command, where ?archive(security)
filters packages that contain security
in their archive, while %t
shows the archive:
aptitude search "?upgradable ?archive(security)" -F "%p %t %v %V" --disable-columns
I found this issue: in the output, there are packages pertaining to the updates
archive as well as to the security
archive. See the following excerpt:
xwayland xenial-updates
xwayland:i386 xenial-updates
xwayland-hwe-16.04 xenial-security,xenial-updates
xwayland-hwe-16.04:i386 xenial-security,xenial-updates
Am I making a mistake or missing some understanding of the command or the system?
Note:
As described in the search pattern reference, a search pattern consists of one or more conditions (“terms”), and packages match the pattern if they match all of its terms. Thus, ?upgradable ?archive(security)
is equivalent to ?and(?upgradable ?archive(security))
.