> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tsukineos.top/llms.txt
> Use this file to discover all available pages before exploring further.

# Package Management: tknpkg and tknpkkj

> Use tknpkg to install, remove, update, and list packages; use tknpkkj to build .tkn distribution packages.

# Package Management

TsukineOS uses `tknpkg` as its package manager. The package format is `.tkn`, pulled from the official TsukineOS remote repository. If you want to distribute your own tools, scripts, or configurations, use `tknpkkj` to create a `.tkn` package.

## tknpkg: Package Manager

`tknpkg` handles the full package lifecycle: refreshing the index, installing, removing, and listing installed packages.

| Command                | Description                                          |
| ---------------------- | ---------------------------------------------------- |
| `tknpkg update`        | Refresh the package index from the remote repository |
| `tknpkg install <pkg>` | Install the specified package                        |
| `tknpkg remove <pkg>`  | Uninstall the specified package                      |
| `tknpkg list`          | List all installed packages                          |

```bash theme={null}
tknpkg update
tknpkg install mypackage
tknpkg list
tknpkg remove mypackage
```

<Note>
  Run `tknpkg update` before installing packages to make sure the local index reflects the latest versions in the remote repository.
</Note>

## tknpkkj: Packaging Tool

`tknpkkj` packages a directory or file into a `.tkn` package for distribution or installation via `tknpkg`.

```bash theme={null}
tknpkkj <directory or file>    # Generate a .tkn package
```

**Typical uses:**

* Package your own command-line tools for distribution
* Let others install your scripts with a single `tknpkg install`
* Distribute system configurations in a reproducible format

<Note>
  The available package set varies by build. Run `tknpkg list` first to see what is already installed on the current image.
</Note>

<Note>
  This page was translated by AI and may contain inaccuracies. The Simplified Chinese version is authoritative.
</Note>

***

© 2024-2026 TsutokiTeo/JunweiZhang. All rights reserved.
