Skip to main content
added 273 characters in body
Source Link
Stephen Kitt
  • 483.6k
  • 60
  • 1.2k
  • 1.4k

aptitude supports searching among all packages known to the package management tools, installed or otherwise, using regular expressions, without extraneous output, and can be told how to format its output:

aptitude search "linux-image-.*"

To list only installed packages:

aptitude search "linux-image-.* ~i"

To list only installed package names matching the regular expression:

aptitude search "linux-image-.* ~i" -F "%p"

The documentation covers the available search patterns and output format specifiers in detail. You’ll also find examples on this site, for example is there a way to use regexp with aptitude?, regexp with aptitude part 2, and Linux - display or upgrade security updates only using apt.

aptitude supports searching among all packages known to the package management tools, installed or otherwise, using regular expressions, without extraneous output:

aptitude search "linux-image-.*"

To list only installed packages:

aptitude search "linux-image-.* ~i"

The documentation covers the available search patterns in detail. You’ll also find examples on this site, for example is there a way to use regexp with aptitude?, regexp with aptitude part 2, and Linux - display or upgrade security updates only using apt.

aptitude supports searching among all packages known to the package management tools, installed or otherwise, using regular expressions, without extraneous output, and can be told how to format its output:

aptitude search "linux-image-.*"

To list only installed packages:

aptitude search "linux-image-.* ~i"

To list only installed package names matching the regular expression:

aptitude search "linux-image-.* ~i" -F "%p"

The documentation covers the available search patterns and output format specifiers in detail. You’ll also find examples on this site, for example is there a way to use regexp with aptitude?, regexp with aptitude part 2, and Linux - display or upgrade security updates only using apt.

Source Link
Stephen Kitt
  • 483.6k
  • 60
  • 1.2k
  • 1.4k

aptitude supports searching among all packages known to the package management tools, installed or otherwise, using regular expressions, without extraneous output:

aptitude search "linux-image-.*"

To list only installed packages:

aptitude search "linux-image-.* ~i"

The documentation covers the available search patterns in detail. You’ll also find examples on this site, for example is there a way to use regexp with aptitude?, regexp with aptitude part 2, and Linux - display or upgrade security updates only using apt.