1RPMLINT(1) User Commands RPMLINT(1)
2
3
4
6 rpmlint - check common problems in rpm packages
7
9 rpmlint [OPTION]... [FILE|PACKAGE]...
10
12 rpmlint is a tool for checking common errors in rpm packages. It can
13 be used to test individual packages and spec files before uploading or
14 to check an entire distribution. By default all applicable checks are
15 processed but specific checks can be performed by using command line
16 parameters.
17
18 FILE can be a rpm package file, a spec file, or a directory. In case
19 of a directory, it is recursively searched for rpm and spec files to
20 check. The special value - results in standard input being read and
21 treated as (single) spec file content. PACKAGE is the name of an
22 installed package or a glob(7) pattern to match installed packages,
23 unless a file by that name exists.
24
25 -i, --info
26 Display explanations for reported messages.
27
28 -I, --explain=messageid
29 Display explanations for the specified message identifiers and
30 exit. This option may be given multiple times.
31
32 -c, --check=check
33 Run only the specified check. This option may be given multiple
34 times to specify multiple checks to run. check is the name of
35 the Python module (as it would be given to Python's import
36 statement) containing the check.
37
38 -a, --all
39 Check all installed packages.
40
41 -C, --checkdir=dir
42 Insert dir to the front of the list of paths to load checks
43 from, unless it is already in the list. The default list of
44 check dirs typically contains only /usr/share/rpmlint. Directo‐
45 ries in the check dirs list are also inserted to the front of
46 the list of paths to load Python modules from when the check
47 process begins.
48
49 -h, --help
50 Display summary of command line options and exit.
51
52 -v, --verbose
53 Operate in verbose mode.
54
55 -E, --extractdir=dir
56 Base directory for extracted temporary files, default is what
57 Python's tempfile.gettempdir() returns.
58
59 -V, --version
60 Display version information and exit.
61
62 -n, --noexception
63 Ignore output filters.
64
65 --rawout=file
66 Write unfiltered output to file.
67
68 -f, --file=conffile
69 Load user configuration from the specified file, default is
70 $XDG_CONFIG_HOME/rpmlint (~/.config/rpmlint if $XDG_CONFIG_HOME
71 is empty or not set).
72
73 -o, --option=value
74 Override a configuration option. value is a whitespace sepa‐
75 rated string, first word of which is the option name to set, and
76 the Python eval() return value for the rest is set as the value
77 for the option. Passing only an option name is treated as if
78 None was passed as its value. See the file "config" shipped
79 with rpmlint for the list of configuration options and their
80 types. For example:
81 -o "NetworkEnabled True"
82 -o "Distribution 'My favorite distro'"
83 -o "MaxLineLength 80"
84 -o "ValidShells ('/bin/sh', '/bin/bash')"
85
87 All checks do not apply to all argument types. For best check cover‐
88 age, run rpmlint on all source and binary packages your build produces.
89 The set of checks rpmlint runs on source packages is a superset of the
90 one for plain specfiles, the set of checks run for installed binary
91 packages is a superset of the one for uninstalled binary package files,
92 and the source and binary package check sets are quite different.
93
95 /usr/share/rpmlint/config, /usr/share/rpmlint/config.*
96 Built-in configuration. When invoked as someprefix-rpmlint,
97 /usr/share/rpmlint/config.someprefix is used if it exists, oth‐
98 erwise /usr/share/rpmlint/config.
99
100 /etc/rpmlint/*config
101 System wide configuration.
102
103 $XDG_CONFIG_HOME/rpmlint or ~/.config/rpmlint
104 User configuration.
105
107 0 No errors.
108
109 1 Unspecified error.
110
111 2 Interrupted.
112
113 64 One or more error message printed.
114
115 66 Badness threshold exceeded.
116
118 Originally written by Frédéric Lepied, modified and maintained by
119 numerous contributors since.
120
122 This program is licensed under the GNU General Public License, see the
123 file COPYING included in the distribution archive.
124
125
126
127rpmlint April 2011 RPMLINT(1)