... XADADA: content/docs/2016-05-14_xbps.md
   2016-05-14 22:39

XBPS

Void Linux Wiki [dumped]

The X Binary Package System (or xbps) is the binary package system used by Void Linux. xbps was designed and implemented from scratch. Its goal is to be fast, easy to use, bug-free, featureful and portable as much as possible.

The XBPS code is totally compatible with POSIX/SUSv2/C99 standards, and released with a Simplified BSD license (2 clause). There is a well-documented API provided by the XBPS Library that is the basis for its frontends to handle binary packages and repositories. Some highlights:

To install a single package or list of packages (including dependencies), issue the following command:

# xbps-install -S _package_name1_ _package_name2_ ... 

To search for a package:

# xbps-query -Rs _package_name_ 

To remove a single package, leaving all of its dependencies installed:

# xbps-remove _package_name_ 

To remove a single package and all of its dependencies that are not required by other packages:

# xbps-remove -R _package_name_ 

To synchronize your repository databases and update your system to the most recent packages, including their dependencies:

# xbps-install -Su 

Repositories are the heart of the xbps package system. Repositories can be locally or remotely available:

Repositories can be declared in a file stored in /etc/xbps.d with a simple format:

repository= 

Where url can be a path to a directory (local) or an URL to the repository (remote):

# echo 'repository=/path/to/dir' > /etc/xbps.d/my-local-repo.conf # echo 'repository= > /etc/xbps.d/my-remote-repo.conf 

System repositories can be available at /usr/share/xbps.d, files bearing the same filename available in /etc/xbps.d override those defined in /usr/share/xbps.d.

Official Repositories

glibc

musl

Repository public keys

Packages and repositories provided by Void Linux are signed with RSA keys. You can print the repository RSA public key fingerprint with xbps-query:

$ xbps-query -vL 

glibc

Signed-by: Void Linux 4096 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d 

musl

Signed-by: Void Linux 4096 3d:b9:c0:50:41:a7:68:4c:2e:2c:a9:a2:5a:04:b7:3f 

Subrepositories

Additional sub repositories exist in the official repositories:

Packages for these repositories exist in the main repository, i.e:

$ xbps-query -Rs void-repo [*] void-repo-debug-5_1 Void Linux drop-in file for the debug repository [*] void-repo-multilib-5_1 Void Linux drop-in file for the multilib repository [*] void-repo-multilib-nonfree-5_1 Void Linux drop-in file for the multilib/nonfree repository [*] void-repo-nonfree-5_1 Void Linux drop-in file for the nonfree repository 

To install a subrepository, simply run xbps-install _repository_name_. After installing any of them don’t forget to synchronize the repository data:

# xbps-install -S 

Archives

Repository archives are available at

Archive repository URIs would be , where the datestamp is the date of the archive you wish to use as a repository, and either musl or glibc as the prefix directory.

