docs: cover the cleanup page and the version stamp in both READMEs
The feature list, the page-by-page walkthrough and the interface contract tables now describe the Nettoyage page and its optional cleanup methods, and the automatic-update section explains where an update is installed and why the same release is not offered twice. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
1 parent
28a2155d3e
commit
d8bc17b2aa
2 files changed
+36
-4
No files matched your search
+18
-2
@@ -8,6 +8,7 @@ Package manager for **Arch Linux** based on **pacman**, with a Qt6 graphical int
|
||||
- 📦 **Package installation**
|
||||
- 🗑️ **Package removal**
|
||||
- 🔄 **Individual or global updates**
|
||||
- 🧹 **Cleanup**: orphan and legacy packages, cache trimming
|
||||
- 📋 **History of all actions**
|
||||
- 🧩 **Plugins**: package managers (pacman built-in, **Flatpak shipped by default**) and **extensions** written in C++ (UI addons, helpers, …)
|
||||
|
||||
@@ -128,7 +129,7 @@ The method is picked automatically (no configuration):
|
||||
|
||||
| Method | When | What happens |
|
||||
| --- | --- | --- |
|
||||
| **Checkout** | a source checkout surrounds the binary (dev) | `git pull` + rebuild in place |
|
||||
| **Checkout** | a source checkout surrounds the binary (dev) | `git pull`, rebuild, install into the binary's directory |
|
||||
| **Clone** | installed app with no checkout, and `git` + `cmake` + a compiler | the repo is cloned/updated in `~/.local/share/PacManager/src`, rebuilt and installed in place |
|
||||
| **Prebuilt** | no build toolchain available | the release's prebuilt archive is downloaded and unpacked |
|
||||
| **Tarball** | no `git`, but `cmake` + a compiler | the release sources are built and installed |
|
||||
@@ -137,6 +138,11 @@ Everything builds in a temporary directory: only the final replacement of the
|
||||
binary (and plugins) needs `sudo`, and only when the target directory is owned
|
||||
by root. PacManager then restarts automatically on the new version.
|
||||
|
||||
All four methods install to the same place — the running binary's directory —
|
||||
and rewrite the `version` file there. On top of that, the app reports the
|
||||
version **compiled into the binary** (from the repo's `version` file) first, so
|
||||
the same update is never offered again once it has been applied.
|
||||
|
||||
## Graphical interface
|
||||
|
||||
The interface uses **Qt6** with a dark theme, a **navigation sidebar** and stacked pages:
|
||||
@@ -144,10 +150,12 @@ The interface uses **Qt6** with a dark theme, a **navigation sidebar** and stack
|
||||
- 🔍 **Search**: search bar, package table on the left and details on the right
|
||||
- 📦 **Installed**: list with **instant name filter** (local, no pacman re-run)
|
||||
- ⬆️ **Updates**: outdated packages detected by `pacman -Qu`, "Update all" button
|
||||
- 📋 **History**: filterable table (installs / removals / updates) + CSV export
|
||||
- 🧹 **Cleanup**: **orphan** packages (`pacman -Qdt`, nothing requires them) and **legacy** ones (`pacman -Qm`, AUR / manual builds), bulk removal of the orphans, and cache trimming: `paccache` / `pacman -Sc` and unused Flatpak runtimes (`flatpak uninstall --unused`)
|
||||
- 📋 **History**: filterable table (installs / removals / updates / cleanups) + CSV export
|
||||
- 📜 **Logs**: built-in `/var/log/pacman.log` viewer with an instant filter
|
||||
- 🧩 **Plugins**: lists every plugin (package providers and extensions), enable / disable and plugin rescan
|
||||
- ⌨️ **Convenience**: system tray icon and keyboard shortcuts (Ctrl+F search, Ctrl+R / F5 refresh, Ctrl+U updates, Ctrl+E export, Ctrl+Q quit)
|
||||
- 🎨 **Legibility**: a sidebar split into sections, showing the installed version and the pending update count; quick actions (refresh, update all) in the header, reachable from any page; empty lists that say what to do next
|
||||
- 📤 **Export**: the displayed package list and the history can be exported as CSV
|
||||
|
||||
### Interface overview
|
||||
@@ -200,6 +208,14 @@ The `IPackageManager` interface (implemented by the built-in `PacmanManager` and
|
||||
| `listInstalled()` | List installed packages |
|
||||
| `listUpdates()` | List outdated packages |
|
||||
| `refresh(callback)` | Refresh the sources |
|
||||
| `canListCleanup()` | Can list the packages a cleanup may reclaim |
|
||||
| `listCleanupCandidates()` | Orphan (`orphan`) and legacy packages, with their reason |
|
||||
| `removePackages(names, callback)` | Removes several packages in a single command |
|
||||
| `canCleanCache()` / `cleanCache(callback)` | Trims the provider's cache (pacman cache, unused Flatpak runtimes) |
|
||||
|
||||
The last four methods are **optional**: a provider that only installs packages
|
||||
implements nothing, and the Cleanup page then simply reports that it has nothing
|
||||
to offer.
|
||||
|
||||
Search queries **all active providers at once**: every result shows its origin in the **Provider** column (Pacman, Flatpak, …), and the Installed / Updates pages are aggregated. Install, remove and update are routed automatically to the right manager. The sidebar **Plugins** page lists everything (providers **and** addons), lets you enable / disable each plugin, rescan plugins and **install a missing tool** (e.g. "Install tool" for Flatpak runs `sudo pacman -S flatpak`, then the provider becomes available).
|
||||
|
||||
|
||||
Reference in new issue
Block a user