[linux] rpm --help

来源(null)

[linux] rpm --help

[root@localhost rpm]# rpm --help
Usage: rpm [OPTION...]

Query options (with -q or --query):
  -c, --configfiles                list all configuration files
  -d, --docfiles                   list all documentation files
  --dump                           dump basic file information
  -l, --list                       list files in package
  --queryformat=QUERYFORMAT        use the following query format
  -s, --state                      display the states of the listed files
  -v, --verbose                    display a verbose file listing
  -a, --all                        query/verify all packages
  -f, --file                       query/verify package(s) owning file
  -g, --group                      query/verify package(s) in group
  -p, --package                    query/verify a package file (i.e. a binary
                                   *.rpm file)
  --querytags                      display known query tags
  --specfile                       query a spec file
  --whatrequires                   query/verify the package(s) which require a
                                   dependency
  --whatprovides                   query/verify the package(s) which provide a
                                   dependency

Verify options (with -V or --verify):
  --nomd5[|=0x1]                   don't verify MD5 digest of files
  --nofiles[|=0x10000]             don't verify files in package
  --nodeps[|=0x20000]              don't verify package dependencies
  --noscript[|=0x40000]            don't execute %verifyscript (if any)
  -a, --all                        query/verify all packages
  -f, --file                       query/verify package(s) owning file
  -g, --group                      query/verify package(s) in group
  -p, --package                    query/verify a package file (i.e. a binary
                                   *.rpm file)
  --querytags                      display known query tags
  --specfile                       query a spec file
  --whatrequires                   query/verify the package(s) which require a
                                   dependency
  --whatprovides                   query/verify the package(s) which provide a
                                   dependency

Signature options:
  --addsign                        add a signature to a package
  --resign                         sign a package (discard current signature)
  -K, --checksig                   verify package signature
  --nogpg[&=~0x4]                  skip any GPG signatures
  --nomd5[&=~0x2]                  do not verify file md5 checksums

Database options:
  --initdb                         initialize database
  --rebuilddb                      rebuild database inverted lists from
                                   installed package headers

Install/Upgrade/Erase options:
  --allfiles[|=0x40]               install all files, even configurations
                                   which might otherwise be skipped
  --allmatches[|=0x2]              remove all packages which match <package>
                                   (normally an error is generated if
                                   <package> specified multiple packages)
  --badreloc[|=0x8]                relocate files in non-relocateable package
  -e, --erase=<package>+           erase (uninstall) package
  --excludedocs[|=0x20]            do not install documentation
  --excludepath=<path>             skip files with leading component <path>
  --force[|=0x74]                  short hand for --replacepkgs --replacefiles
  -F, --freshen=<packagefile>+     upgrade package(s) if already installed
  -h, --hash[|=0x2]                print hash marks as package installs (good
                                   with -v)
  --ignorearch[|=0x2]              don't verify package architecture
  --ignoreos[|=0x1]                don't verify package operating system
  --ignoresize[|=0x180]            don't check disk space before installing
  --includedocs                    install documentation
  --install=<packagefile>+         install package
  --justdb[|=0x8]                  update the database, but do not modify the
                                   filesystem
  --nodeps                         do not verify package dependencies
  --noorder[|=0x8]                 do not reorder package installation to
                                   satisfy dependencies
  --noscripts[|=0xff0000]          do not execute package scriptlet(s)
  --notriggers[|=0x990000]         do not execute any scriptlet(s) triggered
                                   by this package
  --oldpackage[|=0x40]             upgrade to an old version of the package
                                   (--force on upgrades does this
                                   automatically)
  --percent[|=0x1]                 print percentages as package installs
  --prefix=<dir>                   relocate the package to <dir>, if
                                   relocatable
  --relocate=<old>=<new>           relocate files from path <old> to <new>
  --repackage[|=0x400]             save erased package files by repackaging
  --replacefiles[|=0x30]           install even if the package replaces
                                   installed files
  --replacepkgs[|=0x4]             reinstall if the package is already present
  --test[|=0x1]                    don't install, but tell if it would work or
                                   not
  -U, --upgrade=<packagefile>+     upgrade package(s)

Common options for all rpm modes:
  --version                        print the version of rpm being used
  --quiet                          provide less detailed output
  -v, --verbose                    provide more detailed output
  --define='<name> <body>'         define macro <name> with value <body>
  --eval=<expr>+                   print macro expansion of <expr>+
  -r, --root=<dir>                 use <dir> as the top level directory
                                   (default: "/")
  --macros=<file:...>              read <file:...> instead of default macro
                                   file(s)
  --rcfile=<file:...>              read <file:...> instead of default rpmrc
                                   file(s)
  --showrc                         display final rpmrc and macro configuration

Options implemented via popt alias/exec:
  --scripts                        list install/erase scriptlets from
                                   package(s)
  --setperms                       set permissions of files in a package
  --setugids                       set user/group ownership of files in a
                                   package
  --conflicts                      list capabilities this package conflicts
                                   with
  --obsoletes                      list other packages removed by installing
                                   this package
  --provides                       list capabilities that this package provides
  --requires                       list capabilities required by package(s)
  --info                           list descriptive information from package(s)
  --changelog                      list change logs for this package
  --triggers                       list trigger scriptlets from package(s)
  --last                           list package(s) by install time, most
                                   recent first
  --filesbypkg                     list all files from each package
  --redhatprovides                 find package name that contains a provided
                                   capability (needs rpmdb-redhat package
                                   installed)
  --redhatrequires                 find package name that contains a required
                                   capability (needs rpmdb-redhat package
                                   installed)
  --buildpolicy=<policy>           set buildroot <policy> (e.g. compress man
                                   pages)
  --with=<option>                  enable configure <option> for build
  --without=<option>               disable configure <option> for build

Help options:
  -?, --help                       Show this help message
  --usage                          Display brief usage message

Link: http://www.asm32.net/article_details.aspx?id=63


浏览次数 507 发布时间 2005-11-22 06:55:59 从属分类 UNIX/LINUX 【评论】【 】【打印】【关闭
 
| www.asm32.net | 2006版 | 资料中心 | linux | asm/asm32 | C/C++ | VC++ | java | Python | 书签 | ASP.Net书签 | 京ICP备09029108号-1