← Back to projects
LINUX BOOTSTRAP preview
Open SourceActive Development

LINUX BOOTSTRAP

Cross-distro post-install automation

GoCLILinuxAPTDNF

After a fresh Linux install, there's always a repetitive checklist: install codecs, set up GPU drivers, configure packages. Every distro does it differently. Linux Bootstrap automates that — a cross-distro CLI written entirely in Go.

What It Does

  • Auto-detects distribution, version, and package manager
  • Abstracts package managers behind a Go interface with initial APT, DNF, and pacman implementations
  • Runs safe command execution with a dry-run mode and user confirmation before any system change
  • Handles multimedia codec installation, NVIDIA driver setup, and post-install verification
  • No GUI — designed as a clean, scriptable CLI tool

Package Manager Abstraction

Each package manager implements the same Go interface, so the core logic doesn't care whether it's on Ubuntu, Fedora, or Arch:

type PackageManager interface {
    Name() string
    Install(pkgs ...string) error
    Update() error
    Upgrade() error
    IsInstalled(pkg string) (bool, error)
    Detect() bool
}

Usage

# Dry-run first — shows what would happen, changes nothing
linux-bootstrap --dry-run

# Interactive install with confirmations
linux-bootstrap

# Non-interactive (for scripting)
linux-bootstrap --yes --profile=desktop

Tech Stack

  • Language: Go (100% — no shell scripts)
  • Target: Any Linux distro (Debian, Fedora, Arch families)
  • Package Managers: APT, DNF, pacman (extensible)
  • Distribution: Single static binary — no runtime deps

Key Features

  • Distro and package-manager auto-detection
  • Dry-run mode for safe previews
  • Explicit user confirmation before any system change
  • Multimedia codec installation
  • NVIDIA driver setup
  • Post-install verification

What I Learned

Designing a clean abstraction over fundamentally different package managers taught me a lot about interface design in Go. Building a tool that modifies a user's system also forced me to think seriously about safety — hence the dry-run mode and explicit confirmations.