GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sethmlarson/whichprovides: Packaging manager-agnostic support for "yum whichprovides"

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src/whichprovides
src/whichprovides
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
noxfile.py
noxfile.py
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

whichprovides

Package manager agnostic support for "yum whichprovides" which maps a file back to its providing package. This is useful for generating a package URL (PURL) identifier.

You can install the package from PyPI like so:

$ python -m pip install whichprovides

You can also "splat" the module into your own projects:

$ git clone https://github.com/sethmlarson/whichprovides
$ cp whichprovides/src/whichprovides/__init__.py ./whichprovides.py

Then use the whichprovides() API inside of Python code:

>>> import whichprovides
>>> whichprovides.whichprovides("/usr/lib/x86_64-linux-gnu/libssl3.so")

ProvidedBy(
  package_type='deb',
  distro='ubuntu',
  package_name='libnss3',
  package_version='2:3.98-0ubuntu0.22.04.2'
)

The functionality is also accessible from the command line:

$ python -m pip install whichprovides
$ python -m whichprovides /usr/lib/x86_64-linux-gnu/libssl3.so 

pkg:deb/ubuntu/libnss3@2:3.98-0ubuntu0.22.04.2

About

Packaging manager-agnostic support for "yum whichprovides"

pypi.org/project/whichprovides

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.