# stewalexander-com/linux-tools architecture

> Architecture diagram of the GitHub repository stewalexander-com/linux-tools, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/stewalexander-com/linux-tools
- Repository: https://github.com/stewalexander-com/linux-tools

## Overview

This repository provides Debian/Ubuntu command-line tool installers. The principal workflow is: a user launches the modern installer, selects modes, passes compatibility and consent checks, then the tool manager skips commands already on PATH and dispatches missing tools to APT, pip, or eget. Eget downloads GitHub release binaries, validates them, and installs them into the system path. The README documents a 64-tool catalog, category browsing, dry-run/server modes, and Debian command-name differences. The sampled excerpts do not expose every catalog entry or orchestration call.

Main entry points: [`Lazy-Linux-Tool-Installer.py`](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py) (Modern installer), [`Debian-CLI-Tool_Installer.py`](https://github.com/stewalexander-com/linux-tools/blob/main/Debian-CLI-Tool_Installer.py) (Legacy installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI orchestration"]
  node_modern_main["Modern installer"]
  node_system_check["System checker"]
  node_mode_options["Mode options"]
  node_consent["Consent flow"]
end

subgraph group_catalog["Tool catalog"]
  node_tool_manager["Tool manager"]
  node_tool_catalog["64-tool catalog"]
  node_path_checker["PATH checker"]
end

subgraph group_install["Installation pipeline"]
  node_installer["Installer engine"]
  node_apt_installer["APT installer"]
  node_eget_bootstrap["Eget bootstrap"]
  node_release_resolver["Release resolver"]
  node_download_validator["Download validator"]
  node_path_installer["PATH installer"]
end

subgraph group_legacy["Legacy installer"]
  node_legacy_main["Legacy installer"]
end

node_user(("System administrator"))
node_apt["Debian APT"]
node_github["GitHub releases"]
node_system_path["System PATH"]

node_user -->|"launches"| node_modern_main
node_user -.->|"launches"| node_legacy_main
node_modern_main -->|"parses"| node_mode_options
node_modern_main -->|"checks system"| node_system_check
node_modern_main -->|"requests consent"| node_consent
node_modern_main -->|"dispatches tools"| node_tool_manager
node_tool_manager -->|"reads catalog"| node_tool_catalog
node_tool_manager -->|"checks commands"| node_path_checker
node_path_checker -->|"reads PATH"| node_system_path
node_tool_manager -->|"installs missing"| node_installer
node_installer -->|"selects APT"| node_apt_installer
node_installer -->|"selects eget"| node_eget_bootstrap
node_apt_installer -->|"runs packages"| node_apt
node_eget_bootstrap -->|"resolves release"| node_release_resolver
node_release_resolver -->|"fetches metadata"| node_github
node_download_validator -->|"downloads assets"| node_github
node_eget_bootstrap -->|"validates archive"| node_download_validator
node_download_validator -->|"passes binary"| node_path_installer
node_path_installer -->|"installs binary"| node_system_path
node_legacy_main -.->|"installs packages"| node_apt
node_legacy_main -.->|"bootstraps eget"| node_eget_bootstrap
node_legacy_main -.->|"copies binaries"| node_system_path

click node_modern_main "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_system_check "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_mode_options "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_consent "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_tool_manager "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_tool_catalog "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_path_checker "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_installer "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_apt_installer "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_eget_bootstrap "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_release_resolver "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_download_validator "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_path_installer "https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py"
click node_legacy_main "https://github.com/stewalexander-com/linux-tools/blob/main/Debian-CLI-Tool_Installer.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_modern_main,node_system_check,node_mode_options,node_consent toneBlue
class node_tool_manager,node_tool_catalog,node_path_checker toneAmber
class node_installer,node_apt_installer,node_eget_bootstrap,node_release_resolver,node_download_validator,node_path_installer toneMint
class node_legacy_main toneRose
class node_user,node_apt,node_github,node_system_path toneIndigo
```

## Components

### CLI orchestration

- [Modern installer](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [System checker](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [Mode options](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [Consent flow](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`

### Tool catalog

- [Tool manager](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [64-tool catalog](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [PATH checker](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`

### Installation pipeline

- [Installer engine](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [APT installer](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [Eget bootstrap](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [Release resolver](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [Download validator](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`
- [PATH installer](https://github.com/stewalexander-com/linux-tools/blob/main/Lazy-Linux-Tool-Installer.py): `Lazy-Linux-Tool-Installer.py`

### Legacy installer

- [Legacy installer](https://github.com/stewalexander-com/linux-tools/blob/main/Debian-CLI-Tool_Installer.py): `Debian-CLI-Tool_Installer.py`

### Other components

- **System administrator**
- **Debian APT**
- **GitHub releases**
- **System PATH**

## Connections

- System administrator → Modern installer: launches
- System administrator → Legacy installer: launches
- Modern installer → Mode options: parses
- Modern installer → System checker: checks system
- Modern installer → Consent flow: requests consent
- Modern installer → Tool manager: dispatches tools
- Tool manager → 64-tool catalog: reads catalog
- Tool manager → PATH checker: checks commands
- PATH checker → System PATH: reads PATH
- Tool manager → Installer engine: installs missing
- Installer engine → APT installer: selects APT
- Installer engine → Eget bootstrap: selects eget
- APT installer → Debian APT: runs packages
- Eget bootstrap → Release resolver: resolves release
- Release resolver → GitHub releases: fetches metadata
- Download validator → GitHub releases: downloads assets
- Eget bootstrap → Download validator: validates archive
- Download validator → PATH installer: passes binary
- PATH installer → System PATH: installs binary
- Legacy installer → Debian APT: installs packages
- Legacy installer → Eget bootstrap: bootstraps eget
- Legacy installer → System PATH: copies binaries