$ xbps-query --repository= -Mis 0_list_features.sh 0_list_features_1.sh 0_list_features_2.sh 0_list_features_3.sh 0_list_left_news.sh 0_list_right_downloads.sh 0_list_right_downloads.sh.BAK 1_list_left_docs.sh 1_list_right_hints.sh 2_list_gal.sh _components begin.sh bin comment-post.sh content content.tar css dl.sh en end.sh footer.sh grx header.sh index.sh js list_left.sh list_right.sh log_visits.sh post.comments.sh post.sh posts ss.sh stats.sh visits.2016-05-19.log visits.2016-05-20.log visits.2016-05-21.log visits.2016-05-22.log visits.2016-05-23.log visits.2016-05-24.log visits.2016-05-25.log visits.2016-05-26.log visits.2016-05-27.log visits.2016-05-28.log visits.2016-05-29.log visits.2016-05-30.log visits.2016-05-31.log visits.2016-06-01.log visits.2016-06-02.log visits.2016-06-03.log visits.2016-06-04.log visits.2016-06-05.log visits.2016-06-06.log visits.2016-06-07.log visits.2016-06-08.log visits.2016-06-09.log visits.2016-06-10.log visits.2016-06-11.log visits.2016-06-12.log visits.2016-06-13.log visits.2016-06-14.log visits.2016-06-15.log visits.2016-06-16.log visits.2016-06-17.log visits.2016-06-18.log visits.2016-06-19.log visits.2016-06-20.log visits.2016-06-23.log visits.2016-06-24.log visits.2016-06-25.log visits.2016-06-26.log visits.2016-06-27.log visits.2016-06-28.log visits.2016-06-29.log visits.2016-06-30.log visits.2016-07-01.log visits.2016-07-02.log visits.2016-07-03.log visits.2016-07-04.log visits.2016-07-05.log visits.2016-07-06.log visits.2016-07-07.log visits.2016-07-08.log visits.2016-07-09.log visits.2016-07-10.log visits.2016-07-11.log visits.2016-07-12.log visits.2016-07-13.log visits.2016-07-14.log visits.2016-07-15.log visits.2016-07-16.log visits.2016-07-17.log visits.2016-07-20.log visits.2016-07-21.log visits.2016-07-22.log visits.2016-07-23.log visits.2016-07-24.log visits.2016-07-25.log visits.2016-07-26.log visits.2016-07-27.log visits.2016-07-28.log visits.2016-07-29.log visits.2016-07-30.log visits.2016-07-31.log visits.2016-08-01.log visits.2016-08-02.log visits.2016-08-03.log visits.2016-08-04.log visits.2016-08-05.log visits.2016-08-06.log visits.2016-08-07.log visits.2016-08-08.log visits.2016-08-09.log visits.2016-08-10.log visits.2016-08-11.log visits.2016-08-12.log visits.2016-08-13.log visits.2016-08-14.log visits.2016-08-15.log visits.2016-08-16.log visits.2016-08-17.log visits.2016-08-18.log visits.2016-08-19.log visits.2016-08-20.log visits.2016-08-21.log visits.2016-08-22.log visits.2016-08-23.log visits.2016-08-24.log visits.2016-08-25.log visits.2016-08-26.log visits.2016-08-27.log visits.2016-08-28.log visits.2016-08-29.log visits.2016-08-30.log visits.2016-08-31.log visits.2016-09-01.log visits.2016-09-02.log visits.2016-09-03.log visits.2016-09-04.log visits.2016-09-05.log visits.2016-09-06.log visits.2016-09-07.log visits.2016-09-08.log visits.2016-09-09.log visits.2016-09-10.log visits.2016-09-11.log visits.2016-09-12.log visits.2016-09-13.log visits.2016-09-14.log visits.2016-09-15.log visits.2016-09-16.log visits.2016-09-17.log visits.2016-09-18.log visits.2016-09-19.log visits.2016-09-20.log visits.2016-09-21.log visits.2016-09-22.log visits.2016-09-23.log visits.2016-09-24.log visits.2016-09-25.log visits.2016-09-26.log visits.2016-09-27.log visits.2016-09-28.log visits.2016-09-29.log visits.2016-09-30.log visits.2016-10-01.log visits.2016-10-02.log visits.2016-10-03.log visits.2016-10-04.log visits.2016-10-05.log visits.2016-10-06.log visits.2016-10-07.log visits.2016-10-08.log visits.2016-10-09.log visits.2016-10-10.log visits.2016-10-11.log visits.2016-10-12.log visits.2016-10-13.log visits.2016-10-14.log visits.2016-10-15.log visits.2016-10-16.log visits.2016-10-17.log visits.2016-10-18.log visits.2016-10-19.log visits.2016-10-20.log visits.2016-10-21.log visits.2016-10-22.log visits.2016-10-23.log visits.2016-10-24.log visits.2016-10-25.log visits.2016-10-26.log visits.2016-10-27.log visits.2016-10-28.log visits.2016-10-29.log visits.2016-10-30.log visits.2016-12-01.log visits.2016-12-02.log visits.2016-12-03.log visits.2016-12-04.log visits.2016-12-05.log visits.2016-12-06.log visits.2016-12-07.log visits.2016-12-08.log visits.2016-12-09.log visits.2016-12-10.log visits.2016-12-11.log visits.2016-12-12.log visits.2016-12-13.log visits.2016-12-14.log visits.2016-12-15.log visits.2016-12-16.log visits.2016-12-17.log visits.2016-12-18.log visits.2016-12-19.log visits.2016-12-20.log visits.2016-12-21.log visits.2016-12-22.log visits.2016-12-23.log visits.2016-12-24.log visits.2016-12-25.log visits.2016-12-26.log visits.2016-12-27.log visits.2016-12-28.log visits.2016-12-29.log visits.2016-12-30.log visits.2016-12-31.log visits.2017-01-01.log visits.2017-01-02.log visits.2017-01-03.log visits.2017-01-04.log visits.2017-01-05.log visits.2017-01-06.log visits.2017-01-07.log visits.2017-01-08.log visits.2017-01-09.log visits.2017-01-10.log visits.2017-01-11.log visits.2017-01-12.log visits.2017-01-13.log visits.2017-01-14.log visits.2017-01-15.log visits.2017-01-16.log visits.2017-01-17.log visits.2017-01-18.log visits.2017-01-19.log visits.2017-01-20.log visits.2017-01-21.log visits.2017-01-22.log visits.2017-01-23.log visits.2017-01-24.log visits.2017-01-25.log visits.2017-01-26.log visits.2017-01-27.log visits.2017-01-28.log visits.2017-01-29.log visits.2017-01-30.log visits.2017-01-31.log visits.2017-02-01.log visits.2017-02-02.log visits.2017-02-03.log visits.2017-02-04.log visits.2017-02-05.log visits.2017-02-06.log visits.2017-02-07.log visits.2017-02-08.log visits.2017-02-09.log visits.2017-02-10.log visits.2017-02-11.log visits.2017-02-12.log visits.2017-02-13.log visits.2017-02-14.log visits.2017-02-15.log visits.2017-02-16.log visits.2017-02-17.log visits.2017-02-18.log visits.2017-02-19.log visits.2017-02-20.log visits.2017-02-21.log visits.2017-02-22.log visits.2017-02-23.log visits.2017-02-24.log visits.2017-02-25.log visits.2017-02-26.log visits.2017-02-27.log visits.2017-02-28.log visits.2017-03-01.log visits.2017-03-02.log visits.2017-03-03.log visits.2017-03-04.log visits.2017-03-05.log visits.2017-03-06.log visits.2017-03-07.log visits.2017-03-08.log visits.2017-03-09.log visits.2017-03-10.log visits.2017-03-11.log visits.2017-03-12.log visits.2017-03-13.log visits.2017-03-14.log visits.2017-03-15.log visits.2017-03-16.log visits.2017-03-17.log visits.2017-03-18.log visits.2017-03-19.log visits.2017-03-20.log visits.2017-03-21.log visits.2017-03-22.log visits.2017-03-23.log visits.2017-03-24.log visits.2017-03-25.log visits.2017-03-26.log visits.2017-03-27.log visits.2017-03-28.log visits.2017-03-29.log visits.2017-03-30.log visits.2017-03-31.log visits.2017-04-01.log visits.2017-04-02.log visits.2017-04-03.log visits.2017-04-04.log visits.2017-04-05.log visits.2017-04-06.log visits.2017-04-07.log visits.2017-04-08.log visits.2017-04-09.log visits.2017-04-10.log visits.2017-04-11.log visits.2017-04-12.log visits.2017-04-13.log visits.2017-04-14.log visits.2017-04-15.log visits.2017-04-16.log visits.2017-04-17.log visits.2017-04-18.log visits.2017-04-19.log visits.2017-04-20.log visits.2017-04-21.log visits.2017-04-22.log visits.2017-04-23.log visits.2017-04-24.log visits.2017-04-25.log visits.2017-04-26.log visits.2017-04-27.log visits.2017-04-28.log visits.2017-04-29.log visits.2017-04-30.log visits.2017-05-01.log visits.2017-05-02.log visits.2017-05-03.log visits.2017-05-04.log visits.2017-05-05.log visits.2017-05-06.log visits.2017-05-07.log visits.2017-05-08.log visits.2017-05-09.log visits.2017-05-10.log visits.2017-05-11.log visits.2017-05-12.log visits.2017-05-13.log visits.2017-05-14.log visits.2017-05-15.log visits.2017-05-16.log visits.2017-05-17.log visits.2017-05-18.log visits.2017-05-19.log visits.2017-05-20.log visits.2017-05-21.log visits.2017-05-24.log visits.2017-05-25.log visits.2017-05-26.log visits.2017-05-27.log visits.2017-05-28.log visits.2017-05-29.log visits.2017-05-30.log visits.2017-05-31.log visits.2017-06-01.log visits.2017-06-02.log visits.2017-06-03.log visits.2017-06-04.log visits.2017-06-05.log visits.2017-06-06.log visits.2017-06-07.log visits.2017-06-08.log visits.2017-06-09.log visits.2017-06-10.log visits.2017-06-11.log visits.2017-06-12.log visits.2017-06-13.log visits.2017-06-14.log visits.2017-06-15.log visits.2017-06-16.log visits.2017-06-17.log visits.2017-06-18.log visits.2017-06-19.log visits.2017-06-20.log visits.2017-06-21.log visits.2017-06-22.log visits.2017-06-23.log visits.2017-06-24.log visits.2017-06-25.log visits.2017-06-26.log visits.2017-06-27.log visits.2017-06-28.log visits.2017-06-29.log $ xbps-query --repository= -Mis 0_list_features.sh 0_list_features_1.sh 0_list_features_2.sh 0_list_features_3.sh 0_list_left_news.sh 0_list_right_downloads.sh 0_list_right_downloads.sh.BAK 1_list_left_docs.sh 1_list_right_hints.sh 2_list_gal.sh _components begin.sh bin comment-post.sh content content.tar css dl.sh en end.sh footer.sh grx header.sh index.sh js list_left.sh list_right.sh log_visits.sh post.comments.sh post.sh posts ss.sh stats.sh visits.2016-05-19.log visits.2016-05-20.log visits.2016-05-21.log visits.2016-05-22.log visits.2016-05-23.log visits.2016-05-24.log visits.2016-05-25.log visits.2016-05-26.log visits.2016-05-27.log visits.2016-05-28.log visits.2016-05-29.log visits.2016-05-30.log visits.2016-05-31.log visits.2016-06-01.log visits.2016-06-02.log visits.2016-06-03.log visits.2016-06-04.log visits.2016-06-05.log visits.2016-06-06.log visits.2016-06-07.log visits.2016-06-08.log visits.2016-06-09.log visits.2016-06-10.log visits.2016-06-11.log visits.2016-06-12.log visits.2016-06-13.log visits.2016-06-14.log visits.2016-06-15.log visits.2016-06-16.log visits.2016-06-17.log visits.2016-06-18.log visits.2016-06-19.log visits.2016-06-20.log visits.2016-06-23.log visits.2016-06-24.log visits.2016-06-25.log visits.2016-06-26.log visits.2016-06-27.log visits.2016-06-28.log visits.2016-06-29.log visits.2016-06-30.log visits.2016-07-01.log visits.2016-07-02.log visits.2016-07-03.log visits.2016-07-04.log visits.2016-07-05.log visits.2016-07-06.log visits.2016-07-07.log visits.2016-07-08.log visits.2016-07-09.log visits.2016-07-10.log visits.2016-07-11.log visits.2016-07-12.log visits.2016-07-13.log visits.2016-07-14.log visits.2016-07-15.log visits.2016-07-16.log visits.2016-07-17.log visits.2016-07-20.log visits.2016-07-21.log visits.2016-07-22.log visits.2016-07-23.log visits.2016-07-24.log visits.2016-07-25.log visits.2016-07-26.log visits.2016-07-27.log visits.2016-07-28.log visits.2016-07-29.log visits.2016-07-30.log visits.2016-07-31.log visits.2016-08-01.log visits.2016-08-02.log visits.2016-08-03.log visits.2016-08-04.log visits.2016-08-05.log visits.2016-08-06.log visits.2016-08-07.log visits.2016-08-08.log visits.2016-08-09.log visits.2016-08-10.log visits.2016-08-11.log visits.2016-08-12.log visits.2016-08-13.log visits.2016-08-14.log visits.2016-08-15.log visits.2016-08-16.log visits.2016-08-17.log visits.2016-08-18.log visits.2016-08-19.log visits.2016-08-20.log visits.2016-08-21.log visits.2016-08-22.log visits.2016-08-23.log visits.2016-08-24.log visits.2016-08-25.log visits.2016-08-26.log visits.2016-08-27.log visits.2016-08-28.log visits.2016-08-29.log visits.2016-08-30.log visits.2016-08-31.log visits.2016-09-01.log visits.2016-09-02.log visits.2016-09-03.log visits.2016-09-04.log visits.2016-09-05.log visits.2016-09-06.log visits.2016-09-07.log visits.2016-09-08.log visits.2016-09-09.log visits.2016-09-10.log visits.2016-09-11.log visits.2016-09-12.log visits.2016-09-13.log visits.2016-09-14.log visits.2016-09-15.log visits.2016-09-16.log visits.2016-09-17.log visits.2016-09-18.log visits.2016-09-19.log visits.2016-09-20.log visits.2016-09-21.log visits.2016-09-22.log visits.2016-09-23.log visits.2016-09-24.log visits.2016-09-25.log visits.2016-09-26.log visits.2016-09-27.log visits.2016-09-28.log visits.2016-09-29.log visits.2016-09-30.log visits.2016-10-01.log visits.2016-10-02.log visits.2016-10-03.log visits.2016-10-04.log visits.2016-10-05.log visits.2016-10-06.log visits.2016-10-07.log visits.2016-10-08.log visits.2016-10-09.log visits.2016-10-10.log visits.2016-10-11.log visits.2016-10-12.log visits.2016-10-13.log visits.2016-10-14.log visits.2016-10-15.log visits.2016-10-16.log visits.2016-10-17.log visits.2016-10-18.log visits.2016-10-19.log visits.2016-10-20.log visits.2016-10-21.log visits.2016-10-22.log visits.2016-10-23.log visits.2016-10-24.log visits.2016-10-25.log visits.2016-10-26.log visits.2016-10-27.log visits.2016-10-28.log visits.2016-10-29.log visits.2016-10-30.log visits.2016-12-01.log visits.2016-12-02.log visits.2016-12-03.log visits.2016-12-04.log visits.2016-12-05.log visits.2016-12-06.log visits.2016-12-07.log visits.2016-12-08.log visits.2016-12-09.log visits.2016-12-10.log visits.2016-12-11.log visits.2016-12-12.log visits.2016-12-13.log visits.2016-12-14.log visits.2016-12-15.log visits.2016-12-16.log visits.2016-12-17.log visits.2016-12-18.log visits.2016-12-19.log visits.2016-12-20.log visits.2016-12-21.log visits.2016-12-22.log visits.2016-12-23.log visits.2016-12-24.log visits.2016-12-25.log visits.2016-12-26.log visits.2016-12-27.log visits.2016-12-28.log visits.2016-12-29.log visits.2016-12-30.log visits.2016-12-31.log visits.2017-01-01.log visits.2017-01-02.log visits.2017-01-03.log visits.2017-01-04.log visits.2017-01-05.log visits.2017-01-06.log visits.2017-01-07.log visits.2017-01-08.log visits.2017-01-09.log visits.2017-01-10.log visits.2017-01-11.log visits.2017-01-12.log visits.2017-01-13.log visits.2017-01-14.log visits.2017-01-15.log visits.2017-01-16.log visits.2017-01-17.log visits.2017-01-18.log visits.2017-01-19.log visits.2017-01-20.log visits.2017-01-21.log visits.2017-01-22.log visits.2017-01-23.log visits.2017-01-24.log visits.2017-01-25.log visits.2017-01-26.log visits.2017-01-27.log visits.2017-01-28.log visits.2017-01-29.log visits.2017-01-30.log visits.2017-01-31.log visits.2017-02-01.log visits.2017-02-02.log visits.2017-02-03.log visits.2017-02-04.log visits.2017-02-05.log visits.2017-02-06.log visits.2017-02-07.log visits.2017-02-08.log visits.2017-02-09.log visits.2017-02-10.log visits.2017-02-11.log visits.2017-02-12.log visits.2017-02-13.log visits.2017-02-14.log visits.2017-02-15.log visits.2017-02-16.log visits.2017-02-17.log visits.2017-02-18.log visits.2017-02-19.log visits.2017-02-20.log visits.2017-02-21.log visits.2017-02-22.log visits.2017-02-23.log visits.2017-02-24.log visits.2017-02-25.log visits.2017-02-26.log visits.2017-02-27.log visits.2017-02-28.log visits.2017-03-01.log visits.2017-03-02.log visits.2017-03-03.log visits.2017-03-04.log visits.2017-03-05.log visits.2017-03-06.log visits.2017-03-07.log visits.2017-03-08.log visits.2017-03-09.log visits.2017-03-10.log visits.2017-03-11.log visits.2017-03-12.log visits.2017-03-13.log visits.2017-03-14.log visits.2017-03-15.log visits.2017-03-16.log visits.2017-03-17.log visits.2017-03-18.log visits.2017-03-19.log visits.2017-03-20.log visits.2017-03-21.log visits.2017-03-22.log visits.2017-03-23.log visits.2017-03-24.log visits.2017-03-25.log visits.2017-03-26.log visits.2017-03-27.log visits.2017-03-28.log visits.2017-03-29.log visits.2017-03-30.log visits.2017-03-31.log visits.2017-04-01.log visits.2017-04-02.log visits.2017-04-03.log visits.2017-04-04.log visits.2017-04-05.log visits.2017-04-06.log visits.2017-04-07.log visits.2017-04-08.log visits.2017-04-09.log visits.2017-04-10.log visits.2017-04-11.log visits.2017-04-12.log visits.2017-04-13.log visits.2017-04-14.log visits.2017-04-15.log visits.2017-04-16.log visits.2017-04-17.log visits.2017-04-18.log visits.2017-04-19.log visits.2017-04-20.log visits.2017-04-21.log visits.2017-04-22.log visits.2017-04-23.log visits.2017-04-24.log visits.2017-04-25.log visits.2017-04-26.log visits.2017-04-27.log visits.2017-04-28.log visits.2017-04-29.log visits.2017-04-30.log visits.2017-05-01.log visits.2017-05-02.log visits.2017-05-03.log visits.2017-05-04.log visits.2017-05-05.log visits.2017-05-06.log visits.2017-05-07.log visits.2017-05-08.log visits.2017-05-09.log visits.2017-05-10.log visits.2017-05-11.log visits.2017-05-12.log visits.2017-05-13.log visits.2017-05-14.log visits.2017-05-15.log visits.2017-05-16.log visits.2017-05-17.log visits.2017-05-18.log visits.2017-05-19.log visits.2017-05-20.log visits.2017-05-21.log visits.2017-05-24.log visits.2017-05-25.log visits.2017-05-26.log visits.2017-05-27.log visits.2017-05-28.log visits.2017-05-29.log visits.2017-05-30.log visits.2017-05-31.log visits.2017-06-01.log visits.2017-06-02.log visits.2017-06-03.log visits.2017-06-04.log visits.2017-06-05.log visits.2017-06-06.log visits.2017-06-07.log visits.2017-06-08.log visits.2017-06-09.log visits.2017-06-10.log visits.2017-06-11.log visits.2017-06-12.log visits.2017-06-13.log visits.2017-06-14.log visits.2017-06-15.log visits.2017-06-16.log visits.2017-06-17.log visits.2017-06-18.log visits.2017-06-19.log visits.2017-06-20.log visits.2017-06-21.log visits.2017-06-22.log visits.2017-06-23.log visits.2017-06-24.log visits.2017-06-25.log visits.2017-06-26.log visits.2017-06-27.log visits.2017-06-28.log visits.2017-06-29.log 

