debian

package module
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: GPL-3.0 Imports: 23 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AptInstall

func AptInstall(pkgname string) (*cmd.Status, error)

func AptInstallOrExit

func AptInstallOrExit(pkgname string) error

func AptRemove

func AptRemove(pkgname string) (*cmd.Status, error)

func AptRemoveOrExit

func AptRemoveOrExit(pkgname string) error

func AptUpdate

func AptUpdate() error
apt-get update \
                -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/wit.list \
                -o Dir::Etc::sourceparts=/dev/null \
                -o APT::Get::List-Cleanup=0

func AreRoot added in v0.0.5

func AreRoot() bool

returns true if you are the root user

func DebFilenameMatchesVersion added in v0.0.2

func DebFilenameMatchesVersion(debname string, ver string) bool

func GetKeyFromPackagePB added in v0.0.11

func GetKeyFromPackagePB(p *zoopb.Package, varname string) (string, string)

returns the standard .deb string from a package PB

func InitDaemon added in v0.0.2

func InitDaemon() *zoopb.Machine

func InitMachine added in v0.0.2

func InitMachine() *zoopb.Machine

func InitWitMirrors added in v0.0.2

func InitWitMirrors(m *zoopb.Machine) error

obviously a hack at this point read the package list file from mirrors.wit.com

func MakeControlFile added in v0.0.15

func MakeControlFile(pb *zoopb.Package) string

func MakePackagesFile added in v0.0.13

func MakePackagesFile(all *zoopb.Packages) string

make a list of the newest .deb files

func ParseDpkgOutputIntoPB added in v0.0.11

func ParseDpkgOutputIntoPB(pb *zoopb.Package, all string)

PARSES "dpkg -I <p.Filename>" panic() on anything missing or unknown

func RunDpkg added in v0.0.13

func RunDpkg(p *zoopb.Package, filename string) error

runs dpkg -I on a .deb and returns a PB of the information

func SetDebInfoString added in v0.0.8

func SetDebInfoString(pb proto.Message, varname string, varvalue string) error

func SetString added in v0.0.6

func SetString(pb proto.Message, varname string, varvalue string) (bool, error)

func UpdatePackages added in v0.0.2

func UpdatePackages(me *zoopb.Machine) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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