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 (
apt
ornala
) - Update Flatpak applications
- Choose to update system packages, Flatpak, or both
- Uses
doas
if available, otherwisesudo
Requirements
- Crystal programming language installed (for building from source)
- Debian-based Linux (Ubuntu, Debian, etc.)
- Optional:
doas
orsudo
- Optional:
nala
package manager - Flatpak installed (if updating Flatpak apps)
Installation
Option 1: Use the Precompiled Binary
-
Download the
pkgup
binary 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.cr
file. -
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
- about 1 month ago
- June 22, 2025
License
MIT License
Links
Synced at
Sat, 26 Jul 2025 22:32:34 GMT
Languages