Unlike some other package management utilities, xbps consists of multiple discrete utilities to accomplish certain tasks for package management:

xbps-install

This utility can be used to install, update, reinstall, or downgrade a package, or all packages in your system, and to syncronize the remote repositories data.

Synchronize remote repository data

# xbps-install -S 

Note: It’s generally a good idea to synchronize your repository index before installing or updating packages to avoid attempting to download outdated packages. The -S, --sync flag can be used while installing or updating to be always in sync with remote repositories, i.e:

Installing/updating a single package

# xbps-install -S pkg 

If pkg is installed and there’s a newer version, the package will be upgraded to that version of the first repository containing it; otherwise the package will be installed.

Reinstalling/downgrading to a specific package version

# xbps-install -Sf pkg-1.0_1 

By specifying a specific package version and the -f flag, the package will be reinstalled or downgraded to that version if the package is currently installed.

Updating your system

# xbps-install -Su 

This will update all currently installed packages to the latest version found in the registered repositories, performing a global system update. This is the recommended command to keep your system up to date daily.

xbps-query

This utility can be used to query for information about packages installed in your system and in specific repositories.

xbps-query has two working modes:

The -R or \--repository option switches to the repository mode. Most options are able to work in local and repository mode.

Listing registered repositories

$ xbps-query -L 

