feat: release v2.0.0 with tab completion, package filtering, db health checks, flatpak and logrotate
Build and Publish Release / Build Packages and Publish (push) Successful in 27s
Build and Publish Release / Build Packages and Publish (push) Successful in 27s
This commit is contained in:
1 parent
8d4157b42d
commit
8bec4ed932
27 files changed
+1053
-69
No files matched your search
+44
-6
@@ -1,4 +1,4 @@
|
||||
.TH LINUX-UPDATER 8 "October 2026" "linux-updater 1.3.0" "System Administration Utilities"
|
||||
.TH LINUX-UPDATER 8 "October 2026" "linux-updater 2.0.0" "System Administration Utilities"
|
||||
.SH NAME
|
||||
linux-updater \- unified, safe multi-distribution Linux system update utility
|
||||
|
||||
@@ -24,20 +24,22 @@ Free disk space verification on \fB/boot\fR (min 250MB), \fB/var\fR (min 1GB), a
|
||||
.IP \(bu 2
|
||||
Package manager lock detection and advisory locking inspections (\fBfcntl.flock\fR).
|
||||
.IP \(bu 2
|
||||
Package database consistency inspection and safe remediation of interrupted transactions (\fBdpkg \-\-configure \-a\fR, \fBapt\-get install \-f\fR, \fBdnf clean all\fR).
|
||||
.IP \(bu 2
|
||||
Memory availability and low-RAM/OOM risk detection via \fB/proc/meminfo\fR.
|
||||
.IP \(bu 2
|
||||
AC power status detection on portable systems via \fB/sys/class/power_supply\fR.
|
||||
.IP \(bu 2
|
||||
Pending reboot detection from previously installed kernels or libraries.
|
||||
|
||||
If low disk space on \fB/var\fR is detected, \fBlinux-updater\fR safely purges cached packages. If an abandoned lock file is identified whose holder process is confirmed dead, it removes the stale lock.
|
||||
If low disk space on \fB/var\fR is detected, \fBlinux-updater\fR safely purges cached packages. If an abandoned lock file is identified whose holder process is confirmed dead, it removes the stale lock. If an interrupted package installation transaction is detected, it executes automated repair.
|
||||
|
||||
.SH COMMANDS
|
||||
.TP
|
||||
.B update \fR[\fB\-\-packages \fIPKG...\fR]
|
||||
Runs pre-flight diagnostics, cleans caches if needed, checks for available updates, prompts for user confirmation (unless \fB\-y\fR is provided), applies routine package upgrades, and reports reboot status. When \fB\-\-packages\fR is specified, updates only the named packages.
|
||||
.B update \fR[\fB\-\-packages \fIPKG...\fR] [\fB\-\-exclude \fIPATTERN...\fR] [\fB\-\-security\fR] [\fB\-\-flatpak\fR]
|
||||
Runs pre-flight diagnostics, auto-remediates safe issues, checks for available updates, prompts for user confirmation (unless \fB\-y\fR is provided), applies routine package upgrades, and reports reboot status. When \fB\-\-packages\fR is specified, updates only the named packages. When \fB\-\-exclude\fR is specified, skips packages matching the names or glob patterns. When \fB\-\-security\fR is specified, installs only security updates. When \fB\-\-flatpak\fR is specified, updates Flatpak applications after OS packages.
|
||||
.TP
|
||||
.B check
|
||||
.B check \fR[\fB\-\-exclude \fIPATTERN...\fR] [\fB\-\-security\fR]
|
||||
Non-destructively inspects pre-flight health diagnostics and lists all pending package upgrades without modifying system state.
|
||||
.TP
|
||||
.B release\-upgrade \fR[\fB\-t \fITARGET\fR|\fB\-\-target\-release \fITARGET\fR|\fB\-\-releasever \fITARGET\fR]
|
||||
@@ -48,6 +50,9 @@ Cleans the local package cache. When \fB\-\-all\fR is given, also removes unused
|
||||
.TP
|
||||
.B health
|
||||
Runs pre-flight system diagnostics and prints a formatted health report (or JSON with \fB\-\-json\fR) without performing updates.
|
||||
.TP
|
||||
.B completion \fR[\fBbash\fR|\fBzsh\fR]
|
||||
Outputs shell tab completion script to stdout for evaluation or installation into shell profiles.
|
||||
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
@@ -63,8 +68,17 @@ Simulates update operations without altering package states on disk.
|
||||
.B \-\-reboot
|
||||
Automatically reboots the system after a major release upgrade or routine update (if a reboot is required). On Fedora release upgrades, automatically executes offline transaction reboot (\fBdnf5 \-y offline reboot\fR). In interactive mode when this option is omitted, the user is prompted to confirm immediate reboot.
|
||||
.TP
|
||||
.BR \-\-exclude " \fIPATTERN...\fR"
|
||||
Exclude package(s) or glob patterns (e.g. 'kernel*', 'nginx') from update operations.
|
||||
.TP
|
||||
.B \-\-security
|
||||
Restrict update operations strictly to security patches and vulnerability advisories. Supported on RHEL, Fedora, CentOS, Rocky, AlmaLinux, Debian, and Ubuntu.
|
||||
.TP
|
||||
.B \-\-flatpak
|
||||
Execute Flatpak application updates (\fBflatpak update \-y\fR) after OS package manager operations complete.
|
||||
.TP
|
||||
.B \-\-no\-remediation
|
||||
Disables automated remediation actions (such as clearing package caches or unlinking stale locks).
|
||||
Disables automated remediation actions (such as clearing package caches, unlinking stale locks, or repairing interrupted transactions).
|
||||
.TP
|
||||
.B \-\-skip\-preflight
|
||||
Bypasses all pre-flight health diagnostics.
|
||||
@@ -86,11 +100,20 @@ Displays the command-line help summary.
|
||||
.I /etc/linux-updater.json
|
||||
System configuration file containing disk thresholds, behavior switches, and logging directory settings.
|
||||
.TP
|
||||
.I /etc/logrotate.d/linux-updater
|
||||
Logrotate policy rotating updater logs weekly, keeping 4 archives compressed with 0640 permissions.
|
||||
.TP
|
||||
.I /var/log/linux-updater/
|
||||
Standard directory for execution logs conforming to Linux FHS. Each execution creates a timestamped file \fIlinux-updater-YYYYMMDD-HHMMSS.log\fR.
|
||||
.TP
|
||||
.I /var/log/linux-updater/latest.log
|
||||
Atomic symbolic link pointing to the most recent execution log file.
|
||||
.TP
|
||||
.I /usr/share/bash-completion/completions/linux-updater
|
||||
Static Bash command and argument autocompletion definition.
|
||||
.TP
|
||||
.I /usr/share/zsh/site-functions/_linux-updater
|
||||
Static Zsh command and argument autocompletion definition.
|
||||
|
||||
.SH EXIT STATUS
|
||||
.TP
|
||||
@@ -123,6 +146,16 @@ Apply routine updates non-interactively:
|
||||
.B linux-updater \-y update
|
||||
.RE
|
||||
.PP
|
||||
Apply security updates only:
|
||||
.RS
|
||||
.B linux-updater \-y update \-\-security
|
||||
.RE
|
||||
.PP
|
||||
Apply updates excluding kernel packages:
|
||||
.RS
|
||||
.B linux-updater \-y update \-\-exclude "kernel*"
|
||||
.RE
|
||||
.PP
|
||||
Selectively update only the openssl and nginx packages:
|
||||
.RS
|
||||
.B linux-updater \-y update \-\-packages openssl nginx
|
||||
@@ -132,6 +165,11 @@ Simulate major distribution upgrade to target version:
|
||||
.RS
|
||||
.B linux-updater release\-upgrade \-\-dry\-run \-t 41
|
||||
.RE
|
||||
.PP
|
||||
Install shell completions for Bash:
|
||||
.RS
|
||||
.B eval "$(linux-updater completion bash)"
|
||||
.RE
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR apt-get (8),
|
||||
|
||||
Reference in new issue
Block a user