Skip to content

Package management

ターミナルウィンドウ
zpkg search networkmanager
zpkg info networkmanager
zpkg owner /usr/bin/nmcli
zpkg depends networkmanager

zpkg depends lists dependencies in build order. -r shows reverse dependencies.

ターミナルウィンドウ
zpkg install vim
zpkg install --asdeps some-library
zpkg install -p vim # Check what will be installed

--asdeps records the package as a dependency without adding it to world. A normal install adds it to world.

ターミナルウィンドウ
zpkg remove vim

The removal stops if reverse dependencies exist. To force removal, add -f, but this can break dependencies. zpkg upgrade --prune shows dependencies that are no longer needed.

ターミナルウィンドウ
zpkg list
zpkg world

world is the list of packages you explicitly installed. zpkg upgrade builds its update plan starting from world.

ターミナルウィンドウ
zpkg upgrade -p
zpkg upgrade

zpkg install installs or reinstalls a package; zpkg upgrade applies the channel differences. See Channels and upgrades for details.

Local binpkg creation is disabled by default. Set BUILD_BINPKG=1 in /etc/zpkg/build.conf to save built packages in /var/cache/zpkg/binpkgs/; then a binpkg with the same version and USE flags is reused. ZPKG_NO_BINPKG=1 disables it temporarily.

Recipes are in /usr/share/zignos/recipes/<channel>/{core,main,desktop}/. zpkg sync updates them to the latest tree. See zpkg design for how to write recipes.

Packages that are not in the official tree are available from the official ZIGNOS MENU overlay.

ターミナルウィンドウ
sudo zpkg overlay add zignos-menu
zpkg overlay list
zpkg search <term>

Overlays are searched before the official tree, and zpkg search labels them as zignos-menu/apps. See ZIGNOS MENU (overlays) for updating and removing, adding your own overlay, priority and signing.