Categorygithub.com/admpub/packer
modulepackage
0.0.3
Repository: https://github.com/admpub/packer.git
Documentation: pkg.go.dev

# README

packer

Go Report Card GitHub go.mod Go version License: Apache-2.0

Packer is a simple system package management tool for Go. Packer, helps you detect the system package manager and automate install your package or dependencies inside Go.

icon
Operation SystemsPackage Managers
Ubuntuapk
Debianapt
MXLinuxbrew
Mintdnf
Kaliflatpak
ParrotOSsnap
OpenSUSEpacman / zypper
CentOSparu / yum
Oracleyay
Archpacman / zypper
Manjaropacman
Alpineapk
Fedorayum
RHELyum / dnf
OpenWrtopkg
MacOSbrew
Windowschoco / scoop / winget

Download

You can simply run go get github.com/makifdb/packer to start using in your own code.

Examples

  1. Check package installation
func main() {
	p:= packer.Check("curl")
	fmt.Println(p)
}
// output: true
  1. Install package
func main() {
	packer.Install("curl")
}
  1. Remove package
func main() {
	packer.Remove("curl")
}
  1. Update system
func main() {	
	packer.Update()
}
  1. Detect Package Manager
func main() {	
	mngr, _ := DetectManager()
	fmt.Println(mngr.Name)
}
// output: yay

  1. Run a Custom Command
func main() {	
	packer.Command("uname -a")
}

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author