summaryrefslogtreecommitdiffstats
path: root/recipes/rpmqa.html
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-26 06:48:31 +0100
committerRichard Jones <rjones@redhat.com>2009-04-26 06:48:31 +0100
commit0583c8c2c3500715fe5757d2e2fcb0fdc019c2ae (patch)
tree23edd9099e1b4192d54bb40558726f0277d5761a /recipes/rpmqa.html
parent027897d4ddaf886a309a032b488f64512d2dc873 (diff)
downloadlibguestfs-0583c8c2c3500715fe5757d2e2fcb0fdc019c2ae.tar.gz
libguestfs-0583c8c2c3500715fe5757d2e2fcb0fdc019c2ae.tar.xz
libguestfs-0583c8c2c3500715fe5757d2e2fcb0fdc019c2ae.zip
Added rpmqa example.
Diffstat (limited to 'recipes/rpmqa.html')
-rw-r--r--recipes/rpmqa.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/rpmqa.html b/recipes/rpmqa.html
new file mode 100644
index 00000000..d5a36768
--- /dev/null
+++ b/recipes/rpmqa.html
@@ -0,0 +1,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>