virt-resize: Document guest boot stops at "GRUB" (RHBZ#640961).
[libguestfs.git] / recipes / rpmqa.html
1 <p>
2 The command lists the RPMs installed inside a Fedora / RHEL / CentOS
3 or other RPM-based virtual machine.  It does this by running the
4 <code>rpm -qa</code> command directly inside the machine.
5 </p>
6
7 <p>
8 To use it you need to know the partition or LV <i>inside</i> the
9 VM that contains the root filesystem, so for example:
10 </p>
11
12 <pre>
13 rpmqa.sh guest.img /dev/VolGroup00/LogVol00 | less
14 </pre>
15
16 <p>
17 You can write a similar command for Debian-based virtual machines
18 very easily.
19 </p>