Listing installed packages

$ xbps-query -l 

Listing packages in a specific mode

$ xbps-query -p hold -s "" $ xbps-query -p repolock -s "" 

Showing information for a package

$ xbps-query [-R] pkg 

Showing the files list for a package

$ xbps-query [-R] -f pkg 

Showing the required dependencies for a package

$ xbps-query [-R] -x pkg 

Showing the reverse dependencies for a package (packages that depend on it):

$ xbps-query [-R] -X pkg 

Searching for packages matching its package name/version and/or description

$ xbps-query [-R] -s pattern 

Searching for packages matching a filename

$ xbps-query [-R] -o "*/filename" 

xbps-remove

This utility can be used to remove installed packages and clean the cache directory.

Removing a single package

# xbps-remove pkg 

Removing a single package and recursively all packages that were installed as dependencies

# xbps-remove -R pkg 

Cleaning up the cache directory

# xbps-remove -O 

Removing all package orphans

# xbps-remove -o 

Removing all package orphans and clean the cache directory

# xbps-remove -Oo 

xbps-reconfigure

This utility can be used to configure or force reconfiguration of an installed package.

When xbps-install installs a package, it performs the task in two phases: unpacking and configuration. The unpacking phase unpacks the package files of the binary package into disk, and the configuration phase performs additional steps necessary to execute the software.

