# PacManager πŸ“¦ Package manager for **Arch Linux** based on **pacman**, with a Qt6 graphical interface. ## Features - πŸ” **Package search** - πŸ“¦ **Package installation** - πŸ—‘οΈ **Package removal** - πŸ”„ **Individual or global updates** - πŸ“‹ **History of all actions** - 🧩 **Plugins**: package managers (pacman built-in, **Flatpak shipped by default**) and **extensions** written in C++ (UI addons, helpers, …) ## Architecture ``` package-manager/ β”œβ”€β”€ CMakeLists.txt # Build root β”œβ”€β”€ include/ β”‚ β”œβ”€β”€ package-manager.h # Package manager interface (IPackageManager) β”‚ β”œβ”€β”€ plugin.h # Generic plugin contract (PluginInfo, IPlugin) β”‚ β”œβ”€β”€ provider-plugin.h # C ABI contract for plugins (providers + addons) β”‚ β”œβ”€β”€ pacman-manager.h # pacman manager (Arch Linux, built-in) β”‚ β”œβ”€β”€ plugin-manager.h # Plugin registry + shared-library loading β”‚ β”œβ”€β”€ main-window.h # Main GUI β”‚ β”œβ”€β”€ history-manager.h # Action history β”‚ └── package-model.h # Qt model for the list β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ main.cpp β”‚ β”œβ”€β”€ main-window.cpp β”‚ β”œβ”€β”€ pacman-manager.cpp β”‚ β”œβ”€β”€ flatpak-manager.cpp β”‚ β”œβ”€β”€ plugin-manager.cpp β”‚ β”œβ”€β”€ history-manager.cpp β”‚ └── package-model.cpp β”œβ”€β”€ plugins/ β”‚ β”œβ”€β”€ example-provider/ # Example external provider plugin (template) β”‚ β”œβ”€β”€ example-addon/ # Example external addon plugin (extension, template) β”‚ └── flatpak-provider/ # Flatpak plugin (loaded at runtime, built by default) β”œβ”€β”€ tests/ # Unit tests (assert, no Qt) └── resources/ ``` ## Compilation (Arch Linux) ### Dependencies ```bash sudo pacman -S qt6-base cmake gcc base-devel ``` ### Build ```bash cd package-manager # Configure and compile cmake -B build -DFWS_BUILD_EXAMPLE_PLUGIN=ON cmake --build build -j$(nproc) ``` The **Flatpak plugin is built by default** (`FWS_BUILD_FLATPAK_PLUGIN=ON`): a plain `cmake -B build` is enough to get a Flatpak-enabled app. Useful options: - `-DFWS_BUILD_FLATPAK_PLUGIN=OFF`: skip the Flatpak plugin; - `-DFWS_BUILD_EXAMPLE_ADDON=ON`: also build the example addon plugin (`build/plugins/libsample-addon.so`). ### Install **User install** (recommended, no sudo β€” the binary goes to `~/.local/bin`): ```bash cmake --install build --prefix ~/.local # To run `PacManager` from a terminal (optional): echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc # then restart your shell ``` **System install** (root, into `/usr/local/bin`): ```bash sudo cmake --install build ``` ### Show up in the app launcher (a real app, no command) To make PacManager appear in the launcher of any desktop (wofi, GNOME, KDE...), like a pacman install: ```bash mkdir -p ~/.local/share/applications ~/.local/share/icons/hicolor/scalable/apps cp resources/icons/package.svg ~/.local/share/icons/hicolor/scalable/apps/org.fws.PacManager.svg cat > ~/.local/share/applications/org.fws.PacManager.desktop <(): `. Allowed types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`. Short, imperative title; the body explains only the **why**. - **Naming**: `kebab-case` files; identifiers (variables, functions, classes) in **English**. - **Code & comments**: in **English**, "why" style (document the non-obvious β€” design choices, trade-offs β€” not the trivial). - **Tests**: `*.test.*` files with `describe` / `it` names in English; run tests (and typecheck / lint when present) before considering a task done. Run them with `ctest` from `build/`. - **Issues & bugs**: tracked through **issues** linked to the **Kanban** board; any PR fixing a bug references the issue (`Fixes #123`); do not close or modify an issue without explicit request. - **Sensitive files (`.gitignore`)**: never commit `.env*`, `.freebuff/`, `build/` / `dist/` / `target/` / `__pycache__/`, `node_modules/`, secrets. A `.gitignore` exists at the repo root. ## License **Proprietary β€” source available, personal use only.** The code in this repository **may be improved and modified for your own personal use**, but it is **strictly forbidden to distribute or sell it**, in whole or in part, modified or not. See the [`LICENSE`](LICENSE) file for the full terms. Summary: - βœ… modify and improve the code for your **own personal use**; - ❌ **distribute** or **share** the code, modified or not, with anyone; - ❌ **sell**, lease, monetize or reuse the code in a commercial product; - ❌ include the code in another project, hosted service or SaaS.