Giter Site home page Giter Site logo

eopkg-audit's Introduction

eopkg-audit

eopkg-audit is a command-line utility which audits system files against the eopkg database to find discrepancies such as added or deleted files. The existing eopkg check utility can detected deleted or modified files, but does not search system directories to find files that were manually added outside of eopkg.

This command should work much faster than eopkg check as it doesn't compare the contents of each file to check for modification.

Installation

eopkg-audit is a one-file script. Run make install using the provided Makefile to install it to the system. The PREFIX variable is honored. To install to your home directory bin folder, run make PREFIX=$HOME install.

Output

  • Any file recorded in the eopkg database not found in the system is prefixed with "-"
  • Any file found in the system directories not recorded in the eopkg database is prefixed with "+"

Usage

usage: eopkg-audit [-h] [-a] [-d] [-c CONFIG] [-i PATH] [-I PATTERN]
                   [--dump-config]
                   [paths [paths ...]]

Audits system files against the eopkg database, showing files that have been
manually added or deleted in any directory eopkg has installed to.

positional arguments:
  paths                 list of directories to search

optional arguments:
  -h, --help            show this help message and exit
  -a, --added           show only system files that are added outside of eopkg
  -d, --deleted         show only system files that are deleted outside of
                        eopkg
  -c CONFIG, --config CONFIG
                        path to optional configuration file
  -i PATH, --ignore PATH
                        path to a file or directory to ignore (may be given
                        multiple times; if a directory is given, all files and
                        subdirectories beneath it will be ignored)
  -I PATTERN, --ignore-pattern PATTERN
                        regular expression pattern to ignore matches
  --dump-config         dump the default config JSON (useful for writing your
                        own config file)

A configuration file can be specified by argument or will automatically be
read from ~/.config/eopkg-audit/config.json. Use the --dump-config switch to
dump the default configuration, save it to the default config location, and
modify as needed. The configuration file should consist of a JSON dict with
the following key-value pairs. 'ignore': list of paths; 'ignore_pattern': list
of patterns

Dependencies

This should be usable on any Solus machine, provided that eopkg works.

eopkg-audit's People

Contributors

tomocafe avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.