inspect_get_package_format


Description:

[ Version ( since = "1.7.5" ) ]
public string inspect_get_package_format (string root) throws Error

get package format used by the operating system

This function and inspect_get_package_management return the package format and package management tool used by the inspected operating system. For example for Fedora these functions would return rpm (package format), and yum or dnf (package management).

This returns the string unknown if we could not determine the package format *or* if the operating system does not have a real packaging system (eg. Windows).

Possible strings include: rpm, deb, ebuild, pisi, pacman, pkgsrc, apk, xbps. Future versions of libguestfs may return other strings.

Please read "INSPECTION" in guestfs(3) for more details.

Parameters:

this

A GuestfsSession object

Returns:

the returned string, or NULL on error