pkgup v0.1.0
PkgUp
A simple Crystal CLI tool to update system packages and Flatpak apps on Debian-based GNU/Linux systems.
Automatically detects whether to use doas or sudo for privilege escalation, and prefers nala if installed, falling back to apt.
Features
- Update system packages (
aptornala) - Update Flatpak applications
- Choose to update system packages, Flatpak, or both
- Uses
doasif available, otherwisesudo
Requirements
- Crystal programming language installed (for building from source)
- Debian-based Linux (Ubuntu, Debian, etc.)
- Optional:
doasorsudo - Optional:
nalapackage manager - Flatpak installed (if updating Flatpak apps)
Installation
Option 1: Use the Precompiled Binary
-
Download the
pkgupbinary from the Releases section. -
Move it to a directory in your
PATH(e.g.,/usr/local/bin):sudo mv pkgup /usr/local/bin/ sudo chmod +x /usr/local/bin/pkgup
Option 2: Build from Source
-
Clone this repository or download the
pkgup.crfile. -
Compile the program:
crystal build pkgup.cr --release -o pkgup -
(Optional) Move the compiled binary to your
PATH:sudo mv pkgup /usr/local/bin/
Usage
Run the program:
./pkgup
You will be prompted to select which updates to perform:
Would you like to update [sys]pkgs, [flatpak]pkgs, or [both]:
Enter one of:
sys— update system packages onlyflatpak— update Flatpak applications onlyboth— update both system packages and Flatpak apps
Example
$ ./pkgup
Would you like to update [sys]pkgs, [flatpak]pkgs, or [both]: sys
Updating System Programs...
System update complete!
License
MIT License
Created with Crystal 💎 by roguehashrate
Repository
pkgup
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- 4 months ago
- June 22, 2025
License
MIT License
Links
Synced at
Sat, 01 Nov 2025 05:06:18 GMT
Languages