rpm

package
v0.0.0-...-8ac10f7 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrExecEmptyOutput failed to generate any output
	ErrExecEmptyOutput = errors.New("Failed to generate any output")
)

Functions

This section is empty.

Types

type Rpm

type Rpm struct {
	// contains filtered or unexported fields
}

Rpm implementation for the Rpm package manager

func NewRpm

func NewRpm() *Rpm

NewRpm generates a Rpm object

func (*Rpm) GetInstalledVersion

func (rpm *Rpm) GetInstalledVersion(packageName string, parseVersion bool) (string, error)

GetInstalledVersion returns the version of the installed package

func (*Rpm) IsInstalled

func (rpm *Rpm) IsInstalled(packageName string) error

IsInstalled returns if the package is installed

Jump to

Keyboard shortcuts

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