Skip to content

Releases

pak-explorer

pak-explorer Pre-release
Pre-release

Choose a tag to compare

@LuisPCNeri LuisPCNeri released this 07 Sep 18:50

Changes

  • Changed the info panel to automatically choose the highest unit of measurement possible to display the package size.

pak-explorer

pak-explorer Pre-release
Pre-release

Choose a tag to compare

@LuisPCNeri LuisPCNeri released this 07 Sep 18:29

Hotfix

  • fixed possible integer underflow when opening the Remove Sim overlay

pak-explorer

pak-explorer Pre-release
Pre-release

Choose a tag to compare

@LuisPCNeri LuisPCNeri released this 07 Sep 14:21

Changes

  • Implemented the Remove Simulation. This simulates pacman's pacman -Rns [PCKG] command so the user never has to leave the TUI. Remove Simulation overlay can be activated by pressing r. User can leave the simulation by pressing q or escape.
  • Implemented scrolling in the Remove Simulation overlay by pressing the arrows keys.
  • Refactored the graph pane code by moving all the graph specific logic to the src/db/graph.zig file.
  • Added a [R]everse dep mode for the graph, now the user can switch between [D]ep graph mode and [R]everse dep graph mode.
  • Made the current active graph mode be highlighted by changing the color of the command in the footer so when the graph is in [D]ep graph mode that part of the footer as an highlighted color.
  • Added a new filter [E] for the search feature, by using [E] you can search for explicit packages only.

Note: The Remove Sim overlay always opens for the selected package in the LIST_PANE so if you have a package selected in the graph pane it will only simulate removal for it if you then select it in the package list pane.

pak-explorer

pak-explorer Pre-release
Pre-release

Choose a tag to compare

@LuisPCNeri LuisPCNeri released this 05 Sep 23:29

HOTFIX

  • Fixed a problem where terminal windows that were too small caused pak to crash due to an off by one error.

Changes

  • Made it so the package tag [E], [S] or [!] always appear at the end of the package list pane.

pak-explorer

pak-explorer Pre-release
Pre-release

Choose a tag to compare

@LuisPCNeri LuisPCNeri released this 05 Sep 22:58

pak v0.1.0-alpha

First public pre-release. The core of what makes pak useful is here: a fully interactive, three-pane view of your Arch package database: package list, info panel, and dependency tree, all parsed directly from /var/lib/pacman/local/ with no pacman calls and no network.

The statically compiled binary has no runtime dependencies. Download, chmod +x, run.


What's in this release

Parse pipeline

Five-pass startup pipeline that reads the pacman local database:

  1. Directory scan to pre-allocate the package array to the exact count
  2. desc file parse — name, version, description, size, install reason, deps, optional deps, provides
  3. Sort packages by name
  4. Index construction — name index and provides index (with multi-provider support, e.g. several packages providing the same soname)
  5. Dependency resolution — deps and opt_deps resolved to stable integer IDs; required_by and opt_req_by reverse graphs constructed

All data lives in a single arena. No heap allocation after startup.

Package list pane

  • Full scrollable package list with Page Up / Page Down (jumps of 10)
  • Sort by name (n) or size (s, largest first)
  • Substring filter (press f to enter, Esc to clear)
  • Two special filter tokens: [!] shows only orphans, [S] shows only still-required deps
  • Package badges: [E] explicit · [S] required dep · [!] orphan (amber)

Info panel

Always tracks the package under the list cursor. Shows:

  • Name and version
  • Description
  • Installed size
  • Full dep list and optional dep list
  • Reverse dep list (Required By) and optional reverse dep list (Opt Required By)

Dependency tree pane

  • Collapsible tree rooted at the selected package, rebuilt incrementally on expand/collapse
  • Expand / collapse with Space or Enter
  • Optional dependencies shown dimmed, distinct from required deps
  • [shared] badge on packages that more than one other package depends on
  • (↺) marks cyclic nodes — detected by ancestor chain walk, not expanded further
  • Tree cursor is independently navigable (↑/↓) from the package list

TUI

  • Built on vaxis
  • Three-pane layout: package list (25%) | info (35%) | dep tree (40%), proportions computed from terminal width
  • Switch focus between package list and dep tree with ← / → or j / k
  • Live terminal resize via SIGWINCH — no corruption or crashes on resize
  • Header shows total package count, and total installed size

Keybindings

Key Action
↑ / ↓ Move cursor
Page Up / Page Down Move cursor by 10
← / → or j / k Switch pane
f Enter filter mode
Esc Exit filter / clear
Enter Confirm filter
Space / Enter Expand or collapse dep tree node
n Sort by name
s Sort by size
q Quit

What's not here yet

  • Remove simulation (exclusive transitive size, packages that would be reclaimed)
  • Per-package file list and filter
  • Global file owner search
  • Clipboard yank
  • [?] help overlay

Installation

Download the binary from the assets below. Arch Linux only.

chmod +x pak
./pak