When I first started learning about Linux, the output of rpm was the most demoralizing thing ever.
Seeing as rpm is a very basic tool that most new users need to use very early on in their Linux experiences, I feel that this could be more informative. I can hardly read the alphabet soup, let alone make any use of it.rpm
RPM version 4.4.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Usage: rpm [-aKfgpWHqV] [-aKfgpWHqVcdils] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqVK] [-aKfgpWHqVcdilsaKfgpWHqVK] [-aKfgpWHqVcdilsaKfgpWHqVKi] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv?] [-a|--all] [-f|--file] [-g|--group]
[-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid]
[--specfile] [--triggeredby] [--whatrequires] [--whatprovides]
[--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list]
[--queryformat=QUERYFORMAT] [-s|--state] [--nomd5] [--nofiles]
[--nodeps] [--noscript] [--comfollow] [--logical] [--nochdir]
[--nostat] [--physical] [--seedot] [--xdev] [--whiteout]
[--addsign] [-K|--checksig] [--delsign] [--import] [--resign]
[--nodigest] [--nosignature] [--initdb] [--rebuilddb] [--aid]
[--allfiles] [--allmatches] [--badreloc] [-e|--erase <package>+]
[--excludedocs] [--excludepath=<path>] [--fileconflicts] [--force]
[-F|--freshen <packagefile>+] [-h|--hash] [--ignorearch] [--ignoreos]
[--ignoresize] [-i|--install] [--justdb] [--nodeps] [--nomd5]
[--nocontexts] [--noorder] [--nosuggest] [--noscripts]
[--notriggers] [--oldpackage] [--percent] [--prefix=<dir>]
[--relocate=<old>=<new>] [--repackage] [--replacefiles]
[--replacepkgs] [--test] [-U|--upgrade <packagefile>+]
[-D|--define 'MACRO EXPR'] [-E|--eval 'EXPR'] [--macros=<FILE:...>]
[--nodigest] [--nosignature] [--rcfile=<FILE:...>] [-r|--root ROOT]
[--querytags] [--showrc] [--quiet] [-v|--verbose] [--version]
[-?|--help] [--usage] [--scripts] [--setperms] [--setugids]
[--conflicts] [--obsoletes] [--provides] [--requires] [--info]
[--changelog] [--xml] [--triggers] [--last] [--filesbypkg]
[--fileclass] [--filecolor] [--filecontext] [--fscontext]
[--recontext] [--fileprovide] [--filerequire] [--redhatprovides]
[--redhatrequires] [--buildpolicy=<policy>] [--with=<option>]
[--without=<option>]
The above is the same as "rpm --usage" so for some crazy people who really want it can still have access to it if it changes.
I was thinking something along these lines might be more eliucidating:
I'm hoping that I can get some support behind this and actually see it implemented. What does everyone think?Code:The RPM Package Manager (RPM) is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages. Query mode options (after -q) -i print package information -c list all configuration files -d list all documentation files -l list files in package -a list all packages -f list package(s) owning file --whatrequires list the package(s) which require a dependency --whatprovides list the package(s) which provide a dependency Install/Upgrade/Erase mode options (after -i or -U or -e) -h print hash marks as package installs (good with -v) Verify options (after -V): --nofiles don't verify files in package -a query/verify all packages -f query/verify package(s) owning file Common options for all rpm modes: --quiet provide less detailed output --verbose, -v provide more detailed output --version print the version of rpm being used Help options: --help, -? Show a more complete help message --usage Display a concise usage message Examples: rpm -q sendmail #see if sendmail is installed, and print version info rpm -qic bash #give info for and list all configuration files rpm -qa | grep font #locate all installed packages with font in the name rpm -q --whatprovides httpd #see what package is providing the html server rpm -qf file #see what package a file belongs to rpm -e rhythmbox #uninstall rhythmbox rpm -i file.rpm #install file.rpm regardless of other installed versions (-U is prefered) rpm -Uvh file.rpm #install file.rpm, replacing older versions, displaying hashes and verbosity rpm -Va --nofiles #check your system for missing dependencies


Reply With Quote
.
