paco.8.in

来自「About: Paco (pacKAGE oRGANIZER) is a si」· IN 代码 · 共 336 行

IN
336
字号
.\"----------------------------------------------------------------.\" paco.8 - paco-@PACKAGE_VERSION@ man page.\"----------------------------------------------------------------.\" Copyright (C) 2004-2007 David Rosal <@PACKAGE_BUGREPORT@>.\" For more information visit  http://paco.sourceforge.net.\"----------------------------------------------------------------.\".TH PACO "8" "@RELEASEDATE@" "paco-@PACKAGE_VERSION@" "System".SH NAMEpaco \- a source code package organizer.SH SYNOPSIS\fBpaco\fR [OPTIONS] <packages>.br\fBpaco\fR \-l [OPTIONS] <package> <command>.br\fBpaco\fR -q <files>.SH DESCRIPTION.PPPaco is a program to aid package management when installing packages from sourcecode..PPWhen installing a package, paco can be used in log mode (with option \fB\-l\fR)to wrap the installation command (e.g. "make install"), and log the createdfiles. By default the log is stored in directory '@LOGDIR@'..PPOnce some packages are installed and properly logged, paco can be used in listmode, which is the default, to display package information. Several optionsare provided to print the information in different formats..PPThere are also options to remove packages, query for the owner offiles, or maintain the package database..PPMandatory arguments to long options are mandatory for short options too..PPThe special option \fB-\-\fR forces and end of option-scanning. This isspecially useful when entering the install command in log mode..SH GENERAL OPTIONS.TP\fB\-a, \-\-all\fRApply the specified action to all logged packages. This doesn't work withoption \fB\-r\fR..TP\fB\-h, \-\-help\fRDisplay a help message and exit..TP\fB\-L, \-\-logdir\fR=\fIDIR\fRBase log directory. Default is '@LOGDIR@', unless variable LOGDIR is setin the configuration file (type 'man pacorc' for more information)..TP\fB\-v, \-\-verbose\fRVerbose output. \fB\-vv\fR prints also debugging messages(only meaningful with option \fB\-l\fR)..TP\fB\-\-version\fRDisplay version information and exit..SH DATABASE MAINTENANCE OPTIONS.TP\fB\-u, \-\-update\fRSynchronize the log of the package with the current status of the filesystem,calculating the size of the logged files and checking whether they are missing.If a file becomes compressed or uncompressed (with bzip2 or gzip), it isdetected as well. Use along with \fB\-a\fR to update the whole database..TP\fB\-U, \-\-unlog\fRRemove the log of the package from the database..SH GENERAL LIST OPTIONS.TP\fB\-b, \-\-block\-size\fR=\fISIZE\fRUse blocks of SIZE bytes for the sizes. SIZE may be an integer, optionally followedby one of the following: k, K, m, M..TP\fB\-k, \-\-kilobytes\fRLike '--block-size=1k', or '--block-size=1024'..TP\fB\-\-sort\fR=\fIWORD\fRSort the list by WORD: When listing files, meaningful values for WORDare: 'name' and 'size'. When listing packages, WORD may bealso: 'date' (or 'time'), 'files', 'missing-files' or 'missing-size'..TP\fB\-R, \-\-reverse\fRReverse order while sorting..TP\fB\-t, \-\-total\fRPrint totals at the bottom of the list..SH PACKAGE LIST OPTIONS.TP\fB\-1, \-\-one\-column\fRList one package per line..TP\fB\-F\fRPrint the number of installed files..TP\fB\-M\fRPrint the number of missing files..TP\fB\-C\fRPrint the number of shared files (both installed and missing)..TP\fB\-d, \-\-date\fRShow installation date (\fB\-dd\fR shows the hour too)..TP\fB\-s, \-\-size\fRShow the currently installed size of each package; in human readable format bydefault (e.g. 1.2M, 13k)..TP\fB\-n, \-\-missing\-size\fRPrint the missing size of each package (= original size - current size)..SH FILE LIST OPTIONS.TP\fB\-f, \-\-files\fRList currently installed files of the package..TP\fB\-m, \-\-missing-files\fRList missing files (those files removed after the installation of the package).\fB\-f\fR and \fB\-m\fR options can be used together..TP\fB\-c, \-\-shared\fRWith \fB\-f\fR and/or \fB\-m\fR, list only the shared files (those files alsologged by other packages)..TP\fB\-N, \-\-non\-shared\fRWith \fB\-f\fR and/or \fB\-m\fR, list only the non shared files (those filesnot logged by any other package)..TP\fB\-w, \-\-who\-shares\fRWith \fB\-c\fR, print the names of the packages that share each file..TP\fB\-y, \-\-symlinks\fRPrint the contents of symbolic links..TP\fB\-s, \-\-size\fRPrint the size of each file; in human readable format bydefault (e.g. 1.2M, 13k)..TP\fB\-z, \-\-no\-package\-name\fRDo not print the name of the package. Useful for scripts..SH INFORMATION OPTIONS.TPNote: Information may be not available for all packages..TP\fB\-i, \-\-info\fRPrint package information..TP\fB\-o, \-\-configure\-options\fRPrint the configure options the package was built with..TP\fB\-q, \-\-query, \-\-owner\fRQuery for the packages that own one or more files..SH LOG OPTIONS.TP\fB\-l, \-\-log\fREnable log mode: If a shell command is given as an argument, executeand monitor it, logging the created files, otherwise the list of filesto log is read from the standard input..brThe list of logged files is printed to the standard output, unlessany of \fB\-p\fR or \fB\-D\fR options is used, in which case is assumedthat a package is to be logged in the paco database..brWhen a shell comand is monitorized, paco returns the exit code of thatcommand..brSee EXAMPLES below..TP\fB\-p, \-\-package\fR=\fIPKG\fRSpecify the name of the package to log, which must begin withan alphanumeric character. With \fB\-v\fR, the list of logged filesis also printed to the standard error stream. With \fB\-vv\fR,paco prints detailed information about the install process. Thisholds for option \fB\-D\fR too..TP\fB\-D, \-\-dirname\fRUse the name of the current directory as the name of the package to be logged..TP\fB\-E, \-\-exclude\fR=\fIPATH1:PATH2:...\fRColon-separated list of paths to skip when logging. Default is '@EXCLUDE@',unless variable EXCLUDE is set in theconfiguration file (type 'man pacorc' for more information)..brShell wildcards are allowed in the PATHs. See \fIPATH MATCHING\fR below formore details..TP\fB\-I, \-\-include\fR=\fIPATH1:PATH2:...\fRColon-separated list of paths to scan when logging. Default is '@INCLUDE@',unless variable INCLUDE is set in theconfiguration file (type 'man pacorc' for more information)..brShell wildcards are allowed in the PATHs. See \fIPATH MATCHING\fR below formore details..TP\fB\-\-ignore\-errors\fRDo not exit if the install command fails. This allows for logginguncomplete installations, and cleanup the system upon an installationfailure. Errors are not ignored by default, unless variable LOG_IGNORE_ERRORS is set to 1 in the configuration file (type 'manpacorc' for more information)..TP\fB\-\-ignore\-shared\fRWith \fB\-p\fR or \fB\-D\fR, do not log the shared files. They are loggedby default, unless variable LOG_IGNORE_SHARED is set to 1 in theconfiguration file (type 'man pacorc' for more information)..TP\fB\-\-log\-missing\fRLog also the missing files (they are skipped by default). See \fIEXAMPLES\fRbelow..TP\fB\-+, \-\-append\fRWith \fB\-p\fR or \fB\-D\fR, if the package is already logged, append the listof files to its log..SH REMOVE OPTIONS.TP\fB\-r, \-\-remove\fRRemove a package, keeping the shared files and asking for confirmation bydefault. Compressed files (with gzip or bzip2) are also removed. If theoption is doubled (\fB\-rr\fR), or all logged files are successfully removed,the package is removed from the database..TP\fB\-B, \-\-batch\fRDon't prompt for confirmation when removing (and assume yes to all questions)..TP\fB\-e, \-\-skip\fR=\fIPATH1:PATH2:...\fRDon't remove files in these paths..brShell wildcards are allowed in the PATHs. See \fIPATH MATCHING\fR below formore details..TP\fB\-\-remove\-shared\fRRemove also the shared files..SH PATH MATCHINGOptions \fB\-I\fR, \fB\-E\fR and \fB\-e\fR accept a colon-separated list ofpaths, each of which may contain shell-like wildcards (*, ? and [..]).Files are matched against each of those paths, following the standardshell-like expansion, but with the following exception: If a path in the listdoes not contain any wildcard, and it is a directory, it matches any filewithin that directory..brNote that if wildcards are to be used, the whole list of paths must be enclosedin single quotes (') to protect it from being expanded by the shell..SH EXAMPLESTo log the installation of the package 'foo-1.0', which is installedwith the command 'make -C src install':.PP    paco -lp foo-1.0 "make -C src install".PP Note that in this example the quotes are required to preventpaco to treat '-C' as a command line option..brUse single quotes if the command already contains double quotes:.PP	paco -lp foo-1.0 'echo "hello world" > /var/log/foo.log'.PPThe special end-of-option argument '--' may be used for the same purpose:.PP    paco -lp foo-1.0 -- make -C src install.PP  Alternatively, we can use the basename of the current directory as the name ofthe package to log, using the option \fB\-D\fR instead of \fB\-p\fR:.PP    paco -lD "make install && make install.man".PPIf we have forgotten to install a file, it can be added to a previouslycreated log with the option \fB\-+\fR:.PP    paco -lp+ foo-1.0 "install foo /bin/foo".PPNote that the option \fB-+\fR cannot be used to remove a file from thelog. For instance, the following command:.PP    paco -lp+ foo-1.0 "rm /bin/foo".PPwould not unlog the file /bin/foo from the log of foo-1.0, but itwould mark it as missing instead..PPTo avoid such behaviour it is sometimes useful to join up composedinstall commands into one single command and run paco once. For instance,imagine that a package installs the file /bin/foo, but we want it tobe installed in /usr/bin/foo. If one runs this:.PP    paco -lp foo-1.0 make install.br    paco -lp+ foo-1.0 "mv /bin/foo /usr/bin/foo".PPBoth files, /bin/foo and /usr/bin/foo remain in the log. /usr/bin/foois marked as installed, and /bin/foo is marked as missing. This isusually not the desired behaviour. As a workaround one can join upboth commands in one single paco run:.PP    paco -lp foo-1.0 "make install && mv /bin/foo /usr/bin/foo".PPIn this case only /usr/bin/foo is logged..PPThe understand the meaning of the option \fB\-\-log\-missing\fR, considerthe following example, where the file /foo/bar does not exist:.br    echo /foo/bar | paco --log-missing -lp foo.brThis would log the file /foo/bar, even if it is missing. Without theoption --log-missing /foo/bar is skipped..PPTo remove all versions of the package foo, keeping the files in /etcand /root, and without asking for confirmation:.PP    paco -r --batch -e /etc:/root foo.PPTo remove the package foo-3.3, keeping the files in /var/log and the filesending with ".conf":.PP    paco -r -e '/var/log:*.conf' foo-3.3.PPWe have installed the package 'bubble-1.9' in prefix '/opt/bubble-1.9', butwe haven't logged the installation with paco. No problem! Just create a logfor it thusly:.PP    find /opt/bubble-1.9 | paco -lp bubble-1.9.SH BUGSDue to LD_PRELOAD limitations, paco can't follow the trace of suid programs..brFor the same reason, paco does not work with programs that statically link libc..SH FILES.PP\fI@sysconfdir@/pacorc\fR - configuration file.br\fI@LOGDIR@\fR - default log directory.SH WEB SITEThe latest version of paco should be always available at:.br	http://paco.sourceforge.net.SH COPYRIGHTCopyright (C) 2004-2007  David Rosal <@PACKAGE_BUGREPORT@>.brThis is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE..SH SEE ALSOpacorc(5), pacoball(8), superpaco(8), rpm2paco(8)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?