File: README.md

package info (click to toggle)
rpmlint 1.9-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, stretch
  • size: 22,212 kB
  • ctags: 722
  • sloc: python: 14,926; makefile: 63; sh: 49
file content (71 lines) | stat: -rw-r--r-- 2,600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# rpmlint [![Build Status](https://travis-ci.org/rpm-software-management/rpmlint.svg)](https://travis-ci.org/rpm-software-management/rpmlint)

rpmlint is a tool for checking common errors in rpm packages.  rpmlint
can be used to test individual packages before uploading or to check
an entire distribution.  By default all applicable checks are
performed but specific checks can be performed by using command line
parameters.

rpmlint can check binary rpms (files and installed ones), source rpms,
and plain specfiles, but all checks do not apply to all argument
types.  For best check coverage, run rpmlint on source rpms instead of
plain specfiles, and installed binary rpms instead of uninstalled
binary rpm files.

The idea for rpmlint is from the lintian tool of the Debian project.

Comments and new checks welcome. See the project home page at
https://github.com/rpm-software-management/rpmlint

Implemented checks:

- Tag checks (TagsCheck).
- Distribution specific checks (MandrakeCheck).
- Binary checks (BinaryCheck).
- Configuration file checks (ConfigCheck).
- Location, permission, group and owner checks (FileCheck).
- suid warnings (FileCheck).
- Signature checks (SignatureCheck).
- FHS checks (FHSCheck).
- Source specific checks (SourceCheck).
- i18n checks (I18NCheck).
- Menu system checks (MenuCheck).
- Scriptlet checks (PostCheck).
- `/etc/rc.d/init.d` checks (InitScriptCheck).
- Spec file checks (SpecCheck).
- Zip/Jar file checks (ZipCheck).
- Pam configuration file checks (PamCheck).
- Rpm file checks (RpmFileCheck).
- Software Collections checks (SCLCheck).

If you want to change configuration options or the list of checks, use
the global configuration files `/etc/rpmlint/*config` or the user
configuration file `$XDG_CONFIG_HOME/rpmlint` (`~/.config/rpmlint` if
`$XDG_CONFIG_HOME` is empty or not set).

Configuration files are Python source files and should begin with the
following line:

```python
from Config import *
```

to load configuration functions.

Configuration functions:

`resetChecks()` resets the list of checks.

`addCheck(check)` adds the check to the list of checks to try.

`addCheckDir(path)` adds a path to look for checks.

`setOption(name, value)` sets the value of the configuration option.
See below for the list of available options.

`addFilter(regexp)` adds a filter to remove the output of a check, and
`removeFilter(regexp)` removes one (for use eg. in per-user configuration
files to remove filters added in system config files).

See the file `config` shipped with rpmlint for examples, available
options and their default values.