Documentation
¶
Index ¶
- func NVRs() ([]string, error)
- func NVRsAtPath(path string) ([]string, error)
- func Names() ([]string, error)
- func NamesAtPath(path string) ([]string, error)
- type RPMHeader
- func (hdr RPMHeader) Arch() string
- func (hdr RPMHeader) License() string
- func (hdr RPMHeader) Name() string
- func (hdr RPMHeader) Release() string
- func (hdr RPMHeader) Sourcerpm() string
- func (hdr RPMHeader) Tag(tagname string) []string
- func (hdr RPMHeader) TagNames() []string
- func (hdr RPMHeader) Version() string
- type RPMTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NVRsAtPath ¶
NVRsAtPath returns the set unique name-version-release of packages installed at specified rootfs.
func Names ¶
Names returns the list of RPM packages installed, on the current host's rootfs.
This is _just_ the simple name, which with kernels and multiarch can have duplicates. If you need unique keys, use NVRs().
func NamesAtPath ¶
NamesAtPath returns the list of RPM packages installed at specified rootfs.
Types ¶
type RPMHeader ¶
RPMHeader is the root structure from rpmdb per package installed
func InfoAtPath ¶
InfoAtPath collects detailed information on the unique package name (or NVR) provided at the specified path.
Click to show internal directories.
Click to hide internal directories.