Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@snyk/rpm-parser

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snyk/rpm-parser

Produce a list of dependencies from an RPM database file.

  • 3.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 10 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc