Code Monkey home page Code Monkey logo

rpmlint's Introduction

rpmlint Build Status

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:

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.

rpmlint's People

Contributors

scop avatar mscherer avatar stefanbruens avatar dirkmueller avatar lnussel avatar hroncok avatar aborrero avatar adamwill avatar fak3 avatar tomato42 avatar larsks avatar nmav avatar opoplawski avatar saschpe avatar yaneti avatar

Watchers

Per Øyvind Karlsen avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.