XBPS-INSTALL(1)
π xbps-install π
okay bestie, so this is a page from the General Commands Manual β it's xbps-install(1), and honestly it's the main character of the whole XBPS saga. Sit down, grab a lil drink, we're learning this together π
β¨ NAME β¨
xbps-install β the XBPS utility that (re)installs and updates packages. like, that's her whole job. no cap.
πΈ SYNOPSIS πΈ
xbps-install [OPTIONS] [PKG...]
π¦ DESCRIPTION π¦
So xbps-install installs, reinstalls, downgrades and updates packages inside the target root directory. multitasking icon behavior π
The PKG argument is a package expression, and yes we get a whole section about that below, don't worry.
If the package is already installed, it gets updated to the version available in the repositories that matches the PACKAGE EXPRESSION. If it's not installed, it gets installed β or reinstalled/downgraded if the -f, --force option is set. periodt.
π§ PACKAGE EXPRESSION π§
A package expression is basically a way to match a pattern, and rn xbps supports 3 ways to write them:
- by package name, i.e:
"foo". - by exact package name and version, i.e:
"foo-1.0_1". - by specifying a package name and version separated by any of these version comparators:
<less than>greater than<=less or equal than>=greater or equal than
Example: "foo>=2.0".
And here's the rule: the first repository matching the package expression wins π
π PACKAGE MODES π
An installed package can have some specific modes of operation, and currently these are the ones available:
hold
The package is on hold mode. Packages in this mode won't be updated unless it's explicitely declared to be updated. The only way to update packages in this mode is by using the -f, --force option. To list packages in this mode use xbps-query -H.
manual
The package is in manual mode of installation and won't be considered for removal when running xbps-remove -o. To list packages in this mode use xbps-query -m.
repolock
A package in repolock mode will only accept updates that are available in the same repository that was used for installing. To list packages in this mode use xbps-query --list-repolock-pkgs.
π₯ OPTIONS π₯
-A,--automaticβ Enables automatic installation mode, i.e. package will be treated as orphan if no package is depending on it directly. See--mode autoinxbps-pkgdb(1).-C,--config dirβ Specifies a path to the XBPS configuration directory. If the first character is not/then it's a relative path of rootdir.-c,--cachedir dirβ Specifies a path to the cache directory, where binary packages are stored. If the first character is not/then it's a relative path of rootdir.-d,--debugβ Enables extra debugging shown tostderr.-D,--download-onlyβ Only download packages to the cache, do not do any other installation steps. This may be useful for doing system upgrades while offline, or automatically downloading updates while leaving you with the option of still manually running the update.-f,--forceβ Force installation (downgrade if package version in repos is less than installed version), or reinstallation (if package version in repos is the same) to the targetPKG, overwriting regular package files and symlinks (if they have been modified) but preserving configuration files. The only way to update packages onholdmode is by using this flag. If-fis specified twice all files will be unpacked, even configuration files.-h,--helpβ Show the help message.-I,--ignore-file-conflictsβ Ignore detected file conflicts in a transaction.-i,--ignore-conf-reposβ Ignore repositories defined in configuration files. Only repositories specified in the command line via--repositorywill be used.-M,--memory-syncβ For remote repositories, the data is fetched and stored in memory for the current operation. Cached on-disk repository indexes of remote repositories will be ignored.-n,--dry-runβ Dry-run mode. Show what actions would be done but don't change any state of the system. To use a fresh repository indexes use-Mfor in memory sync.
The output will be a line for each action in the following format:
<pkgver> <action> <arch> <repository> <installedsize> <downloadsize>
-R,--repository urlβ Appends the specified repository to the top of the list. The url argument expects a URL to the repository for remote repositories or a path for local repositories. Note that remote repositories must be signed usingxbps-rindex(1). This option can be specified multiple times.--reproducibleβ Enables reproducible mode in pkgdb. Theinstall-dateandrepositorypackage objects are not stored in pkgdb.--stagingβ Enables the use of staged packages from remote repositories.-r,--rootdir dirβ Specifies a full path for the target root directory.-S,--syncβ Synchronize remote repository index files.-U,--unpack-onlyβ If set, packages to be installed or upgraded in the transaction won't be configured, just unpacked. That means that those packages should be reconfigured viaxbps-reconfigure(1).-u,--updateβ Performs a full system upgrade: all installed packages (except those on hold, see--mode holdinxbps-pkgdb(1)) will be updated to the greatest versions that were found in repositories.-v,--verboseβ Enables verbose messages.-y,--yesβ Assume yes to most questions and avoid interactive questions. A prompt will still be shown if the transaction requires trusting a new signing key for packages. If you need to automate new installations, it is necessary to add these keys to the system before installation, see "FILES".-V,--versionβ Show the version information.
π ENVIRONMENT π
FORCE_IPV4β Only use IPv4.FORCE_IPV6β Only use IPv6.FTP_PASSIVE_MODEβ If set to anything else thannopassive mode will be set for the ftp connection.FTP_LOGINβ User name to be set for ftp authentication.FTP_PASSWORDβ Password to be set for ftp authentication.FTP_PROXYβ Proxy URL that will be used to establish a ftp connection.HTTP_PROXYβ Proxy URL that will be used to establish a http connection.HTTP_PROXY_AUTHβ Sets the credentials to authenticate a user agent to a proxy server, in the formuser:pass.HTTP_AUTHβ Sets the credentials to authenticate to a http server, in the formuser:pass.HTTP_REFERERβ Overrides the defaultRefererhttp header.HTTP_USER_AGENTβ Override the defaultUser-Agenthttp header.NO_PROXYβ Specifies a set of domains for which the proxy should not be consulted. The contents is a comma-, or space-separated list of domain names. A single asterisk will override all proxy variables and no transactions will be proxied.SOCKS_PROXYβ Proxy URL that will be used to establish a socks connection.SSL_NO_VERIFY_HOSTNAMEβ Disables SSL/TLS hostname verification.SSL_NO_VERIFY_PEERβ Disables SSL/TLS peer verification.SSL_CA_CERT_FILEβ Overrides the default CA certificates file, by default set to/etc/ssl/certs/ca-certificates.crt.SSL_CA_CERT_PATHβ Overrides the default CA certificates path, by default set to/etc/ssl/certs.SSL_CLIENT_CERT_FILEβ Sets the SSL/TLS client verification certificate file.SSL_CLIENT_KEY_FILEβ Sets the SSL/TLS client verification key file.CONNECTION_TIMEOUTβ Sets connection timeout in milliseconds instead of default value of 5 minutes. When-1, waits indefinitely.XBPS_ARCHβ Overridesuname(2)machine result with this value. Useful to install packages with a fake architecture.XBPS_TARGET_ARCHβ Sets the target architecture to this value. This variable differs fromXBPS_ARCHin that it allows you to install packages partially, because configuration phase is skipped (the target binaries might not be compatible with the native architecture).XBPS_SYSLOGβ Overrides thexbps.d(5)syslog=true|falseconfiguration option.
π FILES π
/etc/xbps.dβ Default configuration directory./usr/share/xbps.dβ Default system configuration directory./var/db/xbps/.<pkgname>-files.plistβ Package files metadata./var/db/xbps/pkgdb-0.38.plistβ Default package database (0.38 format). Keeps track of installed packages and properties./var/db/xbps/keysβ Default trusted keys directory./var/cache/xbpsβ Default cache directory to store downloaded binary packages.
π SEE ALSO π
xbps-alternatives(1), xbps-checkvers(1), xbps-create(1), xbps-dgraph(1), xbps-digest(1), xbps-fbulk(1), xbps-fetch(1), xbps-pkgdb(1), xbps-query(1), xbps-reconfigure(1), xbps-remove(1), xbps-rindex(1), xbps-uchroot(1), xbps-uunshare(1), xbps.d(5) β go read those too, they're all part of the friend group π«Ά
β AUTHORS β
Juan Romero Pardines <xtraeme@gmail.com> β the legend himself π
π BUGS π
Probably, but I try to make this not happen. Use it under your own responsibility and enjoy your life.
Report bugs at https://github.com/void-linux/xbps/issues
ok that's the whole page bestie, you're officially an xbps-install girlie now πΈ iykyk
kiss kiss, this was the Debian build from Feb 9, 2023 β XBPS-INSTALL(1), that's a wrap πβ¨ππ¦
π¦ where this page comes from
- alpine 3.24: xbps-doc 0.60.6-r1 Β· BSD-2-Clause AND BSD-3-Clause AND ISC
- nixos 26.05: xbps 0.60.7
- nixpkgs unstable: xbps 0.60.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms