You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
APTUI is a terminal user interface (TUI) written in Go for managing APT packages. Browse, search, install, remove and upgrade packages — all without leaving the terminal.
vim # fuzzy search for "vim"
section:editors vim # filter by section + fuzzy search combined
installed size>10MB # installed packages larger than 10 MB
section:utils order:name # packages in "utils" section, sorted A→Z
order:size:desc # all packages sorted by size, largest first
Remove and purge actions show a confirmation dialog:
Key
Action
y
Confirm
n / esc
Cancel
← / → / tab
Switch between Cancel and Confirm buttons
enter
Execute focused button
Import confirmation:
Key
Action
y
Confirm and install
n / esc
Cancel
d
Toggle detail view (paginated package list)
← / →
Navigate detail pages
Data Storage
APTUI stores its data in ~/.local/share/aptui/ (resolves the real user's home even under sudo):
File
Contents
~/.local/share/aptui/history.json
Transaction history
~/.local/share/aptui/pins.json
Pinned packages
~/.local/share/aptui/errors.json
Error log
~/aptui-packages.json
Exported package list
Theme
APTUI auto-detects whether your terminal has a light or dark background using the standard OSC 11 query. Some terminals (e.g. Cosmic Terminal) don't respond to this query, so APTUI may default to dark mode even on a light background.
You can override detection in two ways:
Environment variable — set APTUI_THEME before launching:
# Force light mode (use -E with sudo to preserve the variable)
APTUI_THEME=light sudo -E aptui
# Force dark mode
APTUI_THEME=dark sudo -E aptui
# Or export it in your shell profileexport APTUI_THEME=light
Runtime toggle — press T at any time to switch between light and dark mode. Once toggled, auto-detection is disabled for the rest of the session.
Documentation
Search & Filter — full query syntax, field filters, boolean filters, size comparisons, sorting
PPA Management — adding, removing, enabling and disabling PPAs