# README
packer
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.

Operation Systems | Package Managers |
---|---|
Ubuntu | apk |
Debian | apt |
MXLinux | brew |
Mint | dnf |
Kali | flatpak |
ParrotOS | snap |
OpenSUSE | pacman / zypper |
CentOS | paru / yum |
Oracle | yay |
Arch | pacman / zypper |
Manjaro | pacman |
Alpine | apk |
Fedora | yum |
RHEL | yum / dnf |
OpenWrt | opkg |
MacOS | brew |
Windows | choco / scoop / winget |
Download
You can simply run go get github.com/makifdb/packer
to start using in your own code.
Examples
- Check package installation
func main() {
p:= packer.Check("curl")
fmt.Println(p)
}
// output: true
- Install package
func main() {
packer.Install("curl")
}
- Remove package
func main() {
packer.Remove("curl")
}
- Update system
func main() {
packer.Update()
}
- Detect Package Manager
func main() {
mngr, _ := DetectManager()
fmt.Println(mngr.Name)
}
// output: yay
- 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