.TH RPMLINT "1" "April 2011" "rpmlint" "User Commands"
rpmlint \- check common problems in rpm packages
\fBrpmlint\fR [\fIOPTION\fR]... [\fIFILE\fR|\fIPACKAGE\fR]...
\fBrpmlint\fR is a tool for checking common errors in rpm packages.
It can be used to test individual packages and spec files before
uploading or to check an entire distribution. By default all
applicable checks are processed but specific checks can be performed
by using command line parameters.
\fIFILE\fR can be a rpm package file, a spec file, or a directory. In
case of a directory, it is recursively searched for rpm and spec files
to check. The special value \fB\-\fR results in standard input being
read and treated as (single) spec file content.
\fIPACKAGE\fR is the name of an installed package or a
.BR glob (7)
pattern to match installed packages, unless a file by that name exists.
Display explanations for reported messages.
Display explanations for the specified message identifiers and exit.
This option may be given multiple times.
Run only the specified check. This option may be given multiple times
to specify multiple checks to run. \fIcheck\fR is the name of the Python
module (as it would be given to Python's import statement) containing the
Check all installed packages.
Insert \fIdir\fR to the front of the list of paths to load checks
from, unless it is already in the list. The default list of check
dirs typically contains only /usr/share/rpmlint. Directories in the
check dirs list are also inserted to the front of the list of paths to
load Python modules from when the check process begins.
Display summary of command line options and exit.
Operate in verbose mode.
Base directory for extracted temporary files, default is what Python's
Display version information and exit.
Ignore output filters.
Write unfiltered output to \fIfile\fR.
Load user configuration from the specified file, default is
$XDG_CONFIG_HOME/rpmlint (~/.config/rpmlint if $XDG_CONFIG_HOME is
empty or not set).
Override a configuration option. \fIvalue\fR is a whitespace separated string,
first word of which is the option name to set, and the Python eval() return
value for the rest is set as the value for the option. Passing only an option
name is treated as if None was passed as its value. See the file "config"
shipped with rpmlint for the list of configuration options and their types.
\-o "NetworkEnabled True"
\-o "Distribution \(aqMy favorite distro\(aq"
\-o "MaxLineLength 80"
\-o "ValidShells (\(aq/bin/sh\(aq, \(aq/bin/bash\(aq)"
All checks do not apply to all argument types. For best check
coverage, run rpmlint on all source and binary packages your build
produces. The set of checks rpmlint runs on source packages is a
superset of the one for plain specfiles, the set of checks run for
installed binary packages is a superset of the one for uninstalled
binary package files, and the source and binary package check sets are
Built-in configuration. When invoked as \fIsomeprefix\fR-rpmlint,
/usr/share/rpmlint/config.\fIsomeprefix\fR is used if it exists,
System wide configuration.
\fB$XDG_CONFIG_HOME/rpmlint\fR or \fB~/.config/rpmlint\fR
.SH EXIT CODES
One or more error message printed.
Badness threshold exceeded.
Originally written by Frédéric Lepied, modified and maintained by
numerous contributors since.
This program is licensed under the GNU General Public License, see the
file COPYING included in the distribution archive.