xbps/bin/xbps-query
Juan RP 77c6c3e504 Introduce xbps_binpkg_get_file_into_fd() and use it for xbps-query(8) --cat.
This allows you to print to stdout any file stored in a binary package,
locally or remotely!

$ xbps-query -R --cat=/usr/bin/ls coreutils > ls
$ file ls
ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=7a195fc46d1d5cdca32bfccd3b30f81784e342ed, stripped
$
2014-11-17 18:43:08 +01:00
..
defs.h xbps-query(8: added --cat=FILE mode support. 2014-11-17 15:45:46 +01:00
list.c Replaced config/system {repo,preserve,virtualpkg}.d with a single directory. 2014-11-06 09:58:04 +01:00
main.c xbps-query(8: added --cat=FILE mode support. 2014-11-17 15:45:46 +01:00
Makefile mk/prog.mk: set MAN to $(BIN).8 by default. 2013-09-16 08:57:24 +02:00
ownedby.c xbps-query(8: added --cat=FILE mode support. 2014-11-17 15:45:46 +01:00
search.c Replaced config/system {repo,preserve,virtualpkg}.d with a single directory. 2014-11-06 09:58:04 +01:00
show-deps.c xbps-query: fix --fulldeptree with multiple pkgs using vpkgs and non vpkgs. 2014-10-29 09:46:54 +01:00
show-info-files.c Introduce xbps_binpkg_get_file_into_fd() and use it for xbps-query(8) --cat. 2014-11-17 18:43:08 +01:00
xbps-query.8 xbps-query(8: added --cat=FILE mode support. 2014-11-17 15:45:46 +01:00