2012-09-24 15:33:47 +05:30
|
|
|
.Dd September 24, 2012
|
2011-12-17 22:10:23 +05:30
|
|
|
.Os Void GNU/Linux
|
|
|
|
.Dt xbps-bin 8
|
|
|
|
.Sh NAME
|
|
|
|
.Nm xbps-bin
|
|
|
|
.Nd XBPS command for binary packages
|
|
|
|
.Sh SYNOPSYS
|
|
|
|
.Nm xbps-bin
|
|
|
|
.Op options
|
|
|
|
.Op target
|
|
|
|
.Op pkgname(s)|pkgpattern(s)
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2011-12-17 22:59:48 +05:30
|
|
|
command is used to handle binary packages created for the XBPS binary
|
2011-12-17 22:10:23 +05:30
|
|
|
package system. You can use it to install, remove, update, list or show information
|
|
|
|
about any binary package. Binary packages can be installed from
|
|
|
|
.Em local
|
|
|
|
(directories)
|
|
|
|
or
|
|
|
|
.Em remote
|
|
|
|
repositories (http, https or ftp), see
|
|
|
|
.Xr xbps-repo 8
|
|
|
|
for information about repositories.
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Fl
|
|
|
|
.It Fl A
|
|
|
|
Sets the
|
|
|
|
.Em automatic-install
|
|
|
|
boolean object for a package, therefore explicitly
|
2011-02-26 15:44:05 +05:30
|
|
|
setting that package was installed as it were a dependency, even if it is not.
|
2011-12-17 22:10:23 +05:30
|
|
|
Use of this option takes effect in the
|
2012-05-08 13:24:06 +05:30
|
|
|
.Em dist-upgrade ,
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em install
|
|
|
|
and
|
|
|
|
.Em update
|
|
|
|
targets.
|
|
|
|
Targetted packages and its required dependencies will be matched.
|
2012-09-24 15:33:47 +05:30
|
|
|
.It Fl B Ar repository
|
|
|
|
If a configuration file cannot be found, this repository will be used as
|
|
|
|
as primary source to install packages.
|
2011-12-17 22:10:23 +05:30
|
|
|
.It Fl C Ar conffile
|
|
|
|
Full path to the XBPS configuration file. By default set to
|
|
|
|
.Pa /etc/xbps/xbps.conf .
|
|
|
|
.It Fl c Ar cachedir
|
|
|
|
Sets the
|
|
|
|
.Em cache
|
|
|
|
directory to store downloaded binary packages from remote
|
|
|
|
repositories. By default set to
|
|
|
|
.Pa /var/cache/xbps .
|
|
|
|
.It Fl d
|
|
|
|
Enables extra debugging output to be shown to stderr.
|
|
|
|
.It Fl D
|
|
|
|
Only show the URLs to download the binary packages from repositories. This is
|
|
|
|
useful if you want to download them by other means, and later you can move
|
|
|
|
them to the cachedir to start the installation. This option can be used for
|
2012-05-08 13:24:06 +05:30
|
|
|
the install, update and dist-upgrade targets.
|
2011-12-17 22:10:23 +05:30
|
|
|
.It Fl F
|
2011-02-05 15:55:04 +05:30
|
|
|
Used currently in the
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em remove
|
|
|
|
target. If set, package will be removed even if other packages are currently
|
|
|
|
depending on it, i.e package is a dependency of any other installed package.
|
|
|
|
.It Fl f
|
2010-05-04 01:20:34 +05:30
|
|
|
Used currently in the
|
2011-12-20 20:38:23 +05:30
|
|
|
.Em install ,
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em reconfigure
|
2010-05-04 01:20:34 +05:30
|
|
|
and
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em remove
|
|
|
|
targets. If set, package(s) will be reconfigured regardless of its state in
|
|
|
|
.Em reconfigure
|
|
|
|
target, or to
|
|
|
|
.Em force
|
|
|
|
removal of package files even if its hash does not match in the
|
|
|
|
.Em remove
|
2011-12-24 05:35:26 +05:30
|
|
|
target. If set, package(s) will be reinstalled even if its state is
|
2011-12-20 20:38:23 +05:30
|
|
|
.Em installed
|
|
|
|
when used with the
|
|
|
|
.Em install
|
|
|
|
target.
|
2011-12-17 22:10:23 +05:30
|
|
|
.It Fl M
|
|
|
|
Sets the
|
|
|
|
.Em automatic-install
|
|
|
|
boolean object for package to false, therefore
|
2011-02-26 15:44:05 +05:30
|
|
|
explicitly setting that package was installed manually by the user. Use of this
|
2011-12-17 22:10:23 +05:30
|
|
|
option takes effect in the
|
2012-05-08 13:24:06 +05:30
|
|
|
.Em dist-upgrade ,
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em install
|
|
|
|
and
|
|
|
|
.Em update
|
|
|
|
targets
|
2011-02-26 15:44:05 +05:30
|
|
|
and target packages and its required dependencies will be matched.
|
2012-02-03 19:23:28 +05:30
|
|
|
.It Fl n
|
|
|
|
Enables dry-run mode.
|
|
|
|
To show the actions that would be executed in a transaction.
|
|
|
|
This mode takes effect in the
|
2012-05-08 13:28:56 +05:30
|
|
|
.Em remove-orphans ,
|
2012-05-08 13:24:06 +05:30
|
|
|
.Em dist-upgrade ,
|
2012-02-03 19:23:28 +05:30
|
|
|
.Em install ,
|
|
|
|
.Rm remove
|
|
|
|
and
|
|
|
|
.Em update
|
|
|
|
targets.
|
2011-12-17 22:10:23 +05:30
|
|
|
.It Fl o Ar key Op key2,...
|
2011-10-29 11:47:54 +05:30
|
|
|
Used currently in the
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em show
|
|
|
|
target. Prints the value of specified key(s) from
|
|
|
|
package's properties dictionary. Multiple keys can be specified delimited by
|
|
|
|
the comma character.
|
|
|
|
.It Fl R
|
2011-01-30 12:38:34 +05:30
|
|
|
Used currently in the
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em remove
|
|
|
|
target. If set, recursively removes packages that
|
|
|
|
are not required by any other installed package and that were installed by
|
|
|
|
the package that we want to remove.
|
|
|
|
.It Fl r Ar rootdir
|
2010-05-04 01:20:34 +05:30
|
|
|
Sets the
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em root
|
|
|
|
directory. By default the root directory is set to
|
|
|
|
.Em / .
|
|
|
|
Please note that the database directory is always set to
|
|
|
|
.Pa /var/db/xbps
|
|
|
|
independently of rootdir setting. So if you use a rootdir of
|
|
|
|
.Pa /blah ,
|
|
|
|
metadata stuff will go into
|
|
|
|
.Pa /blah/var/db/xbps .
|
2012-05-31 11:38:32 +05:30
|
|
|
.It Fl S
|
|
|
|
Sync remote repository index files before executing the target.
|
|
|
|
Used currently in the
|
|
|
|
.Em dist-upgrade ,
|
|
|
|
.Em install
|
|
|
|
and
|
|
|
|
.Em update
|
|
|
|
targets.
|
2011-12-17 22:10:23 +05:30
|
|
|
.It Fl v
|
|
|
|
Shows verbose messages. Useful while installing and removing packages.
|
|
|
|
.It Fl y
|
2011-02-05 15:55:04 +05:30
|
|
|
Assume
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em yes
|
|
|
|
to all questions. This will bypass all questions and immediately proceed
|
|
|
|
with the task.
|
|
|
|
.It Fl V
|
|
|
|
Shows the current XBPS release version (version, API, index).
|
|
|
|
.Sh TARGETS
|
|
|
|
Please note that all targets are case insensitive.
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width ident
|
|
|
|
.It Sy check Ar pkgname | Ar all
|
|
|
|
Checks for integrity errors in installed packages. The checks are to found
|
|
|
|
missing run-time dependencies, missing and modified package files and
|
|
|
|
metadata files. If the all keyword is used, all packages currently installed
|
|
|
|
will be checked, otherwise just pkgname.
|
2012-05-08 13:24:06 +05:30
|
|
|
.It Sy dist-upgrade
|
|
|
|
Updates all currently installed packages to the newest version available in
|
|
|
|
all repositories.
|
2011-12-22 15:15:13 +05:30
|
|
|
.It Sy find-files Ar pattern Ar [patterns ...]
|
2011-02-05 15:55:04 +05:30
|
|
|
Prints the name of the installed
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em package(s)
|
2011-12-22 15:15:13 +05:30
|
|
|
matching the pattern on its file list. Multiple patterns can be specified
|
|
|
|
as arguments.
|
2012-06-05 14:28:39 +05:30
|
|
|
.It Sy install Ar pattern Ar [patterns ...]
|
|
|
|
Install binary package(s) from repository pool by specifying a
|
|
|
|
.Em pattern .
|
2012-06-03 11:38:29 +05:30
|
|
|
Three different ways exist to install packages: by specifying just the
|
|
|
|
.Em package name ,
|
|
|
|
the best available version from repositories will be installed; by specifying a
|
|
|
|
.Em package pattern
|
|
|
|
with '>' '<' '>=' or '<='
|
|
|
|
.Em ( foo>=2.0 )
|
2012-06-05 14:28:39 +05:30
|
|
|
or by specifying an exact package version, i.e
|
|
|
|
.Em ( foo-1.0_1) .
|
|
|
|
The first repository matching
|
|
|
|
.Em pattern
|
|
|
|
will be used. The package(s) will be
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em downloaded
|
2011-01-27 19:14:39 +05:30
|
|
|
(if found in a remote repository),
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em unpacked
|
2010-05-04 01:20:34 +05:30
|
|
|
and
|
2012-06-05 14:28:39 +05:30
|
|
|
.Em configured .
|
2011-12-17 22:10:23 +05:30
|
|
|
The
|
|
|
|
.Em unpack
|
|
|
|
stage will execute the pre-install action on its INSTALL script, and unpack its files.
|
|
|
|
The
|
|
|
|
.Em configure
|
|
|
|
stage will run the post-install action set on its INSTALL script and will change its
|
|
|
|
.Em state
|
|
|
|
to installed in the package database.
|
|
|
|
.It Sy list Op state
|
|
|
|
Lists all currently installed packages. Optionally another argument can be specified
|
|
|
|
to list only packages with the specified
|
|
|
|
.Op state .
|
|
|
|
By default only packages fully installed will be listed if
|
|
|
|
.Em state
|
|
|
|
has not been specified. Accepted states are:
|
2011-12-24 05:35:26 +05:30
|
|
|
.Em half-removed ,
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em half-unpacked ,
|
2011-12-24 05:35:26 +05:30
|
|
|
.Em installed
|
2011-02-05 15:55:04 +05:30
|
|
|
and
|
2011-12-24 05:35:26 +05:30
|
|
|
.Em unpacked .
|
2011-12-17 22:10:23 +05:30
|
|
|
.It Sy list-manual
|
|
|
|
Lists packages that were installed manually by the user, i.e not as dependencies
|
|
|
|
of any other package.
|
|
|
|
.It Sy reconfigure Ar pkgname | Ar all
|
|
|
|
Reconfigure an unpacked package. Packages in this state are not fully installed,
|
|
|
|
because they were not configured for whatever reason. The configure stage will
|
|
|
|
run the post-install action set on its INSTALL script and will change its state
|
|
|
|
to installed in the package database. The
|
|
|
|
.Em all
|
|
|
|
keyword can be used to reconfigure all not configured packages. If
|
|
|
|
.Ql -f
|
|
|
|
option is used, the package will be reconfigured even if its state is already installed.
|
2012-06-05 14:28:39 +05:30
|
|
|
.It Sy remove Ar pkgname Ar [pkgnames ...]
|
2010-05-04 01:20:34 +05:30
|
|
|
Removes the installed package
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em pkgname(s) .
|
2011-12-24 05:35:26 +05:30
|
|
|
Files not matching the original SHA256 hash will be preserved. If
|
2011-12-17 22:10:23 +05:30
|
|
|
.Ql -f
|
2011-02-05 15:55:04 +05:30
|
|
|
option is used, package files will be
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em removed even if its SHA256 hash don't match .
|
2012-06-05 14:28:39 +05:30
|
|
|
If
|
|
|
|
.Ql -F
|
|
|
|
option is used, package will be removed even if there are
|
|
|
|
.Em installed reverse dependencies .
|
2012-05-08 13:28:56 +05:30
|
|
|
.It Sy remove-orphans
|
|
|
|
Removes package orphans. These packages were installed as dependencies and
|
|
|
|
currently there is not any package depending on it, directly or indirectly.
|
|
|
|
Usually it is safe to always answer yes.
|
2011-12-17 22:10:23 +05:30
|
|
|
.It Sy show Ar pkgname
|
2010-05-04 01:20:34 +05:30
|
|
|
Shows information for installed package
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em pkgname .
|
|
|
|
This will print the size it takes in filesystem, description, maintainer,
|
|
|
|
architecture and other useful information.
|
|
|
|
.It Sy show-deps Ar pkgname
|
|
|
|
Shows the list of dependencies that
|
|
|
|
.Em pkgname
|
|
|
|
requires at run time.
|
|
|
|
.It Sy show-files Ar pkgname
|
|
|
|
Shows the list of files that
|
|
|
|
.Em pkgname
|
|
|
|
contains.
|
|
|
|
.It Sy show-orphans
|
|
|
|
Shows the list of package orphans currently installed. Package orphans are
|
|
|
|
packages that were installed as dependencies of another package, but no other
|
|
|
|
package currently depends on.
|
|
|
|
.It Sy show-revdeps Ar pkgname
|
2010-05-04 01:20:34 +05:30
|
|
|
Shows the reverse dependencies for
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em pkgname .
|
|
|
|
Reverse dependencies are packages that are currently depending in
|
|
|
|
.Em pkgname
|
|
|
|
directly.
|
2012-06-05 14:28:39 +05:30
|
|
|
.It Sy update Ar pkgname Ar [pkgnames ...]
|
2010-05-04 01:20:34 +05:30
|
|
|
Updates
|
2012-06-05 14:28:39 +05:30
|
|
|
.Em pkgname
|
|
|
|
to the newest version available in repository pool. This can be used if only
|
|
|
|
.Em pkgname
|
2011-02-05 15:55:04 +05:30
|
|
|
need to be updated, unlike the
|
2012-05-08 13:24:06 +05:30
|
|
|
.Em dist-upgrade
|
2011-12-17 22:10:23 +05:30
|
|
|
target that will update all currently installed packages.
|
|
|
|
.Sh PACKAGE STATES
|
|
|
|
A package can be in a different state while it is being
|
|
|
|
.Em installed ,
|
|
|
|
.Em removed ,
|
2011-12-24 05:35:26 +05:30
|
|
|
.Em unpacked
|
2011-12-17 22:10:23 +05:30
|
|
|
or
|
2011-12-24 05:35:26 +05:30
|
|
|
.Em configured .
|
2011-12-17 22:10:23 +05:30
|
|
|
The following states are available:
|
|
|
|
.Bl -tag -width ident
|
|
|
|
.It Sy installed
|
|
|
|
The package is fully installed, that means it was unpacked and configured correctly.
|
|
|
|
.It Sy half-unpacked
|
2011-07-28 19:55:01 +05:30
|
|
|
The package was being unpacked but didn't finish properly for unknown reasons.
|
2011-12-17 22:10:23 +05:30
|
|
|
.It Sy unpacked
|
|
|
|
The package has been unpacked in destination root directory, but it is not fully
|
|
|
|
installed because it was not yet configured. Please note that some packages will
|
|
|
|
do not work if they are only unpacked.
|
2012-01-06 01:49:29 +05:30
|
|
|
.It Sy half-removed
|
2011-12-24 05:35:26 +05:30
|
|
|
The package removal did not finish for unknown reasons (power outage, process killed, etc).
|
|
|
|
The
|
|
|
|
.Em purge
|
|
|
|
action in its metadata REMOVE script has not been yet executed. The package
|
|
|
|
metadata directory is still available and it is registered in package database.
|
|
|
|
Packages in this state can be still removed.
|
2011-12-17 22:10:23 +05:30
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /var/db/xbps/metadata/<pkgname>/props.plist -compact
|
|
|
|
.It Pa /etc/xbps/xbps.conf
|
|
|
|
Default XBPS configuration file.
|
2012-09-29 23:07:22 +05:30
|
|
|
.It Pa /var/db/xbps
|
|
|
|
XBPS global metadata directory.
|
|
|
|
.It Pa /var/db/xbps/metadata/<pkgname>/files.plist
|
|
|
|
Installed package metadata list of files.
|
|
|
|
.It Pa /var/db/xbps/metadata/<pkgname>/props.plist
|
|
|
|
Installed package metadata properties.
|
2012-01-20 15:40:52 +05:30
|
|
|
.It Pa /var/db/xbps/pkgdb.plist
|
2012-09-29 23:07:22 +05:30
|
|
|
XBPS master package database plist file.
|
2011-12-17 22:10:23 +05:30
|
|
|
.It Pa /var/cache/xbps
|
|
|
|
XBPS cache directory for downloaded binary packages.
|
|
|
|
.Sh EXAMPLES
|
2012-06-05 14:28:39 +05:30
|
|
|
Install best package version by specifying a
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em pkgname :
|
|
|
|
.Pp
|
|
|
|
.Dl $ xbps-bin install foo
|
|
|
|
.Pp
|
|
|
|
Install a package by specifying a
|
|
|
|
.Em package pattern :
|
|
|
|
.Pp
|
|
|
|
.Dl $ xbps-bin install \*qfoo>=3.0\*q
|
|
|
|
.Pp
|
2012-06-05 14:28:39 +05:30
|
|
|
Install an exact
|
|
|
|
.Em package version :
|
|
|
|
.Pp
|
|
|
|
.Dl $ xbps-bin install foo-1.0_1
|
|
|
|
.Pp
|
2011-12-17 22:10:23 +05:30
|
|
|
Install multiple packages by specifying
|
|
|
|
.Em pkgnames
|
|
|
|
and
|
2012-06-05 14:28:39 +05:30
|
|
|
.Em package patterns
|
|
|
|
and
|
|
|
|
.Em exact package versions :
|
2011-12-17 22:10:23 +05:30
|
|
|
.Pp
|
2012-06-05 14:28:39 +05:30
|
|
|
.Dl $ xbps-bin install foo \*qblah<=4.0\*q baz-2.0_1 \*qblob>1.0<1.8\*q
|
2011-12-17 22:10:23 +05:30
|
|
|
.Pp
|
|
|
|
Find the package that owns the file
|
|
|
|
.Pa /bin/mount :
|
|
|
|
.Pp
|
|
|
|
.Dl $ xbps-bin find-files /bin/mount
|
|
|
|
.Pp
|
|
|
|
Find the packages that match the pattern
|
|
|
|
.Pa "/usr/lib/libav*" :
|
|
|
|
.Pp
|
|
|
|
.Dl $ xbps-bin find-files \*q/usr/lib/libav*\*q
|
|
|
|
.Pp
|
2012-01-06 01:49:29 +05:30
|
|
|
Remove the package
|
|
|
|
.Em proplib-devel
|
|
|
|
without confirmation:
|
2011-12-17 22:10:23 +05:30
|
|
|
.Pp
|
2012-01-06 01:49:29 +05:30
|
|
|
.Dl $ xbps-bin -y remove proplib-devel
|
2011-12-17 22:10:23 +05:30
|
|
|
.Pp
|
2012-01-06 01:49:29 +05:30
|
|
|
Remove the package
|
2011-12-17 22:10:23 +05:30
|
|
|
.Em bsdtar
|
|
|
|
and
|
|
|
|
.Em recursively
|
|
|
|
all packages that were installed automatically by it:
|
|
|
|
.Pp
|
2012-06-05 14:28:39 +05:30
|
|
|
.Dl $ xbps-bin -Ry remove bsdtar
|
2011-12-17 22:10:23 +05:30
|
|
|
.Pp
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr xbps-repo 8 ,
|
|
|
|
.Xr http://code.google.com/p/xbps
|
|
|
|
.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
|
|
|
|
Report bugs in http://code.google.com/p/xbps.
|