rpm

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package rpm contains utility functions (required by SUM) for managing RPM files.

Index

Constants

View Source
const Cmd = "/usr/bin/rpm"

Cmd is the path of the `rpm` command.

Variables

This section is empty.

Functions

func GetRPMPackageInfo

func GetRPMPackageInfo(rpmPath string) ([]byte, error)

GetRPMPackageInfo queries and retrieves RPM file info.

func Install

func Install(rpmPath string) error

Install the specified RPM file.

func IsInstalled

func IsInstalled(rpmName string) bool

IsInstalled tells whether RPM is installed on the system.

func ParseMetaData

func ParseMetaData(metaData string) map[string]string

ParseMetaData parses the RPM metadata

into key-value pair.

func Uninstall

func Uninstall(rpmName string) error

Uninstall erases/uninstalls the specified RPM from node.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL