2012-08-13 21:39:00 +02:00
|
|
|
.. _yum:
|
|
|
|
|
|
|
|
yum
|
2012-10-04 02:58:27 +02:00
|
|
|
``````````````````````````````
|
2012-08-13 21:39:00 +02:00
|
|
|
|
|
|
|
|
2012-10-04 02:58:27 +02:00
|
|
|
Will install, upgrade, remove, and list packages with the *yum* package manager.
|
2012-08-13 21:39:00 +02:00
|
|
|
|
2012-10-04 02:58:27 +02:00
|
|
|
.. raw:: html
|
2012-08-13 21:39:00 +02:00
|
|
|
|
2012-10-04 02:58:27 +02:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th class="head">parameter</th>
|
|
|
|
<th class="head">required</th>
|
|
|
|
<th class="head">default</th>
|
|
|
|
<th class="head">choices</th>
|
|
|
|
<th class="head">comments</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>state</td>
|
|
|
|
<td>no</td>
|
|
|
|
<td>present</td>
|
|
|
|
<td><ul><li>present</li><li>latest</li><li>absent</li></ul></td>
|
|
|
|
<td>whether to install (<code>present</code>, <code>latest</code>), or remove (<code>absent</code>) a package.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>list</td>
|
|
|
|
<td>no</td>
|
|
|
|
<td></td>
|
|
|
|
<td><ul></ul></td>
|
|
|
|
<td>various non-idempotent commands for usage with <code>/usr/bin/ansible</code> and <em>not</em> playbooks. See examples.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>name</td>
|
|
|
|
<td>yes</td>
|
|
|
|
<td></td>
|
|
|
|
<td><ul></ul></td>
|
|
|
|
<td>package name, or package specifier with version, like <code>name-1.0</code>.</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<p><pre>
|
2012-08-13 21:39:00 +02:00
|
|
|
yum name=httpd state=latest
|
2012-10-04 02:58:27 +02:00
|
|
|
</pre></p>
|
|
|
|
<p><pre>
|
2012-08-13 21:39:00 +02:00
|
|
|
yum name=httpd state=removed
|
2012-10-04 02:58:27 +02:00
|
|
|
</pre></p>
|
|
|
|
<p><pre>
|
2012-08-13 21:39:00 +02:00
|
|
|
yum name=httpd state=installed
|
2012-10-04 02:58:27 +02:00
|
|
|
</pre></p>
|
|
|
|
<br/>
|
|
|
|
|