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.

Built packages are cached in /var/cache/zpkg/binpkgs/. A binpkg with the same version and USE flags is reused. ZPKG_NO_BINPKG=1 disables the cache.

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.