X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=recipes%2Frpmqa.html;fp=recipes%2Frpmqa.html;h=d5a36768be1b6436bec34e00a3bf2d8143ffed02;hp=0000000000000000000000000000000000000000;hb=0583c8c2c3500715fe5757d2e2fcb0fdc019c2ae;hpb=027897d4ddaf886a309a032b488f64512d2dc873 diff --git a/recipes/rpmqa.html b/recipes/rpmqa.html new file mode 100644 index 0000000..d5a3676 --- /dev/null +++ b/recipes/rpmqa.html @@ -0,0 +1,19 @@ +

+The command lists the RPMs installed inside a Fedora / RHEL / CentOS +or other RPM-based virtual machine. It does this by running the +rpm -qa command directly inside the machine. +

+ +

+To use it you need to know the partition or LV inside the +VM that contains the root filesystem, so for example: +

+ +
+rpmqa.sh guest.img /dev/VolGroup00/LogVol00 | less
+
+ +

+You can write a similar command for Debian-based virtual machines +very easily. +