0
yum list installed kernel\*

I don't understand how this would differ from "kernel*", or why the backslash is necessary.

2
  • Hm. Not too sure then. Normally \* would mean you search for a literal asterisk and not the wildcard.
    – slhck
    Commented Jun 4, 2011 at 11:46
  • Seems like kernel* and "kernel*" give the same results. Perhaps yum passes this parameter to something else, so the * needs to be escaped first.
    – Rave
    Commented Jun 4, 2011 at 11:54

1 Answer 1

3

My guess: to prevent shell glob expansion in case you execute the command in a directory containing some file beginning with "kernel".

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .