Universal Linux Package Builder
A Go-based tool that converts binary executables into distributable Linux packages (.deb, .rpm, tar.gz). Automates native package creation for CI/CD pipelines with minimal configuration.
Build .deb, .rpm, and tar.gz packages from single binary
Integrate seamlessly with GitHub Actions, GitLab CI, Jenkins
Simple YAML configuration for complex package builds
Build packages for different Linux distributions
# Install using Go
go install github.com/nexoral/xpack@latest
# Or download from releases
wget https://github.com/nexoral/xpack/releases/latest/download/xpack-linux-amd64
chmod +x xpack-linux-amd64
sudo mv xpack-linux-amd64 /usr/local/bin/xpack# Create xpack.yaml configuration
cat > xpack.yaml << EOF
name: myapp
version: 1.0.0
arch: amd64
maintainer: you@example.com
description: My awesome application
binary: ./build/myapp
install_path: /usr/bin
EOF
# Build all package formats
xpack build --all
# Build specific format
xpack build --deb
xpack build --rpm
# Output packages
ls dist/
# myapp_1.0.0_amd64.deb
# myapp-1.0.0-1.x86_64.rpm
# myapp-1.0.0-linux-amd64.tar.gz