Git Product home page Git Product logo

dcrpm's Introduction

dcrpm

Continuous Integration Code style: black

dcrpm ("detect and correct rpm") is a tool to detect and correct common issues around RPM database corruption. It attempts a query against your RPM database and runs db4's db_recover if it's hung or otherwise seems broken. It then kills any jobs which had the RPM db open previously since they will be stuck in infinite loops within libdb and can't recover cleanly.

Usage

Run dcrpm with no option to detect and correct any outstanding issues with RPM on your host. Additional options can be used to customize logging or select specific remediations. dcrpm is meant to be run from cron regularly to keep things happy and healthy.

Requirements

dcrpm requires Python 2.7 and above and the package psutil. It also requires lsof to be in $PATH. It should work on any Linux distribution with RPM and on Mac OS X.

Installing dcrpm

dcrpm is packaged in Fedora as of Fedora 32 and in EPEL as of EPEL 8. It can be installed with:

dnf install dcrpm

This will also install any necessary dependencies at the same time.

Building and installing dcrpm from source

The easiest way to manually install dcrpm is get the source and install it using setup.py:

python setup.py install

This will fetch psutil from PyPI for you. dcrpm also assumes that the system will have RPM and Yum or DNF installed.

Building and installing for development

If you want to develop, the easiest way to get dcrpm is by using pip:

pip install -r requirements.txt # get extra packages
python setup.py install

When developing it's important to make sure the tests continue to pass, and to ensure new features have the appropriate test coverage. You can run the test suite with:

python setup.py test

which will fetch mock from pypi if needed and then run the tests.

Contribute

See the CONTRIBUTING file for how to help out.

License

dcrpm is GPLv2-licensed.

dcrpm's People

Contributors

davide125 avatar get9 avatar ifel avatar aleivag avatar nikitakoshikov avatar jaymzh avatar malmond77 avatar fejese avatar jgoguen avatar joshuamiller01 avatar markdrayton avatar michel-slm 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.