# luuunodotxd/dump-package-manager architecture

> Architecture diagram of the GitHub repository luuunodotxd/dump-package-manager, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/luuunodotxd/dump-package-manager
- Repository: https://github.com/luuunodotxd/dump-package-manager

## Overview

dumpkg is a minimal POSIX-shell binary package manager for musl and BusyBox systems. Users query installed packages through `dumpkg`, manage packages with dedicated install/remove commands, and synchronize recipes or upgrade packages with `dumpkg-update`; installation can optionally resolve recipe dependencies. Recipes describe package archives and metadata, while manifests and file lists record installed state. The README documents these capabilities and paths, but no source excerpts were provided, so implementation-level calls and data access are not asserted.

Main entry points: [`scripts/dumpkg-install`](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-install) (Package Install), [`scripts/dumpkg-update`](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-update) (Recipe Update), [`scripts/dumpkg`](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg) (Package Queries), [`scripts/dumpkg-remove`](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-remove) (Package Remove)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_commands["User Commands"]
  node_dumpkg["Package Queries"]
  node_installer["Package Install"]
  node_remover["Package Remove"]
  node_updater["Recipe Update"]
  node_initializer["Directory Setup"]
  node_common["Shared Shell"]
end

subgraph group_package_state["Package State"]
  node_config["Configuration"]
  node_manifests[("Installed Manifests")]
  node_file_lists[("Owned File Lists")]
  node_log["Package Log"]
end

subgraph group_recipe_sources["Recipe Sources"]
  node_recipes[("Local Recipes")]
  node_recipe_service["Recipe Source"]
  node_archives["Package Archives"]
end

node_user(("User"))

node_user -->|"queries"| node_dumpkg
node_user -->|"installs"| node_installer
node_user -->|"removes"| node_remover
node_user -->|"updates"| node_updater
node_user -->|"initializes"| node_initializer
node_updater -->|"syncs recipes"| node_recipe_service
node_installer -.->|"resolves packages"| node_recipes
node_installer -.->|"installs archives"| node_archives

click node_dumpkg "https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg"
click node_installer "https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-install"
click node_remover "https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-remove"
click node_updater "https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-update"
click node_initializer "https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-init"
click node_common "https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-common"

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_dumpkg,node_installer,node_remover,node_updater,node_initializer,node_common,node_user toneBlue
class node_config,node_manifests,node_file_lists,node_log toneAmber
class node_recipes,node_recipe_service,node_archives toneMint
```

## Components

### User Commands

- [Package Queries](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg): `scripts/dumpkg`
- [Package Install](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-install): `scripts/dumpkg-install`
- [Package Remove](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-remove): `scripts/dumpkg-remove`
- [Recipe Update](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-update): `scripts/dumpkg-update`
- [Directory Setup](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-init): `scripts/dumpkg-init`
- [Shared Shell](https://github.com/luuunodotxd/dump-package-manager/blob/main/scripts/dumpkg-common): `scripts/dumpkg-common`

### Package State

- **Configuration**
- **Installed Manifests**
- **Owned File Lists**
- **Package Log**

### Recipe Sources

- **Local Recipes**
- **Recipe Source**
- **Package Archives**

### Other components

- **User**

## Connections

- User → Package Queries: queries (evidence: `README.md`)
- User → Package Install: installs (evidence: `README.md`)
- User → Package Remove: removes (evidence: `README.md`)
- User → Recipe Update: updates (evidence: `README.md`)
- User → Directory Setup: initializes (evidence: `README.md`)
- Recipe Update → Recipe Source: syncs recipes (evidence: `README.md`)
- Package Install → Local Recipes: resolves packages
- Package Install → Package Archives: installs archives
