2011-12-15 15:49:20 +05:30
.TH "XBPS\-BIN" "8" "15/12/2011" "\ \&" "\ \&"
2010-05-04 01:20:34 +05:30
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
xbps-bin \- XBPS command for binary packages
.SH "SYNOPSIS"
.sp
\fB xbps\- bin\fR [\fI options\fR ] \fI target\fR [\fI pkgname\fR ]
.SH "DESCRIPTION"
.sp
2011-02-05 15:55:04 +05:30
The xbps\- bin(8) command is used to handle binary packages created for the XBPS binary package system\& . You can use it to install, remove, update, list or show information about any binary package\& . Binary packages can be installed from \fI local (directories)\fR or \fI remote repositories (http, https or ftp)\fR , see xbps\- repo(8) for information about repositories\& .
2010-05-04 01:20:34 +05:30
.SH "OPTIONS"
.PP
2011-02-26 15:44:05 +05:30
\fB \- A\fR
.RS 4
Sets the \fB automatic\- install\fR boolean object for a package, therefore explicitly
setting that package was installed as it were a dependency, even if it is not.
Use of this option takes effect in the \fI autoupdate\fR , \fI install\fR and
\fI update\fR targets and target packages and its required dependencies will be
matched.
.RE
.PP
2011-12-15 15:49:20 +05:30
\fB \- C\fR \fI conffile\fR
2011-06-04 17:07:53 +05:30
.RS 4
2011-12-15 15:49:20 +05:30
Full path to the XBPS configuration file\& .
By default it\(cq s set to \fI ETCDIR/xbps/xbps.conf\fR \& .
2011-06-04 17:07:53 +05:30
.RE
.PP
2010-05-04 01:20:34 +05:30
\fB \- c\fR \fI cachedir\fR
.RS 4
2011-02-05 15:55:04 +05:30
Sets the cache directory to store downloaded binary packages from remote repositories\& . By default it\(cq s set to
2011-02-21 22:12:47 +05:30
\fI /var/cache/xbps\fR \& .
2010-05-04 01:20:34 +05:30
.RE
.PP
2010-11-19 18:10:13 +05:30
\fB \- d\fR
.RS 4
2011-02-05 15:55:04 +05:30
Enables extra debugging output to be shown to stderr\& .
2010-11-19 18:10:13 +05:30
.RE
.PP
2011-01-27 19:06:33 +05:30
\fB \- D\fR
.RS 4
2011-02-05 15:55:04 +05:30
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
\fI cachedir\fR
to start the installation\& . This option can be used for the install, update and autoupdate targets\& .
2011-01-27 19:06:33 +05:30
.RE
.PP
2010-12-03 22:06:07 +05:30
\fB \- F\fR
.RS 4
2011-02-05 15:55:04 +05:30
Used currently in the
\fI remove\fR
target\& . If set, package will be removed even if other packages are currently depending on it, i\& .e package is a dependency of other packages\& .
\fI Use this option with care\fR \& .
2010-12-03 22:06:07 +05:30
.RE
.PP
2010-05-04 01:20:34 +05:30
\fB \- f\fR
.RS 4
Used currently in the
\fI purge\fR ,
\fI reconfigure\fR
and
\fI remove\fR
2011-02-05 15:55:04 +05:30
targets\& . If set,
\fI package(s)\fR
will be
\fI reconfigured\fR
regardless of its state in the reconfigure target, or to
\fI force\fR
removal of package files even if its hash doesn\(cq t match in the
\fI purge\fR
2010-05-04 01:20:34 +05:30
and
\fI remove\fR
targets\& .
.RE
.PP
2011-02-26 15:44:05 +05:30
\fB -M\fR
.RS 4
Sets the \fB automatic\- install\fR boolean object for package to false, therefore
explicitly setting that package was installed manually by the user. Use of this
option takes effect in the \fI autoupdate\fR , \fI install\fR and \fI update\fR targets
and target packages and its required dependencies will be matched.
.RE
.PP
2011-10-29 11:47:54 +05:30
\fB -o\fR \fI key[,key2...]\fR
.RS 4
Used currently in the
\fI show\fR
target\& . Prints the value of specified key(s) from package's properties dictionary.
Multiple keys can be specified delimited by the comma character.
.RE
.PP
2010-05-04 01:20:34 +05:30
\fB \- p\fR
.RS 4
Used currently in the
\fI remove\fR
and
\fI autoremove\fR
targets, if enabled after removing a package it is also purged\& .
.RE
.PP
2011-01-30 12:38:34 +05:30
\fB \- R\fR
.RS 4
Used currently in the
\fI remove\fR
2011-02-05 15:55:04 +05:30
target, to recursively remove packages that aren\(cq t required by other installed packages and that were installed by the package that we want to remove\& .
2011-01-30 12:38:34 +05:30
.RE
.PP
2010-05-04 01:20:34 +05:30
\fB \- r\fR \fI rootdir\fR
.RS 4
Sets the
\fI root\fR
directory\& . By default the root directory is set to
\fI /\fR \& . Please note that the database directory is always set to
\fI /var/db/xbps\fR
independently of
2011-02-05 15:55:04 +05:30
\fI rootdir\fR \& . So if you use a rootdir of
2010-05-04 01:20:34 +05:30
\fI /blah\fR , metadata stuff will go into
\fI /blah/var/db/xbps\fR \& .
.RE
.PP
\fB \- v\fR
.RS 4
Shows verbose messages\& . Useful while installing and removing packages\& .
.RE
.PP
\fB \- y\fR
.RS 4
2011-02-05 15:55:04 +05:30
Assume
\fI yes\fR
to all questions\& . This will bypass all questions and immediately proceed with the task, use this option with care\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
\fB \- V\fR
.RS 4
Shows the current XBPS release version (library and code)\& .
.RE
.SH "TARGETS"
.sp
2011-02-05 15:55:04 +05:30
Please note that all targets are case insensitive\& .
2010-05-04 01:20:34 +05:30
.PP
\fB autoremove\fR
.RS 4
2011-07-23 12:03:12 +05:30
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\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
\fB autoupdate\fR
.RS 4
2011-07-23 12:03:12 +05:30
Updates all currently installed packages to the newest version available in all repositories\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
2011-07-23 12:03:12 +05:30
\fB check \fR \fB \fI pkgname | all\fR \fR
2010-05-04 01:20:34 +05:30
.RS 4
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
\fI all\fR
2011-02-05 15:55:04 +05:30
keyword is used, all packages currently installed will be checked, otherwise only
2011-07-23 12:03:12 +05:30
\fI pkgname\fR \& .
2010-05-04 01:20:34 +05:30
.RE
.PP
2011-02-05 15:55:04 +05:30
\fB find\- files \fR \fB \fI pattern\fR \fR
2010-10-27 03:55:02 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
Prints the name of the installed
\fI package(s)\fR
matching the pattern on its file list\& .
2010-10-27 03:55:02 +05:30
.RE
.PP
2011-02-05 15:55:04 +05:30
\fB install \fR \fB \fI pkgname(s) | pkgpattern(s)\fR \fR
2010-05-04 01:20:34 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
Install binary package(s) from repository pool by specifying
\fI pkgname(s)\fR
or
\fI package pattern(s)\fR \& . The first repository matching the arguments will be used\& . The package(s) will be
2011-01-27 19:14:39 +05:30
\fI downloaded\fR
(if found in a remote repository),
2010-05-04 01:20:34 +05:30
\fI unpacked\fR
and
\fI configured\fR \& . The
2011-02-05 15:55:04 +05:30
\fI unpack\fR
stage will execute the pre\- install action on its INSTALL script, and unpack its files\& . The
\fI configure\fR
stage will run the post\- install action set on its INSTALL script and will change its
\fI state\fR
to installed in the package database\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
2011-02-05 15:55:04 +05:30
\fB list [\fR \fB \fI state\fR \fR \fB ]\fR
2010-05-04 01:20:34 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
Lists all currently installed packages\& . Optionally another argument can be specified to list only packages with the specified
\fI state\fR \& . By default only packages that are
\fI fully installed\fR
will be listed if
\fI state\fR
has not been specified\& . Accepted states are:
\fI config\- files\fR ,
2011-07-28 19:55:01 +05:30
\fI half-unpacked\fR ,
\fI unpacked\fR ,
2011-02-05 15:55:04 +05:30
and
\fI installed\fR \& .
2010-05-04 01:20:34 +05:30
.RE
.PP
\fB list\- manual\fR
.RS 4
2011-02-05 15:55:04 +05:30
Lists packages that were installed manually by the user, i\& .e not as dependencies of any other package\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
2011-02-05 15:55:04 +05:30
\fB purge \fR \fB \fI pkgname | all\fR \fR
2010-05-04 01:20:34 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
Purge an installed package:
\fI pkgname\fR
2010-05-04 01:20:34 +05:30
or
2011-02-05 15:55:04 +05:30
\fI all\fR
packages\& . The purge stage runs the post\- remove action set in the REMOVE script in its metadata directory
\fI (/var/db/xbps/metadata/pkgname)\fR
and will remove configuration (if they were not modified by the user) and metadata files\& . The package will be fully removed from the system once it has been purged\& . If
2010-05-04 01:20:34 +05:30
\fB \- f\fR
2011-02-05 15:55:04 +05:30
option is used, configuration files that have been
\fI modified WILL BE REMOVED\& . BEWARE WITH THIS!\fR
2010-05-04 01:20:34 +05:30
.RE
.PP
2011-02-05 15:55:04 +05:30
\fB reconfigure \fR \fB \fI pkgname | all\fR \fR
2010-05-04 01:20:34 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
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
2010-05-04 01:20:34 +05:30
\fI all\fR
keyword can be used to reconfigure all not configured packages\& . If
\fB \- f\fR
2011-02-05 15:55:04 +05:30
option is used, the package will be reconfigured even if its state is already installed\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
\fB remove \fR \fB \fI pkgname(s)\fR \fR
.RS 4
Removes the installed package
\fI pkgname(s)\fR \& . Its files will be removed and its state will be changed to
2011-02-05 15:55:04 +05:30
\fI config\- files\fR
2010-05-04 01:20:34 +05:30
in the package database\& . Configuration files, its metadata directory/files and its information in the package database are preserved\& . To fully remove a package in
2011-02-05 15:55:04 +05:30
\fI config\- files\fR
state, it must be purged with the
\fI purge\fR
command or alternatively use the
\fB \- p\fR
flag \& . If
2010-05-04 01:20:34 +05:30
\fB \- f\fR
2011-02-05 15:55:04 +05:30
option is used, package files will be
\fB removed even if its SHA256 hash don\(cq t match\fR \& .
.RE
.PP
2010-05-04 01:20:34 +05:30
\fB show \fR \fB \fI pkgname\fR \fR
.RS 4
Shows information for installed package
\fI pkgname\fR \& . This will print the size it takes in filesystem, description, maintainer, architecture and other information\& .
.RE
.PP
\fB show\- deps \fR \fB \fI pkgname\fR \fR
.RS 4
2011-02-05 15:55:04 +05:30
Shows the list of dependencies that pkgname requires at run time\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
\fB show\- files \fR \fB \fI pkgname\fR \fR
.RS 4
2011-02-05 15:55:04 +05:30
Shows the list of files that pkgname contains\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
2010-05-04 20:34:36 +05:30
\fB show\- orphans\fR
.RS 4
2011-02-05 15:55:04 +05:30
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\& .
2010-05-04 20:34:36 +05:30
.RE
.PP
2010-05-04 01:20:34 +05:30
\fB show\- revdeps \fR \fB \fI pkgname\fR \fR
.RS 4
Shows the reverse dependencies for
2011-02-05 15:55:04 +05:30
\fI pkgname\fR \& . Reverse dependencies are packages that are currently depending in pkgname directly\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
\fB update \fR \fB \fI pkgname(s)\fR \fR
.RS 4
Updates
\fI pkgname(s)\fR
to the most newer version available in repository pool\& . This can be used if only
\fI pkgname(s)\fR
2011-02-05 15:55:04 +05:30
need to be updated, unlike the
\fI autoupdate\fR
2010-05-04 01:20:34 +05:30
target that will update all currently installed packages\& .
.RE
.SH "PACKAGE STATES"
.sp
A package can be in a different state while it is being installed, removed, unpacked, configured or purged\& . The following states are available:
.PP
\fB installed\fR
.RS 4
The package is fully installed, that means it was unpacked and configured correctly\& .
.RE
.PP
2011-07-28 19:55:01 +05:30
\fB half\- unpacked\fR
2011-10-17 18:41:54 +05:30
.RS 4
2011-07-28 19:55:01 +05:30
The package was being unpacked but didn't finish properly for unknown reasons.
.RE
.PP
2010-05-04 01:20:34 +05:30
\fB unpacked\fR
.RS 4
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\& .
.RE
.PP
\fB config\- files\fR
.RS 4
2011-02-05 15:55:04 +05:30
The package has been removed but configuration files and its metadata directory are still available (and it is still registered in the package database)\& . You can purge safely packages that are in this state, modified configuration files will be preserved\& .
.RE
.PP
2011-06-04 17:07:53 +05:30
.SH "FILES"
2011-02-05 15:55:04 +05:30
.PP
2011-10-17 18:41:54 +05:30
\fB /etc/xbps/conf.plist\fR
2011-02-05 15:55:04 +05:30
.RS 4
2011-06-04 17:07:53 +05:30
Default XBPS configuration file\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
2011-10-17 18:41:54 +05:30
\fB /etc/xbps/repositories.plist\fR
.RS 4
Defaults XBPS repositories configuration file\& .
.RE
.PP
2010-05-04 01:20:34 +05:30
\fB /var/db/xbps\fR
.RS 4
2011-02-05 15:55:04 +05:30
xbps global metadata directory\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
\fB /var/db/xbps/metadata/<pkgname>\fR
.RS 4
Installed package metadata directory\& .
.RE
.PP
\fB /var/db/xbps/metadata/<pkgname>/files\& .plist\fR
.RS 4
Installed package metadata list of files\& .
.RE
.PP
\fB /var/db/xbps/metadata/<pkgname>/prop\& .plist\fR
.RS 4
Installed package metadata properties\& .
.RE
.PP
\fB /var/db/xbps/regpkgdb\& .plist\fR
.RS 4
2011-02-05 15:55:04 +05:30
xbps master packages/properties database plist file\& .
2010-05-04 01:20:34 +05:30
.RE
.PP
\fB /var/cache/xbps\fR
.RS 4
2011-02-05 15:55:04 +05:30
xbps cache directory for downloaded binary packages\& .
2010-05-04 01:20:34 +05:30
.RE
.SH "EXAMPLES"
.PP
2011-02-05 15:55:04 +05:30
\fB Install\fR a package by specifying its \fB name\fR :
2010-05-04 01:20:34 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
2010-05-04 01:20:34 +05:30
$ xbps\- bin install foo
.RE
.PP
2011-02-05 15:55:04 +05:30
\fB Install\fR a package by specifying a \fB package pattern\fR :
2010-05-04 01:20:34 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
$ xbps\- bin install "foo>=3\& .0"
2010-05-04 01:20:34 +05:30
.RE
.PP
2011-02-05 15:55:04 +05:30
\fB Install multiple\fR packages by specifying \fB names\fR and \fB package patterns\fR :
2010-05-04 01:20:34 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
$ xbps\- bin install foo "blah<=4\& .0" baz\- 2\& .0 "blob>4\& .[0\- 9]"
2010-05-04 01:20:34 +05:30
.RE
2010-10-27 03:55:02 +05:30
.PP
2011-02-05 15:55:04 +05:30
\fB Find\fR the package that owns the file \fB /bin/mount\fR :
2010-10-27 03:55:02 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
2010-10-27 03:55:02 +05:30
$ xbps\- bin find\- files /bin/mount
.RE
.PP
2011-02-05 15:55:04 +05:30
\fB Find\fR the packages that match the pattern \fB "/usr/lib/libav\fR "*:
.RS 4
$ xbps\- bin find\- files "/usr/lib/libav*"
.RE
.PP
\fB Remove and purge\fR the package \fB proplib\- devel\fR :
.RS 4
$ xbps\- bin \- yp remove proplib\- devel
.RE
.PP
\fB Remove and purge\fR the package \fB bsdtar\fR and \fB recursively\fR all packages that were installed automatically by it:
2010-10-27 03:55:02 +05:30
.RS 4
2011-02-05 15:55:04 +05:30
$ xbps\- bin \- Rp remove bsdtar
2010-10-27 03:55:02 +05:30
.RE
2010-05-04 01:20:34 +05:30
.SH "BUGS"
.sp
Probably, but I try to make this not happen\& . Use it under your own responsability and enjoy your life\& .
.sp
2011-02-05 15:55:04 +05:30
Report bugs in http://code\& .google\& .com/p/xbps\& .
2010-05-04 01:20:34 +05:30
.SH "SEE ALSO"
.sp
2011-06-20 16:26:43 +05:30
xbps\- repo(8)
2010-05-04 01:20:34 +05:30
.sp
2011-02-05 15:55:04 +05:30
The XBPS project: http://code\& .google\& .com/p/xbps
2010-05-04 01:20:34 +05:30
.SH "AUTHORS"
.sp
2011-02-05 22:02:14 +05:30
\fB XBPS\fR has been designed and implemented by Juan Romero Pardines <xtraeme@gmail\& .com>\& .