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

+31 -9
View File
@@ -27,7 +27,7 @@ linux-updater health
**Example Output:**
```text
Linux System Updater v1.1.0
Linux System Updater v1.2.0
Detected System: Ubuntu 24.04.1 LTS (Family: debian)
Pre-flight Health Diagnostics:
@@ -53,7 +53,7 @@ linux-updater check
**Example Output:**
```text
Linux System Updater v1.1.0
Linux System Updater v1.2.0
Detected System: Fedora Linux 40 (Family: rhel)
Checking available updates...
@@ -76,8 +76,13 @@ sudo linux-updater update
1. **Pre-flight Checks:** Checks `/boot`, `/var`, `/`, locks, RAM, and power.
2. **Review:** Shows list of available updates.
3. **Confirmation:** Prompts `Proceed with updates? [Y/n]: `
4. **Execution:** Runs native package upgrade transaction.
5. **Reboot Notice:** Warns if a kernel or core library update requires a reboot.
4. **Execution:** Runs native package upgrade transaction with real-time download and installation streaming.
5. **Reboot Management:**
- **Interactive prompt:** If a kernel or core library update requires a reboot, `linux-updater` asks:
`A system reboot is required to apply changes. Reboot now? [y/N]: `
(Pressing Enter defaults safely to `No`).
- **Automated reboot:** Pass `--reboot` to automatically trigger reboot upon successful updates:
`sudo linux-updater update -y --reboot`
### Selective Package Updates (`--packages`)
If you only want to upgrade specific software (e.g. security patches for OpenSSL and Nginx) without touching the rest of the operating system:
@@ -97,16 +102,28 @@ linux-updater update --dry-run
## 3. Major Distribution Release Upgrade (`release-upgrade`)
A major distribution upgrade transitions your system from one release version to the next (e.g., Ubuntu 22.04 LTS to 24.04 LTS, Debian 12 to 13, Fedora 40 to 41, or AlmaLinux 8 to 9).
A major distribution upgrade transitions your system from one release version to the next (e.g., Ubuntu 22.04 LTS to 24.04 LTS, Debian 12 to 13, Fedora 43 to 44, or AlmaLinux 8 to 9).
### Target Release Specification (`-t` / `--releasever`)
On Fedora and Red Hat-based systems, you must specify the target release version. Both `-t` and `--releasever` are supported:
```bash
# Fedora: upgrade to version 44:
sudo linux-updater release-upgrade -t 44
sudo linux-updater release-upgrade --releasever 44
# With automated offline transaction reboot:
sudo linux-updater release-upgrade -t 44 --reboot
```
Because major upgrades modify thousands of core system packages, `linux-updater` introduces strict safety gates:
```bash
# Simulate upgrade first:
linux-updater release-upgrade --dry-run -t 41
linux-updater release-upgrade --dry-run -t 44
# Execute real upgrade:
sudo linux-updater release-upgrade -t 41
sudo linux-updater release-upgrade -t 44
```
**Safety Banner:**
@@ -114,14 +131,19 @@ sudo linux-updater release-upgrade -t 41
=================================================================
WARNING: MAJOR DISTRIBUTION RELEASE UPGRADE
=================================================================
Target Release: 41
Target Release: 44
This operation performs a major upgrade of core system components.
Ensure you have a recent system backup or snapshot before proceeding.
=================================================================
Are you absolutely sure you want to proceed with upgrade to 41? [y/N]:
Are you absolutely sure you want to proceed with upgrade to 44? [y/N]:
```
**Fedora Offline Upgrades:**
On Fedora, major release upgrades are downloaded as an offline transaction. Once download finishes:
- With `--reboot`: Automatically executes `dnf5 -y offline reboot` (or `dnf -y system-upgrade reboot`).
- Interactively: Prompts `A system reboot is required to execute the offline upgrade transaction. Reboot now? [y/N]: `.
---
## 4. System Cleanup (`clean`)