{"id":19478147,"url":"https://github.com/snyk/rpm-parser","last_synced_at":"2025-05-08T19:46:41.606Z","repository":{"id":38304685,"uuid":"247717204","full_name":"snyk/rpm-parser","owner":"snyk","description":"Produce a list of dependencies from an RPM database file","archived":false,"fork":false,"pushed_at":"2025-05-06T19:26:33.000Z","size":49344,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":91,"default_branch":"main","last_synced_at":"2025-05-06T20:32:07.586Z","etag":null,"topics":["dependencies","packages","parser","rpm","security","snyk"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-03-16T14:01:13.000Z","updated_at":"2025-04-17T13:18:50.000Z","dependencies_parsed_at":"2025-05-06T20:35:10.235Z","dependency_job_id":null,"html_url":"https://github.com/snyk/rpm-parser","commit_stats":{"total_commits":34,"total_committers":11,"mean_commits":3.090909090909091,"dds":0.6470588235294117,"last_synced_commit":"0292ed62ecd095a6913e7f645bb77c9e3483c955"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snyk%2Frpm-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snyk%2Frpm-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snyk%2Frpm-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snyk%2Frpm-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snyk","download_url":"https://codeload.github.com/snyk/rpm-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769137,"owners_count":21801373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dependencies","packages","parser","rpm","security","snyk"],"created_at":"2024-11-10T19:47:21.836Z","updated_at":"2025-05-08T19:46:41.533Z","avatar_url":"https://github.com/snyk.png","language":"TypeScript","readme":"![Snyk logo](https://snyk.io/style/asset/logo/snyk-print.svg)\n\n***\n\n![Known Vulnerabilities](https://snyk.io/test/github/snyk/rpm-parser/badge.svg)\n\nSnyk 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.\n\n## Snyk RPM Parser ##\n\nA library that reads the list of packages inside an RPM database file.\n\n### How to use the parser ###\n\n```js\nimport { getPackages } from '@snyk/rpm-parser';\nimport { readFileSync } from 'fs';\n\n// ...\n\nconst rpmDatabase = readFileSync('/var/lib/rpm/Packages');\nconst result = await getPackages(rpmDatabase);\n\nconsole.log(result.response);\n```\n\n### Limitations ###\n\nThe 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.\n\n### Bugs or issues ###\n\nPlease file an [Issue](https://github.com/snyk/rpm-parser/issues) under this repository, providing as much information as you can to reproduce the issue.\n\nIf possible, provide the RPM database file (`/var/lib/rpm/Packages`) or the Operating System used and the packaged installed using the package manager.\n\n### How the parser works ###\n\nRefer to the [BerkeleyDB module README](https://github.com/snyk/rpm-parser/blob/master/lib/berkeleydb/README.md) for a breakdown of the BerkeleyDB version 5.x database.\n\nRefer to the [RPM module README](https://github.com/snyk/rpm-parser/blob/master/lib/rpm/README.md) for details on the package extraction.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnyk%2Frpm-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnyk%2Frpm-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnyk%2Frpm-parser/lists"}