title: how to remove packages from yum list result?
body: <p>probably a quick question for experts. on linux(Centso)</p>
  
  <p>I did something like</p>
  
  <pre><code>$ yum list | grep cdh 
  </code></pre>
  
  <p>which returns a bunch of items(I was search to remove cloudera packages)</p>
  
  <p>I know that I can remove them by</p>
  
  <pre><code>$ yum remove ...
  </code></pre>
  
  <p>but certainly like to do it in one command. Is there a way to do so? many thanks</p>
  
  <p>currently. I manually output the list result to a text file, and then copy/paste the names into yum remove. there must be a better way. thanks</p>