From d39b1dbe627af218e49be6424857089a5888903b Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sun, 19 Jul 2009 11:15:11 +0200 Subject: Add new --print operation for all operations And a new --print-format option to configure the output. This implements FS#14208 Example usage : pacman -Sp --print-format "%r/%n-%v : %l [%s]" kdelibs extra/kdelibs-4.3.2-4 : ftp://mir2.archlinuxfr.org/archlinux/extra/os/i686/kdelibs-4.3.2-4-i686.pkg.tar.gz [0,00] Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- doc/pacman.8.txt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/pacman.8.txt b/doc/pacman.8.txt index 7f92ec71..0aec1118 100644 --- a/doc/pacman.8.txt +++ b/doc/pacman.8.txt @@ -170,6 +170,17 @@ Options *\--arch* <'arch'>:: Specify an alternate architecture. +*-p, \--print*:: + Only print the targets instead of performing the actual operation (sync, + remove or upgrade). Use '\--print-format' to specify how targets are + displayed. The default format string is "%l", which displays url with '-S', + filename with '-U' and pkgname-pkgver with '-R'. + +*\--print-format* <'format'>:: + Specify a printf-like format to control the output of the '\--print' + operation. The possible are attributes are : %n for pkgname, %v for pkgver, %l + for location, %r for repo and %s for size. + Query Options[[QO]] ------------------- *-c, \--changelog*:: @@ -306,11 +317,6 @@ linkman:pacman.conf[5]. List all packages in the specified repositories. Multiple repositories can be specified on the command line. -*-p, \--print-uris*:: - Print out URIs for each package that will be installed, including any - dependencies yet to be installed. These can be piped to a file and - downloaded at a later time, using a program like wget. - *-q, \--quiet*:: Show less information for certain sync operations. (This is useful when pacman's output is processed in a script.) Search will only show package -- cgit v1.2.3-24-g4f1b