packit / rpm-shim

Python RPM shim module for use in virtualenvs
MIT License
2 stars 4 forks source link

Modify the path to rpmdb #8

Closed morpheuslord closed 5 months ago

morpheuslord commented 5 months ago

Description

Hello there,

I am working on an SBOM utility that is capable of static and chroot-based analysis of red-hat-based images and your tool can be a goldmine to integrate but the issue is the image I will be scanning is a mounted volume and I am not able to understand how your tool accesses the DB cause if I can't edit the path to the db I wont be to access the images properly.

Benefit

The main benefits I can see are better integration and extended support.

Importance

This is quite important for me and for devs looking forward to integrating your tool.

Workaround

Participation

nforro commented 5 months ago

Hi, rpm-shim doesn't access anything, it only allows you to import and use RPM Python bindings inside a virtualenv. I think you need to direct your question there: https://github.com/rpm-software-management/rpm

morpheuslord commented 5 months ago

Thanks I will look into it 👍

nforro commented 5 months ago

@morpheuslord Just a hint, this may be what you are after (it may be outdated though): https://jfearn.fedorapeople.org/en-US/RPM/4/html/RPM_Guide/ch16s03.html

morpheuslord commented 5 months ago

@morpheuslord Just a hint, this may be what you are after (it may be outdated though): https://jfearn.fedorapeople.org/en-US/RPM/4/html/RPM_Guide/ch16s03.html

That is exactly what I needed thanks a lot.