Packages that were not configured can be listed with xbps-query -l if its first two characters are uu. In that case, those packages should be reconfigured:

# xbps-reconfigure -a 

Configure a package that is in unpacked state

# xbps-reconfigure pkg 

Configure all packages that are in unpacked state

# xbps-reconfigure -a 

Force reconfiguration of a package (even if it was configured previously):

# xbps-reconfigure -f pkg 

xbps-pkgdb

This utility can be used to report errors in installed packages, as well as changing some of its properties.

Checking for errors in an installed package

# xbps-pkgdb pkg 

If pkg does not have any error there won’t be any output and return value will be 0.

Checking for errors in all installed packages

# xbps-pkgdb -a 

Changing properties of an installed package

An installed package can have different modes depending how it was installed. If a package was explicitly installed by the administrator and not as a dependency, its installation mode will be set to manual, otherwise auto.

Packages that were installed manually can be listed with:

$ xbps-query -m 

or per-package:

$ xbps-query -p automatic-install pkg 

It’s possible to change this mode with xbps-pkgdb(1):

# xbps-pkgdb -m auto pkg # xbps-pkgdb -m manual pkg 

A package can also be put on hold mode to skip updates while performing a system update:

# xbps-pkgdb -m hold pkg # xbps-pkgdb -m unhold pkg 

