Você está na página 1de 3

aix rpm nim01:/ # rpm --help --recompile RPM version 3.0.

5 Copyright (C) 1998 - Red Hat Software This may be freely redistributed under the terms of the GNU GPL usage: --help - print this message --version - print the version of rpm being used all modes support the following arguments: --rcfile <file> - use <file> instead of /etc/rpmrc and $HOME/.rpmrc -v - be a little more verbose -vv - be incredibly verbose (for debugging) -q - query mode --root <dir> - use <dir> as the top level directory --dbpath <dir> - use <dir> as the directory for the database --queryformat <qfmt> - use <qfmt> as the header format (implies -i) install, upgrade and query (with -p) allow ftp URL's to be used in place of file names as well as the following options: --ftpproxy <host> - hostname or IP of ftp proxy --ftpport <port> - port number of ftp server (or proxy) --httpproxy <host> - hostname or IP of http proxy --httpport <port> - port number of http server (or proxy) Package specification options: -a - query all packages -f <file>+ - query package owning <file> -p <packagefile>+ - query (uninstalled) package <packagefile> --triggeredby <pkg> - query packages triggered by <pkg> --whatprovides <cap> - query packages which provide <cap> capability --whatrequires <cap> - query packages which require <cap> capability Information selection options: -i - display package information --changelog - display the package's change log -l - display package file list -s - show file states (implies -l) -d - list only documentation files (implies -l) -c - list only configuration files (implies -l) --dump - show all verifiable information for each file (must be used with -l, -c, or -d) --provides - list capabilities package provides --requires -R - list package dependencies --scripts - print the various [un]install scripts --triggers - show the trigger scripts contained in the package -V -y --pipe <cmd> --verify --dbpath <dir> --root <dir> --nodeps --nomd5 --nofiles --setperms

- send stdout to <cmd> - verify a package installation using the same same package specification options as -q - use <dir> as the directory for the database - use <dir> as the top level directory - do not verify package dependencies - do not verify file md5 checksums - do not verify file attributes - set the file permissions to those in the package database using the same package specification

--setugids

options as -q - set the file owner and group to those in the package database using the same package specification options as -q

--install <packagefile> -i <packagefile> - install package --excludepath <path> - skip files in path <path> --relocate <oldpath>=<newpath> - relocate files from <oldpath> to <newpath> --badreloc - relocate files even though the package doesn't allow it --prefix <dir> - relocate the package to <dir>, if relocatable --dbpath <dir> - use <dir> as the directory for the database --excludedocs - do not install documentation --force - short hand for --replacepkgs --replacefiles -h --hash - print hash marks as package installs (good with -v) --allfiles - install all files, even configurations which might otherwise be skipped --ignorearch - don't verify package architecture --ignoresize - don't check disk space before installing --ignoreos - don't verify package operating system --includedocs - install documentation --justdb - update the database, but do not modify the filesystem --nodeps - do not verify package dependencies --noorder - do not reorder package installation to satisfy dependencies --noscripts - don't execute any installation scripts --notriggers - don't execute any scripts triggered by this package --percent - print percentages as package installs --replacefiles - install even if the package replaces installed files --replacepkgs - reinstall if the package is already present --root <dir> - use <dir> as the top level directory --test - don't install, but tell if it would work or not --upgrade <packagefile> -U <packagefile> - upgrade package (same options as --install, plus) --oldpackage - upgrade to an old version of the package (--force on upgrades does this automatically) --erase <package> -e <package> --allmatches --dbpath <dir> --justdb --nodeps --noorder --noscripts --notriggers --root <dir> - erase (uninstall) package - remove all packages which match <package> (normally an error is generated if <package> specified multiple packages) - use <dir> as the directory for the database - update the database, but do not modify the filesystem - do not verify package dependencies - do not reorder package installation to satisfy dependencies - do not execute any package specific scripts - don't execute any scripts triggered by this package - use <dir> as the top level directory

-b<stage> <spec> -t<stage> <tarball> p l c i b a --short-circuit --clean --rmsource --sign --buildroot <dir> --target=<platform>+ --nobuild --timecheck <secs> --rebuild <src_pkg>

build package, where <stage> is one of: prep (unpack sources and apply patches) list check (do some cursory checks on %files) compile (prep and compile) install (prep, compile, install) binary package (prep, compile, install, package) bin/src package (prep, compile, install, package) skip straight to specified stage (only for c,i) remove build tree when done remove sources and spec file when done generate PGP/GPG signature use <dir> as the build root build the packages for the build targets platform1...platformN. - do not execute any stages - set the time check to <secs> seconds (0 disables)

- install source package, build binary package and remove spec file, sources, patches, and icons. --rmsource <spec> - remove sources and spec file --recompile <src_pkg> - like --rebuild, but don't build any package --resign <pkg>+ - sign a package (discard current signature) --addsign <pkg>+ - add a signature to a package -K --checksig <pkg>+ - verify package signature --nopgp - skip any PGP signatures --nogpg - skip any GPG signatures --nomd5 - skip any MD5 signatures --querytags - list the tags that can be used in a query format --initdb - make sure a valid database exists --rebuilddb - rebuild database from existing database --dbpath <dir> - use <dir> as the directory for the database --root <dir> - use <dir> as the top level directory nim01:/ #

Você também pode gostar