Stop manually updating GitHub .deb packages: I built a lightweight Bash tool
说明与用途
debup 是一个 Bash 脚本,自动从 GitHub Releases 下载并安装 .deb 包,消除手动步骤并自动解决依赖。
问题
Updating Debian/Ubuntu/Mint packages published as GitHub Release .deb assets is tedious and error‑prone.
结果
debup reduces manual steps to a single command, ensures correct architecture, handles dependency resolution automatically, and cleans up temporary files, providing an Obtainium‑like experience without extra runtimes.
工作流
- 1. Run
debup add <owner>/<repo>to add and install the latest release. - 2. debup queries GitHub Releases API for the latest asset matching the system architecture.
- 3. It compares local and remote package versions using dpkg --compare-versions.
- 4. If newer, it downloads the .deb to /tmp and installs with
apt-get install -y ./package.debto resolve dependencies. - 5. On success or interruption, debup removes the temporary .deb file.
证据
debup add fastfetch-cli/fastfetch
debup invokes apt-get install -y ./package.deb
dpkg --compare-versions "${local_ver}" ge "${remote_ver}"
- 记录日期: 2026-09-21T08:45:23.999Z