A package can also be put in repository locked mode and will only be possible to update it if there’s an update in the same repository that was used for installing:

# xbps-pkgdb -m repolock pkg # xbps-pkgdb -m repounlock pkg 

xbps-rindex

This utility can be used to generate local repositories, remove obsolete binary packages stored in them, and to sign the packages with a cryptographic key.

Creating a local repository

$ xbps-rindex -a /path/to/dir/*.xbps 

Once the command has run, a local repository is available at /path/to/dir and can be used as an argument to the –repository option or be declared in /etc/xbps.d/.

Adding a specific package to a repository

$ xbps-rindex -a /path/to/dir/foo-1.0_1.x86_64.xbps 

Force addition of a specific package to a repository

$ xbps-rindex -f -a /path/to/dir/foo-1.0_1.x86_64.xbps 

Cleaning a repository (removing stalled entries)

$ xbps-rindex -c /path/to/dir 

Removing obsolete packages in a repository

$ xbps-rindex -r /path/to/dir 

Signing a repository

Initialize the repository metadata with signing properties:

$ xbps-rindex --sign --signedby "I'm Groot" /path/to/dir 

Signs all binary packages stored in repository with your specified RSA key. If the –privkey argument not set, it defaults to ~/.ssh/id_rsa.

$ xbps-rindex --signedby "I'm Groot" --sign-pkg /path/to/dir/*.xbps 

xbps-alternatives

The xbps-alternatives utility lists or sets the alternatives provided by installed packages. Alternatives are classified by groups, and a group contains a number of symbolic links which are applied when the group is set.

List all alternatives

$ xbps-alternatives -l 

List alternatives for a specific package

$ xbps-alternatives -l foo 

Set all alternative groups

$ xbps-alternatives -s foo 

Set specific alternative groups

$ xbps-alternatives -g bar -s foo 

Source “XBPS - Void Linux Wiki”


2016-05-14 13-00



Комментарии [0] ::

 Высказаться...