------------------------------------------------------------------------------ BRIEF INTRODUCTION ------------------------------------------------------------------------------ A binary package built with xbps is a normal tar(1) archive, compressed with bzip2 and has the following structure: / /usr ------| /var ------| => Package structure that will be installed. /etc ------| ... /var/cache/xbps/metadata/$pkgname /var/cache/xbps/metadata/$pkgname/flist /var/cache/xbps/metadata/$pkgname/props.plist /var/cache/xbps/metadata/$pkgname/prepost-inst /var/cache/xbps/metadata/$pkgname/prepost-rm Metadata info is stored in the "/var/cache/xbps/metadata/$pkgname" directory and two files will be always be present: flist and props.plist. The flist file contains the list of files that the package will install. The props.plist file is a proplib(3) property list and has the following structure: pkgname foo version 3.40 maintainer The Master BOFH short_desc Foo is a virtual package long_desc Foo is a virtual package to show how the metadata props.plist file works with xbps handling binary packages. architecture x86_64 installed_size 500000 configuration_files /etc/foo.conf ... run_depends bofh-2.0 blab-1.1 ... ... The prepost-* executables allows you to trigger any action at pre/post installation/removal of the binary package. The package's dictionary will also be written into the repository's package index file, that describes information about a binary package on it. See the BINPKG_REPOSITORY file for more info about repositories. ------------------------------------------------------------------------------ HOW TO USE BINARY PACKAGES ------------------------------------------------------------------------------ To install binary packages, firstly a repository must be created as well as some binary packages for it. The flow for this task is: 1- xbps-src install 2- xbps-src build-pkg all 3- xbps-src genindex 4- xbps-repo add $XBPS_PACKAGES 5- xbps-bin install -r /rootdir So the tasks are: install the package into destdir (and all its dependencies), build the binary package from the required package, generate the repository index, add the repository into the pool and install the binary package. Please note that by default, the xbps-* utils accept the -r flag, to specify the root directory for all operations, in that case the package will be installed into and metadata files into /var/cache/xbps. Don't forget to set this flag if you aren't using xbps as the primary package manager in your system, otherwise it could overwrite some files! See the BINPKG_REPOSITORY file for more info about repositories for binary packages or SRCPKG_INFO for source packages. ------------------------------------------------------------------------------ Juan Romero Pardines