2020-04-23 09:33:56 +05:30
|
|
|
.Dd April 23, 2020
|
2015-05-16 13:15:35 +05:30
|
|
|
.Dt XBPS-INSTALL 1
|
2021-06-26 20:13:07 +05:30
|
|
|
.Os
|
2012-11-06 14:53:07 +05:30
|
|
|
.Sh NAME
|
|
|
|
.Nm xbps-install
|
2014-05-27 15:03:45 +05:30
|
|
|
.Nd XBPS utility to (re)install and update packages
|
2015-10-30 11:15:26 +05:30
|
|
|
.Sh SYNOPSIS
|
2012-11-06 14:53:07 +05:30
|
|
|
.Nm xbps-install
|
|
|
|
.Op OPTIONS
|
|
|
|
.Op PKG...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2014-05-27 15:03:45 +05:30
|
|
|
utility installs, reinstalls, downgrades and updates packages in the target root directory.
|
2012-12-20 11:32:28 +05:30
|
|
|
The argument
|
|
|
|
.Ar PKG
|
|
|
|
is a package expression, which is explained in the
|
|
|
|
.Em PACKAGE EXPRESSION
|
2019-06-12 21:27:03 +05:30
|
|
|
section.
|
|
|
|
.Pp
|
|
|
|
If package is installed, it will be updated to the version available in repositories
|
2014-05-27 15:03:45 +05:30
|
|
|
matching the
|
|
|
|
.Em PACKAGE EXPRESSION .
|
|
|
|
Otherwise it will be installed, or reinstalled/downgraded if
|
|
|
|
.Fl f , Fl -force
|
|
|
|
option is set.
|
2012-12-20 11:32:28 +05:30
|
|
|
.Sh PACKAGE EXPRESSION
|
|
|
|
A package expression is a form to match a pattern; currently xbps
|
|
|
|
supports 3 ways to specify them:
|
|
|
|
.Bl -dash
|
|
|
|
.It
|
|
|
|
by package name, i.e:
|
|
|
|
.Dq Sy foo .
|
|
|
|
.It
|
|
|
|
by exact package name and version, i.e:
|
|
|
|
.Dq Sy foo-1.0_1 .
|
|
|
|
.It
|
|
|
|
by specifying a package name and version separated by any of the following version comparators:
|
|
|
|
.Pp
|
2014-09-30 15:06:08 +05:30
|
|
|
.Bl -item -compact
|
2012-12-20 11:32:28 +05:30
|
|
|
.It
|
|
|
|
.Sy <
|
|
|
|
less than
|
|
|
|
.It
|
|
|
|
.Sy >
|
|
|
|
greater than
|
|
|
|
.It
|
|
|
|
.Sy <=
|
|
|
|
less or equal than
|
|
|
|
.It
|
|
|
|
.Sy >=
|
|
|
|
greater or equal than
|
|
|
|
.Pp
|
|
|
|
Example:
|
|
|
|
.Dq Sy foo>=2.0 .
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2014-09-12 15:45:03 +05:30
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The first repository matching the package expression wins.
|
2020-04-23 10:48:25 +05:30
|
|
|
.Sh PACKAGE MODES
|
|
|
|
An installed package can have some specific modes of operation.
|
|
|
|
Currently the following modes are available:
|
|
|
|
.Bl -tag -width -x
|
|
|
|
.It Sy 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
|
2021-06-26 20:13:07 +05:30
|
|
|
.Fl f , Fl -force
|
2020-04-23 10:48:25 +05:30
|
|
|
option.
|
|
|
|
To list packages in this mode use
|
|
|
|
.Nm xbps-query Fl H .
|
|
|
|
.It Sy manual
|
|
|
|
The package is in manual mode of installation and won't be considered for
|
|
|
|
removal when running
|
|
|
|
.Nm xbps-remove Fl o .
|
|
|
|
To list packages in this mode use
|
|
|
|
.Nm xbps-query Fl m .
|
|
|
|
.It Sy 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
|
|
|
|
.Nm xbps-query Fl -list-repolock-pkgs .
|
|
|
|
.El
|
2012-11-06 14:53:07 +05:30
|
|
|
.Sh OPTIONS
|
2012-11-06 15:03:29 +05:30
|
|
|
.Bl -tag -width -x
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl A , Fl -automatic
|
2012-11-06 14:53:07 +05:30
|
|
|
Enables automatic installation mode, i.e. package will be treated as orphan
|
|
|
|
if no package is depending on it directly.
|
2016-09-20 13:17:51 +05:30
|
|
|
.No See Fl -mode Sy auto No in Xr xbps-pkgdb 1 .
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl C , Fl -config Ar dir
|
2014-11-06 14:28:04 +05:30
|
|
|
Specifies a path to the XBPS configuration directory.
|
2017-07-11 07:58:57 +05:30
|
|
|
If the first character is not '/' then it's a relative path of
|
2014-11-06 14:28:04 +05:30
|
|
|
.Ar rootdir .
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl c , Fl -cachedir Ar dir
|
2014-11-06 14:28:04 +05:30
|
|
|
Specifies a path to the cache directory, where binary packages are stored.
|
2017-07-11 07:58:57 +05:30
|
|
|
If the first character is not '/' then it's a relative path of
|
2014-11-06 14:28:04 +05:30
|
|
|
.Ar rootdir .
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl d , Fl -debug
|
2012-11-06 14:53:07 +05:30
|
|
|
Enables extra debugging shown to stderr.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl D , Fl -download-only
|
2019-06-21 19:27:25 +05:30
|
|
|
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.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl f , Fl -force
|
2020-04-23 09:33:56 +05:30
|
|
|
Force installation (downgrade if package version in repos is less than installed version),
|
2014-05-27 15:03:45 +05:30
|
|
|
or reinstallation (if package version in repos is the same) to the target
|
|
|
|
.Ar PKG ,
|
|
|
|
overwriting regular package files and symlinks (if they have been modified) but
|
2013-02-02 16:00:42 +05:30
|
|
|
.Em preserving configuration files .
|
2020-04-23 09:33:56 +05:30
|
|
|
The only way to update packages on
|
|
|
|
.Em hold
|
|
|
|
mode is by using this flag.
|
2013-02-02 16:00:42 +05:30
|
|
|
If
|
|
|
|
.Fl f
|
2014-08-21 22:35:07 +05:30
|
|
|
is specified twice all files will be unpacked, even
|
|
|
|
.Em configuration files .
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl h , Fl -help
|
2015-10-30 11:15:26 +05:30
|
|
|
Show the help message.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl I , Fl -ignore-file-conflicts
|
2019-06-21 18:51:58 +05:30
|
|
|
Ignore detected file conflicts in a transaction.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl i , Fl -ignore-conf-repos
|
2014-11-21 15:26:41 +05:30
|
|
|
Ignore repositories defined in configuration files.
|
|
|
|
Only repositories specified in the command line via
|
|
|
|
.Ar --repository
|
|
|
|
will be used.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl M , Fl -memory-sync
|
2014-11-27 15:12:05 +05:30
|
|
|
For remote repositories, the data is fetched and stored in memory for the current
|
2020-04-23 10:48:25 +05:30
|
|
|
operation.
|
2021-06-26 20:13:07 +05:30
|
|
|
Cached on-disk repository indexes of remote repositories will be ignored.
|
|
|
|
.It Fl n , Fl -dry-run
|
2020-04-23 10:48:25 +05:30
|
|
|
Dry-run mode.
|
2021-06-26 20:13:07 +05:30
|
|
|
Show what actions would be done but don't change any state of the system.
|
|
|
|
To use a fresh repository indexes use
|
2020-05-01 19:10:38 +05:30
|
|
|
.Fl M
|
2021-06-26 20:13:07 +05:30
|
|
|
for in memory sync.
|
|
|
|
.Pp
|
|
|
|
The output will be a line for each action in the following format:
|
|
|
|
.D1 <pkgver> <action> <arch> <repository> <installedsize> <downloadsize>
|
|
|
|
.It Fl R , Fl -repository Ar url
|
2020-04-23 10:48:25 +05:30
|
|
|
Appends the specified repository to the top of the list.
|
|
|
|
The
|
2014-12-06 15:51:30 +05:30
|
|
|
.Ar url
|
|
|
|
argument expects a URL to the repository for remote repositories or
|
2020-04-23 10:48:25 +05:30
|
|
|
a path for local repositories.
|
|
|
|
Note that remote repositories must be signed using
|
2015-12-24 17:16:41 +05:30
|
|
|
.Xr xbps-rindex 1 .
|
2014-12-06 15:51:30 +05:30
|
|
|
This option can be specified multiple times.
|
2019-12-29 15:08:55 +05:30
|
|
|
.It Fl -reproducible
|
2020-04-23 10:48:25 +05:30
|
|
|
Enables reproducible mode in pkgdb.
|
|
|
|
The
|
2019-12-29 15:08:55 +05:30
|
|
|
.Ar install-date
|
2019-12-29 21:01:23 +05:30
|
|
|
and
|
|
|
|
.Ar repository
|
|
|
|
package objects are not stored in pkgdb.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl r , Fl -rootdir Ar dir
|
2012-11-06 14:53:07 +05:30
|
|
|
Specifies a full path for the target root directory.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl S , Fl -sync
|
2013-01-31 15:14:33 +05:30
|
|
|
Synchronize remote repository index files.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl U , Fl -unpack-only
|
2015-06-03 14:45:11 +05:30
|
|
|
If set, packages to be installed or upgraded in the transaction won't be configured,
|
2020-04-23 10:48:25 +05:30
|
|
|
just unpacked.
|
|
|
|
That means that those packages should be reconfigured via
|
2015-06-03 14:45:11 +05:30
|
|
|
.Xr xbps-reconfigure 1 .
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl u , Fl -update
|
2016-09-20 13:17:51 +05:30
|
|
|
Performs a full system upgrade: all installed packages
|
|
|
|
.Pq except those on Sy hold , No see Fl -mode Sy hold No in Xr xbps-pkgdb 1
|
|
|
|
will be updated to the greatest
|
2014-05-27 15:03:45 +05:30
|
|
|
versions that were found in repositories.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl v , Fl -verbose
|
2012-11-06 14:53:07 +05:30
|
|
|
Enables verbose messages.
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl y , Fl -yes
|
2021-06-28 03:46:03 +05:30
|
|
|
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
|
|
|
|
.Sx FILES .
|
2021-06-26 20:13:07 +05:30
|
|
|
.It Fl V , Fl -version
|
2015-10-30 11:15:26 +05:30
|
|
|
Show the version information.
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2013-02-20 16:12:06 +05:30
|
|
|
.Sh ENVIRONMENT
|
2019-06-12 21:27:03 +05:30
|
|
|
.Bl -tag -width SSL_NO_VERIFY_HOSTNAME
|
2019-06-15 22:14:31 +05:30
|
|
|
.It Sy FORCE_IPV4
|
|
|
|
Only use IPv4.
|
|
|
|
.It Sy FORCE_IPV6
|
|
|
|
Only use IPv6.
|
2019-06-12 21:27:03 +05:30
|
|
|
.It Sy FTP_PASSIVE_MODE
|
|
|
|
If set to anything else than
|
|
|
|
.Ar "no"
|
|
|
|
passive mode will be set for the ftp connection.
|
|
|
|
.It Sy FTP_LOGIN
|
|
|
|
User name to be set for ftp authentication.
|
|
|
|
.It Sy FTP_PASSWORD
|
|
|
|
Password to be set for ftp authentication.
|
|
|
|
.It Sy FTP_PROXY
|
|
|
|
Proxy URL that will be used to establish a ftp connection.
|
|
|
|
.It Sy HTTP_PROXY
|
|
|
|
Proxy URL that will be used to establish a http connection.
|
|
|
|
.It Sy HTTP_PROXY_AUTH
|
|
|
|
Sets the credentials to authenticate a user agent to a proxy server, in the form
|
|
|
|
.Ar user:pass .
|
|
|
|
.It Sy HTTP_AUTH
|
|
|
|
Sets the credentials to authenticate to a http server, in the form
|
|
|
|
.Ar user:pass .
|
|
|
|
.It Sy HTTP_REFERER
|
|
|
|
Overrides the default Referer http header.
|
|
|
|
.It Sy HTTP_USER_AGENT
|
|
|
|
Override the default User-Agent http header.
|
|
|
|
.It Sy 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.
|
|
|
|
.It Sy SOCKS_PROXY
|
|
|
|
Proxy URL that will be used to establish a socks connection.
|
|
|
|
.It Sy SSL_NO_VERIFY_HOSTNAME
|
|
|
|
Disables SSL/TLS hostname verification.
|
|
|
|
.It Sy SSL_NO_VERIFY_PEER
|
|
|
|
Disables SSL/TLS peer verification.
|
|
|
|
.It Sy SSL_CA_CERT_FILE
|
|
|
|
Overrides the default CA certificates file, by default set to
|
|
|
|
.Ar /etc/ssl/certs/ca-certificates.crt .
|
|
|
|
.It Sy SSL_CA_CERT_PATH
|
|
|
|
Overrides the default CA certificates path, by default set to
|
|
|
|
.Ar /etc/ssl/certs .
|
|
|
|
.It Sy SSL_CLIENT_CERT_FILE
|
|
|
|
Sets the SSL/TLS client verification certificate file.
|
|
|
|
.It Sy SSL_CLIENT_KEY_FILE
|
|
|
|
Sets the SSL/TLS client verification key file.
|
2020-03-03 12:56:29 +05:30
|
|
|
.It Sy CONNECTION_TIMEOUT
|
|
|
|
Sets connection timeout in milliseconds
|
|
|
|
instead of default value of 5 minutes.
|
|
|
|
When -1, waits indefinitely.
|
2014-01-09 16:11:25 +05:30
|
|
|
.It Sy XBPS_ARCH
|
2013-02-20 16:12:06 +05:30
|
|
|
Overrides
|
|
|
|
.Xr uname 2
|
2020-04-23 10:48:25 +05:30
|
|
|
machine result with this value.
|
|
|
|
Useful to install packages with a fake architecture
|
2014-01-09 16:11:25 +05:30
|
|
|
.It Sy XBPS_TARGET_ARCH
|
2020-04-23 10:48:25 +05:30
|
|
|
Sets the target architecture to this value.
|
|
|
|
This variable differs from
|
2014-01-09 16:11:25 +05:30
|
|
|
.Sy XBPS_ARCH
|
|
|
|
in that it allows you to install packages partially, because
|
|
|
|
configuration phase is skipped (the target binaries might not be compatible with
|
|
|
|
the native architecture).
|
2021-12-28 19:46:47 +05:30
|
|
|
.It Sy XBPS_SYSLOG
|
|
|
|
Overrides the
|
|
|
|
.Xr xbps.d 5
|
|
|
|
.Sy syslog=true|false
|
|
|
|
configuration option.
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2012-11-06 14:53:07 +05:30
|
|
|
.Sh FILES
|
2014-09-11 15:51:33 +05:30
|
|
|
.Bl -tag -width /var/db/xbps/.<pkgname>-files.plist
|
2014-11-06 14:28:04 +05:30
|
|
|
.It Ar /etc/xbps.d
|
|
|
|
Default configuration directory.
|
2014-12-15 13:54:55 +05:30
|
|
|
.It Ar /usr/share/xbps.d
|
|
|
|
Default system configuration directory.
|
2014-09-11 15:51:33 +05:30
|
|
|
.It Ar /var/db/xbps/.<pkgname>-files.plist
|
|
|
|
Package files metadata.
|
|
|
|
.It Ar /var/db/xbps/pkgdb-0.38.plist
|
|
|
|
Default package database (0.38 format). Keeps track of installed packages and properties.
|
2021-06-28 03:46:03 +05:30
|
|
|
.It Ar /var/db/xbps/keys
|
|
|
|
Default trusted keys directory.
|
2012-11-06 14:53:07 +05:30
|
|
|
.It Ar /var/cache/xbps
|
2013-03-05 08:38:42 +05:30
|
|
|
Default cache directory to store downloaded binary packages.
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2012-11-06 14:53:07 +05:30
|
|
|
.Sh SEE ALSO
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-checkvers 1 ,
|
|
|
|
.Xr xbps-create 1 ,
|
|
|
|
.Xr xbps-dgraph 1 ,
|
xbps-digest(1): new utility that replaces "xbps-uhelper digest".
See the manual page:
XBPS-DIGEST(1) General Commands Manual XBPS-DIGEST(1)
NAME
xbps-digest - XBPS utility to generate message digests
SYNOPSIS
xbps-digest [OPTIONS] [FILE] [FILE+N]
DESCRIPTION
The xbps-digest utility generates message digests for specified FILE or
stdin if unset.
OPTIONS
-m, --mode mode
Sets the message digest mode. Supported: sha256. If unset, defaults
to sha256.
-h, --help
Show the help message.
-V, --version
Show the version information.
SEE ALSO
xbps.d(5), xbps-checkvers(1), xbps-create(1), xbps-dgraph(1),
xbps-fbulk(1), xbps-install(1), xbps-pkgdb(1), xbps-query(1),
xbps-reconfigure(1), xbps-remove(1), xbps-rindex(1), xbps-uchroot(1),
xbps-uunshare(1)
AUTHORS
Juan Romero Pardines <xtraeme@gmail.com>
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
June 12, 2019
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-12 18:04:58 +05:30
|
|
|
.Xr xbps-digest 1 ,
|
2015-10-28 14:07:09 +05:30
|
|
|
.Xr xbps-fbulk 1 ,
|
2019-06-12 21:27:03 +05:30
|
|
|
.Xr xbps-fetch 1 ,
|
2015-05-16 13:15:35 +05:30
|
|
|
.Xr xbps-pkgdb 1 ,
|
|
|
|
.Xr xbps-query 1 ,
|
|
|
|
.Xr xbps-reconfigure 1 ,
|
|
|
|
.Xr xbps-remove 1 ,
|
|
|
|
.Xr xbps-rindex 1 ,
|
|
|
|
.Xr xbps-uchroot 1 ,
|
|
|
|
.Xr xbps-uunshare 1 ,
|
|
|
|
.Xr xbps.d 5
|
2012-11-06 14:53:07 +05:30
|
|
|
.Sh AUTHORS
|
|
|
|
.An Juan Romero Pardines <xtraeme@gmail.com>
|
|
|
|
.Sh BUGS
|
2020-04-23 10:48:25 +05:30
|
|
|
Probably, but I try to make this not happen.
|
|
|
|
Use it under your own
|
2015-10-28 14:33:41 +05:30
|
|
|
responsibility and enjoy your life.
|
2012-11-06 14:53:07 +05:30
|
|
|
.Pp
|
2018-09-23 21:21:07 +05:30
|
|
|
Report bugs at https://github.com/void-linux/xbps/issues
|