summaryrefslogtreecommitdiffstats
path: root/recipes/rpmqa.html
blob: d5a36768be1b6436bec34e00a3bf2d8143ffed02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<p>
The command lists the RPMs installed inside a Fedora / RHEL / CentOS
or other RPM-based virtual machine.  It does this by running the
<code>rpm -qa</code> command directly inside the machine.
</p>

<p>
To use it you need to know the partition or LV <i>inside</i> the
VM that contains the root filesystem, so for example:
</p>

<pre>
rpmqa.sh guest.img /dev/VolGroup00/LogVol00 | less
</pre>

<p>
You can write a similar command for Debian-based virtual machines
very easily.
</p>