xbps-install -Su
xbps-install
-n dry run
-S sync
-A auto mode
xcheckrestart
To search available repositories for packages, use xbps-query(1):
$ xbps-query -Rs <search_pattern>
-R
flag specifies that repositories should be searched. Without it,-s
searches for locally-installed packages.
list the files provided by that package:
$ xbps-query -f <package_name>
list package without version
xbps-query -l | awk '{ print $2 }' | xargs -n1 xbps-uhelper getpkgname
xbps-alternatives
Usage: xbps-alternatives [OPTIONS] MODE
OPTIONS
-C --config <dir> Path to confdir (xbps.d)
-d --debug Debug mode shown to stderr
-g --group <name> Group of alternatives to match
-h --help Print usage help
-r --rootdir <dir> Full path to rootdir
-v --verbose Verbose messages
-V --version Show XBPS version
MODE
-l --list [PKG] List all alternatives or from PKG
-s --set PKG Set alternatives for PKG
xbps-pkgdb
Usage: xbps-pkgdb [OPTIONS] [PKGNAME...]
OPTIONS
-a --all Process all packages
-C --config <dir> Path to confdir (xbps.d)
-d --debug Debug mode shown to stderr
-h --help Print usage help
-m --mode <auto|manual|hold|unhold|repolock|repounlock>
Change PKGNAME to this mode
-r --rootdir <dir> Full path to rootdir
-u --update Update pkgdb to the latest format
-v --verbose Verbose messages
-V --version Show XBPS version
xbps-rindex
Usage: xbps-rindex [OPTIONS] MODE ARGUMENTS
OPTIONS
-d --debug Debug mode shown to stderr
-f --force Force mode to overwrite entry in add mode
-h --help Show help usage
-v --verbose Verbose messages
-V --version Show XBPS version
-C --hashcheck Consider file hashes for cleaning up packages
--compression <fmt> Compression format: none, gzip, bzip2, lz4, xz, zstd (default).
--privkey <key> Path to the private key for signing
--signedby <string> Signature details, i.e "name <email>"
MODE
-a --add <repodir/pkg> ... Add package(s) to repository index
-c --clean <repodir> Clean repository index
-r --remove-obsoletes <repodir> Removes obsolete packages from repository
-s --sign <repodir> Initialize repository metadata signature
-S --sign-pkg archive.xbps ... Sign binary package archive
xbps-query
Usage: xbps-query [OPTIONS] MODE [ARGUMENTS]
OPTIONS
-C --config <dir> Path to confdir (xbps.d)
-c --cachedir <dir> Path to cachedir
-d --debug Debug mode shown to stderr
-h --help Print help usage
-i --ignore-conf-repos Ignore repositories defined in xbps.d
-M --memory-sync Remote repository data is fetched and stored
in memory, ignoring on-disk repodata archives.
-p --property PROP[,...] Show properties for PKGNAME
-R --repository Enable repository mode. This mode explicitly
looks for packages in repositories.
--repository=<url> Enable repository mode and add repository
to the top of the list. This option can be
specified multiple times.
--regex Use Extended Regular Expressions to match
--fulldeptree Full dependency tree for -x/--deps
-r --rootdir <dir> Full path to rootdir
-V --version Show XBPS version
-v --verbose Verbose messages
MODE
-l --list-pkgs List installed packages
-L --list-repos List registered repositories
-H --list-hold-pkgs List packages on hold state
--list-repolock-pkgs List repolocked packages
-m --list-manual-pkgs List packages installed explicitly
-O --list-orphans List package orphans
-o --ownedby FILE Search for package files by matching STRING or REGEX
-S --show PKG Show information for PKG [default mode]
-s --search PKG Search for packages by matching PKG, STRING or REGEX
--cat=FILE PKG Print FILE from PKG binpkg to stdout
-f --files PKG Show package files for PKG
-x --deps PKG Show dependencies for PKG
-X --revdeps PKG Show reverse dependencies for PKG
xbps-uhelper
usage: xbps-uhelper [options] [action] [args]
Available actions:
binpkgarch, binpkgver, cmpver, fetch, getpkgdepname,
getpkgname, getpkgrevision, getpkgversion, pkgmatch, version,
real-version, arch, getsystemdir
Action arguments:
binpkgarch <binpkg>
binpkgver <binpkg>
cmpver <instver> <reqver>
getpkgdepname <string>
getpkgdepversion <string>
getpkgname <string>
getpkgrevision <string>
getpkgversion <string>
pkgmatch <pkg-version> <pkg-pattern>
version <pkgname>
real-version <pkgname>
Options shared by all actions:
-C Path to xbps.conf file.
-d Debugging messages to stderr.
-r <rootdir>
-V Prints the xbps release version
Examples:
$ xbps-uhelper cmpver 'foo-1.0_1' 'foo-2.1_1'
$ xbps-uhelper getpkgdepname 'foo>=0'
$ xbps-uhelper getpkgdepversion 'foo>=0'
$ xbps-uhelper getpkgname foo-2.0_1
$ xbps-uhelper getpkgrevision foo-2.0_1
$ xbps-uhelper getpkgversion foo-2.0_1
$ xbps-uhelper pkgmatch foo-1.0_1 'foo>=1.0'
$ xbps-uhelper version pkgname
xbps-reconfigure
Usage: xbps-reconfigure [OPTIONS] [PKGNAME...]
OPTIONS
-a --all Process all packages
-C --config <dir> Path to confdir (xbps.d)
-d --debug Debug mode shown to stderr
-f --force Force reconfiguration
-h --help Print usage help
-i --ignore PKG Ignore PKG with -a/--all
-r --rootdir <dir> Full path to rootdir
-v --verbose Verbose messages
-V --version Show XBPS version
xbps-dgraph
Usage: xbps-dgraph [OPTIONS] [MODE] <pkgname>
OPTIONS
-C --config <dir> Path to confdir (xbps.d)
-c --graph-config <file> Path to the graph configuration file
-d --debug Debug mode shown to stderr
-h --help Print help usage
-M --memory-sync Remote repository data is fetched and stored
in memory, ignoring on-disk repodata archives.
-r --rootdir <dir> Full path to rootdir
-R --repository Enable repository mode. This mode explicitly
looks for packages in repositories.
MODE
-g --gen-config Generate a configuration file
-f --fulldeptree Generate a dependency graph
-m --metadata Generate a metadata graph (default mode)
xbps-install
Usage: xbps-install [OPTIONS] [PKGNAME...]
OPTIONS
-A --automatic Set automatic installation mode
-C --config <dir> Path to confdir (xbps.d)
-c --cachedir <dir> Path to cachedir
-d --debug Debug mode shown to stderr
-D --download-only Download packages and check integrity, nothing else
-f --force Force package re-installation
If specified twice, all files will be overwritten.
-h --help Print help usage
-i --ignore-conf-repos Ignore repositories defined in xbps.d
-I --ignore-file-conflicts Ignore detected file conflicts
-U --unpack-only Unpack packages in transaction, do not configure them
-M --memory-sync Remote repository data is fetched and stored
in memory, ignoring on-disk repodata archives
-n --dry-run Dry-run mode
-R,--repository <url> Add repository to the top of the list
This option can be specified multiple times
-r --rootdir <dir> Full path to rootdir
--reproducible Enable reproducible mode in pkgdb
-S --sync Sync remote repository index
-u --update Update target package(s)
-v --verbose Verbose messages
-y --yes Assume yes to all questions
-V --version Show XBPS version
xbps-remove
Usage: xbps-remove [OPTIONS] [PKGNAME...]
OPTIONS
-C --config <dir> Path to confdir (xbps.d)
-c --cachedir <dir> Path to cachedir
-d --debug Debug mode shown to stderr
-F --force-revdeps Force package removal even with revdeps or
unresolved shared libraries
-f --force Force package files removal
-h --help Print help usage
-n --dry-run Dry-run mode
-O --clean-cache Remove obsolete packages in cachedir
-o --remove-orphans Remove package orphans
-R --recursive Recursively remove dependencies
-r --rootdir <dir> Full path to rootdir
-v --verbose Verbose messages
-y --yes Assume yes to all questions
-V --version Show XBPS version
src
https://man.voidlinux.org/xbps-install.1
https://docs.voidlinux.org/xbps/index.html
Comments
Post a Comment