dpkg

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Type string = "deb"

Variables

View Source
var Manifests = []string{"var/lib/dpkg/status"}

Functions

func CheckRelatedFile

func CheckRelatedFile(file string) (string, bool, bool)

func Scan

func Scan(data interface{}) interface{}

Types

type Conffile added in v1.13.0

type Conffile struct {
	Path string
	Hash string
}

type Package added in v1.13.0

type Package struct {
	Name         string `mapstructure:"Package"`
	Status       string
	Priority     string
	Section      string
	Size         string `mapstructure:"Installed-Size"`
	Maintainer   string
	Architecture string
	MultiArch    string `mapstructure:"Multi-Arch"`
	Source       string
	Version      string
	Origin       string
	Replaces     []string
	Provides     []string
	Breaks       []string
	Depends      [][]string
	Suggests     [][]string
	PreDepends   [][]string `mapstructure:"Pre-Depends"`
	Conffiles    []Conffile
	Recommends   []string
	Description  string
	Homepage     string
}

func ParseDpkgDatabase added in v1.13.0

func ParseDpkgDatabase(dpkgDbContent string) ([]Package, error)

Jump to

Keyboard shortcuts

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