Repositories
Official Zoi repositories, mirrors, and repository tiers.
This page explains Zoi's official repositories and mirrors, and how package repositories are organized by tier.
Official project and package database
-
Source code (Zoi)
-
Packages database (Zoi-Pkgs)
Managing the Package Database Registry
The package database is the core git repository that Zoi clones to ~/.zoi/pkgs/db
. This repository contains all the package definitions organized into tiers. While you can manage which repositories inside the database are active using zoi repo
, you can also change the URL of the entire database registry itself using zoi sync
.
This is useful if you want to use a mirror or a completely different package database.
Command | Description |
---|---|
zoi sync set <url-or-keyword> | Sets the package database registry URL. Keywords: default , gitlab , github , codeberg . |
zoi sync show | Displays the current registry URL. |
Examples
# Show the current registry URL
zoi sync show
# Set the registry to the official GitHub mirror
zoi sync set github
# Set the registry to a custom URL
zoi sync set https://my-custom-registry.com/zoi-pkgs.git
Automatic Fallback
To improve reliability, Zoi can automatically try syncing from official mirrors if your configured primary registry is unavailable.
zoi sync --fallback
: If the sync fails, Zoi will attempt to use the other official mirrors (GitLab, GitHub, Codeberg) one by one until it succeeds.zoi update
: Theupdate
command uses this fallback mechanism by default to ensure that package updates are as reliable as possible.
Repository tiers
Zoi organizes packages into tiers. Use these to decide where a package belongs and to assess stability.
Repository | Purpose |
---|---|
core | Essential packages and libraries; very common and well-maintained. |
main | Important packages that don't fit in core but are essential for most users. |
extra | New or niche packages; less common and may be less actively maintained. |
community | User-submitted packages. New entries start here and may graduate to higher tiers. |
test | Testing ground for new Zoi features and packages prior to release. |
archive | Archived packages that are no longer maintained. |
Note: Packages from community
, test
, and archive
may carry higher risk. Zoi prints warnings where appropriate.
Managing Active Repositories
The zoi repo
command manages which repositories from the package database are active. Active repositories are searched during package operations like install
and search
.
Command | Description |
---|---|
zoi repo add | Add an official repo by name or a git repo by URL (interactive if no args). |
zoi repo rm <name> | Remove a repository from the active list. |
zoi repo list (alias: ls ) | Show active repositories from config. Use zoi repo list all to show all available repositories. |
zoi repo git ls | List cloned git repositories under ~/.zoi/pkgs/git . |
zoi repo git rm <repo> | Remove a cloned git repository directory. |
Examples
# Add a repository interactively
zoi repo add
# Add official repositories by name
zoi repo add core
zoi repo add main
zoi repo add community
# Add by git URL (cloned under ~/.zoi/pkgs/git/ and used via @git/<repo>/<pkg>)
zoi repo add https://github.com/YourOrg/my-zoi-repo.git
# Remove and list
zoi repo rm community
zoi repo list
zoi repo list all
zoi repo git ls
zoi repo git rm my-zoi-repo
Installing from a specific repository
- Top-level repository:
zoi install @community/htop
- Nested repository path (e.g. platform-specific):
zoi install @core/linux/amd64/nvidia-driver
To install a package from your custom git repository, use the @git/
prefix, followed by the repository name and the package name.
zoi install @git/zoi-repo/package
You can install from nested repository also
zoi install @git/zoi-repo/path/to/package
For creating and publishing packages, see Creating & Publishing Packages.
Last updated on