Hello.
In yum shell, command "search abc xyz" will return packages containing "abc" OR "xyz".
How to search packages containing "abc" AND "xyz" ?
Thanks.
How to search multiple keywords in yum shell?
Re: How to search multiple keywords in yum shell?
I don't believe that's possible.
What you can do is pipe the output to grep, but it's not the same:
[code]yum search abc | grep xyz[/code]
or use list with wildcards if you know package names:
[code]yum list *gnome*devel*[/code]
will find all packages with gnome followed by devel in the name. Again, it's not the same as an AND operator as it won't find "devel" followed by "gnome", and it's only operating on package names.
What you can do is pipe the output to grep, but it's not the same:
[code]yum search abc | grep xyz[/code]
or use list with wildcards if you know package names:
[code]yum list *gnome*devel*[/code]
will find all packages with gnome followed by devel in the name. Again, it's not the same as an AND operator as it won't find "devel" followed by "gnome", and it's only operating on package names.