rpm

package
v0.0.0-...-d27c0f0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checksum

type Checksum struct {
	Type     string `xml:"type,attr"`
	Pkgid    string `xml:"pkgid,attr"`
	Checksum string
}

Checksum checksum information

type Format

type Format struct {
	License   string     `xml:"license"`
	Vendor    string     `xml:"vendor"`
	Group     string     `xml:"group"`
	Buildhost string     `xml:"buildhost"`
	SourceRPM string     `xml:"sourcerpm"`
	Provides  []Provides `xml:"provides>entry"`
	Requires  []Provides `xml:"requires>entry"`
	File      string     `xml:"file"`
}

Format metadata information

type Location

type Location struct {
	Href string `xml:"href,attr"`
}

Location href

type Provides

type Provides struct {
	Name    string `xml:"name,attr"`
	Flags   string `xml:"flags,attr"`
	Epoch   int    `xml:"epoch,attr"`
	Version string `xml:"ver,attr"`
	Rel     int    `xml:"rel,attr"`
}

Provides files provided by the RPM

type RPM

type RPM struct {
	Name        string   `xml:"name"`
	Type        string   `xml:"type,attr"`
	Arch        string   `xml:"arch"`
	Version     Version  `xml:"version"`
	Checksum    Checksum `xml:"checksum"`
	Summary     string   `xml:"summary"`
	Description string   `xml:"description"`
	Packager    string   `xml:"packager"`
	URL         string   `xml:"url"`
	Size        Size     `xml:"size"`
	Location    Location `xml:"location"`
	Format      Format   `xml:"format"`
	Installed   bool
}

RPM package type

func (*RPM) Install

func (r *RPM) Install(baseurl string) error

Install installs the RPM to the system

func (*RPM) Uninstall

func (r *RPM) Uninstall() error

Uninstall uninstalls a package from the system

type Size

type Size struct {
	Package   int `xml:"package,attr"`
	Installed int `xml:"installed,attr"`
	Archive   int `xml:"archive,attr"`
}

Size size information

type Version

type Version struct {
	Epoch   int    `xml:"epoch,attr"`
	Version string `xml:"ver,attr"`
	Rel     int    `xml:"rel,attr"`
}

Version Version information

Jump to

Keyboard shortcuts

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