chore(release): bump version to 1.2.0, update CLI help examples and documentation

This commit is contained in:
soda64 committed 2026-10-02 19:34:36 +02:00
1 parent 74b0976d2f
commit ab50abe0c0
9 files changed
+76 -35

No files matched your search

+20 -13
View File
@@ -49,7 +49,7 @@
python3 packaging/build_packages.py
# Install generated deb:
sudo dpkg -i dist/linux-updater_1.1.0_all.deb
sudo dpkg -i dist/linux-updater_1.2.0_all.deb
```
### Option 2: Native `.rpm` Package (RHEL / Fedora / AlmaLinux / Rocky)
@@ -63,8 +63,8 @@ sudo rpm -Uvh dist/rpm/RPMS/noarch/linux-updater-*.noarch.rpm
### Option 3: Standalone Tarball (All Linux Distributions)
```bash
tar -xzf dist/linux-updater-1.1.0.tar.gz
cd linux-updater-1.1.0
tar -xzf dist/linux-updater-1.2.0.tar.gz
cd linux-updater-1.2.0
sudo ./install.sh
```
@@ -85,19 +85,25 @@ linux-updater check
# 4. Simulate a routine system update (dry run):
linux-updater update --dry-run
# 5. Apply routine updates interactively (with confirmation prompt):
# 5. Apply routine updates interactively (prompts for reboot if required):
sudo linux-updater update
# 6. Apply updates non-interactively (e.g. from cron or Ansible):
sudo linux-updater -y update
# 6. Apply updates non-interactively with automated reboot:
sudo linux-updater update -y --reboot
# 7. Selectively update specific packages:
sudo linux-updater -y update --packages openssl nginx
sudo linux-updater update -y --packages openssl nginx
# 8. Simulate major distribution release upgrade:
sudo linux-updater release-upgrade --dry-run -t 41
# 8. Major distribution release upgrade (interactive confirmation & prompt for reboot):
sudo linux-updater release-upgrade -t 44
# 9. Clean package cache and remove orphaned packages:
# 9. Major release upgrade with alias syntax and automated reboot:
sudo linux-updater release-upgrade --releasever 44 --reboot
# 10. Simulate major distribution release upgrade:
sudo linux-updater release-upgrade --dry-run -t 44
# 11. Clean package cache and remove orphaned packages:
sudo linux-updater clean --all
```
@@ -119,7 +125,8 @@ Default settings can be customized in `/etc/linux-updater.json`:
"auto_remediate": true,
"non_interactive": false,
"check_ac_power": true,
"clean_after_update": false
"clean_after_update": false,
"auto_reboot": false
},
"logging": {
"log_dir": "/var/log/linux-updater",
@@ -137,9 +144,9 @@ CLI flags always take precedence over configuration file values.
| Code | Status | Meaning |
|---|---|---|
| `0` | **Success** | All operations completed cleanly; no reboot required. |
| `0` | **Success** | All operations completed cleanly (or automated reboot successfully initiated). |
| `1` | **Error** | Pre-flight check failed and unrecovered, or package manager command returned non-zero. |
| `2` | **Reboot Required** | Operation succeeded, but a system reboot is required (kernel or core library updated). |
| `2` | **Reboot Required** | Operation succeeded, but a system reboot is required (and `--reboot` was not supplied). |
| `3` | **Aborted** | User cancelled operation at interactive confirmation prompt. |
---