2014-09-12 15:45:03 +05:30
|
|
|
.Dd September 12, 2014
|
2012-11-06 14:53:07 +05:30
|
|
|
.Os Void Linux
|
|
|
|
.Dt xbps-install 8
|
|
|
|
.Sh NAME
|
|
|
|
.Nm xbps-install
|
2014-05-27 15:03:45 +05:30
|
|
|
.Nd XBPS utility to (re)install and update packages
|
2012-11-06 14:53:07 +05:30
|
|
|
.Sh SYNOPSYS
|
|
|
|
.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
|
2014-05-27 15:03:45 +05:30
|
|
|
section. If package is installed, it will be updated to the version available in repositories
|
|
|
|
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:
|
|
|
|
.Bl -item -width xx -compact
|
|
|
|
.Pp
|
|
|
|
.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.
|
2012-11-06 14:53:07 +05:30
|
|
|
.Sh OPTIONS
|
2012-11-06 15:03:29 +05:30
|
|
|
.Bl -tag -width -x
|
2012-11-06 14:53:07 +05:30
|
|
|
.It Fl A, Fl -automatic
|
|
|
|
Enables automatic installation mode, i.e. package will be treated as orphan
|
|
|
|
if no package is depending on it directly.
|
|
|
|
.It Fl C, Fl -config Ar file
|
|
|
|
Specifies a full path to the XBPS configuration file.
|
|
|
|
.It Fl c, Fl -cachedir Ar dir
|
|
|
|
Specifies a full path to the cache directory, where binary packages are stored.
|
|
|
|
.It Fl d, Fl -debug
|
|
|
|
Enables extra debugging shown to stderr.
|
|
|
|
.It Fl f, Fl -force
|
2014-05-27 15:03:45 +05:30
|
|
|
Force downgrade installation (if package version in repos is less than installed version),
|
|
|
|
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 .
|
|
|
|
If
|
|
|
|
.Fl f
|
2014-08-21 22:35:07 +05:30
|
|
|
is specified twice all files will be unpacked, even
|
|
|
|
.Em configuration files .
|
2012-11-06 14:53:07 +05:30
|
|
|
.It Fl h, Fl -help
|
|
|
|
Show the help usage.
|
|
|
|
.It Fl n, Fl -dry-run
|
2012-11-06 15:03:29 +05:30
|
|
|
Dry-run mode. Show what actions would be done but don't do anything.
|
2013-09-18 20:43:43 +05:30
|
|
|
.It Fl R, Fl -repository=uri
|
2013-12-04 21:29:15 +05:30
|
|
|
Repository to be added to the top of the list. This option can be specified multiple times.
|
2012-11-06 14:53:07 +05:30
|
|
|
.It Fl r, Fl -rootdir Ar dir
|
|
|
|
Specifies a full path for the target root directory.
|
2013-01-31 15:14:33 +05:30
|
|
|
.It Fl S, Fl -sync
|
|
|
|
Synchronize remote repository index files.
|
2012-11-06 14:53:07 +05:30
|
|
|
.It Fl u, Fl -update
|
2014-05-27 15:03:45 +05:30
|
|
|
Performs a full system upgrade: all installed packages will be updated to the greatest
|
|
|
|
versions that were found in repositories.
|
2012-11-06 14:53:07 +05:30
|
|
|
.It Fl v, Fl -verbose
|
|
|
|
Enables verbose messages.
|
|
|
|
.It Fl y, Fl -yes
|
|
|
|
Assume yes to all questions and avoid interactive questions.
|
|
|
|
.It Fl V, Fl -version
|
|
|
|
Shows the XBPS version.
|
2014-08-23 12:56:02 +05:30
|
|
|
.El
|
2013-02-20 16:12:06 +05:30
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.Bl -tag -width XBPS_TARGET_ARCH
|
2014-01-09 16:11:25 +05:30
|
|
|
.It Sy XBPS_ARCH
|
2013-02-20 16:12:06 +05:30
|
|
|
Overrides
|
|
|
|
.Xr uname 2
|
2014-01-09 16:11:25 +05:30
|
|
|
machine result with this value. Useful to install packages with a fake
|
2013-02-20 16:12:06 +05:30
|
|
|
architecture.
|
2014-01-09 16:11:25 +05:30
|
|
|
.It Sy XBPS_TARGET_ARCH
|
|
|
|
Sets the target architecture to this value. This variable differs from
|
|
|
|
.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).
|
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
|
2012-11-06 14:53:07 +05:30
|
|
|
.It Ar /etc/xbps/xbps.conf
|
2013-03-05 08:38:42 +05:30
|
|
|
Default configuration file.
|
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.
|
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
|
2014-04-07 15:52:55 +05:30
|
|
|
.Xr xbps-checkvers 8 ,
|
2012-11-06 14:53:07 +05:30
|
|
|
.Xr xbps-create 8 ,
|
|
|
|
.Xr xbps-dgraph 8 ,
|
|
|
|
.Xr xbps-pkgdb 8 ,
|
|
|
|
.Xr xbps-query 8 ,
|
|
|
|
.Xr xbps-reconfigure 8 ,
|
|
|
|
.Xr xbps-remove 8 ,
|
2014-04-21 14:28:09 +05:30
|
|
|
.Xr xbps-rindex 8 ,
|
|
|
|
.Xr xbps-uchroot 8
|
2012-11-06 14:53:07 +05:30
|
|
|
.Sh AUTHORS
|
|
|
|
.An Juan Romero Pardines <xtraeme@gmail.com>
|
|
|
|
.Sh BUGS
|
|
|
|
Probably, but I try to make this not happen. Use it under your own
|
|
|
|
responsability and enjoy your life.
|
|
|
|
.Pp
|
2013-12-17 20:08:56 +05:30
|
|
|
Report bugs in https://github.com/voidlinux/xbps/issues
|