With yum it was simple: yum list *xxx*
but this does not work with apt-get
.
How can I do a search like this?
Also, how do I see what package provides a specific command?
aptdebianUbuntu
With yum it was simple: yum list *xxx*
but this does not work with apt-get
.
How can I do a search like this?
Also, how do I see what package provides a specific command?
Best Answer
If you wish to search a specific string only in package names, you can do:
This will return anything that contains 'xxx' in their package name.
You can also use regular expressions:
This will return any package with their name ending in php5.
Regular expressions can also be used without the --names-only. See apt-cache(8) man page.