@snyk/rpm-parser
Produce a list of dependencies from an RPM database file.
Last updated 2 years ago by snyk-admin .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install @snyk/rpm-parser 
SYNC missed versions from official npm registry.

Snyk logo


Known Vulnerabilities

Snyk helps you find, fix and monitor for known vulnerabilities in your dependencies, both on an ad hoc basis and as part of your CI (Build) system.

Snyk RPM Parser

A library that reads the list of packages inside an RPM database file.

How to use the parser

import { getPackages } from '@snyk/rpm-parser';
import { readFileSync } from 'fs';

// ...

const rpmDatabase = readFileSync('/var/lib/rpm/Packages');
const result = await getPackages(rpmDatabase);

console.log(result.response);

Limitations

The parser currently reads only BerkeleyDB version 5.x as the supported database backend. There are plans within RPM to use SQLite as the database backend but the parser currently does not work with SQLite.

Bugs or issues

Please file an Issue under this repository, providing as much information as you can to reproduce the issue.

If possible, provide the RPM database file (/var/lib/rpm/Packages) or the Operating System used and the packaged installed using the package manager.

How the parser works

Refer to the BerkeleyDB module README for a breakdown of the BerkeleyDB version 5.x database.

Refer to the RPM module README for details on the package extraction.

Current Tags

  • 3.1.0                                ...           latest (2 years ago)

14 Versions

  • 3.1.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.3.2                                ...           2 years ago
  • 2.3.1                                ...           2 years ago
  • 2.3.0                                ...           3 years ago
  • 2.2.1                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.0 [deprecated]           ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (13)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |