Skip to main content

CLI to validate yum/apt repositories

Project description

repoaudit

A tool for validating apt and yum repositories.

Installation and Usage

To install repoaudit from PyPI:

pip install repoaudit

Then run:

repoaudit --help

Examples

# validate all distros of azure-cli apt repo
repoaudit apt https://packages.microsoft.com/repos/azure-cli/

# validate only focal and bionic distros of azure-cli apt repo
repoaudit apt --dists focal,bionic https://packages.microsoft.com/repos/azure-cli/

# validate azurecore repo
repoaudit yum https://packages.microsoft.com/yumrepos/azurecore/

# validate all nested yumrepos
repoaudit yum -r https://packages.microsoft.com/yumrepos/

# validate all nested aptrepos
repoaudit yum -r https://packages.microsoft.com/repos/

# output json results to a file
repoaudit yum -r https://packages.microsoft.com/yumrepos/ -o example_file.json

# check metadata signatures by providing public keys
repoaudit apt https://packages.microsoft.com/repos/cbl-d -p https://packages.microsoft.com/keys/microsoft.asc,https://packages.microsoft.com/keys/msopentech.asc

Development

Setup

First install poetry per the installation docs.

Then clone the repo, cd into the repoaudit directory, and run poetry install.

Usage

To load the poetry shell and run repoaudit:

poetry shell
repoaudit

Alternatively you can run:

poetry run repoaudit

Releasing

First bump the version in pyproject.toml. Then commit it:

git commit -am "0.2.0 Release"

Open a PR and get it merged. Then go to the Github new release page and create a new release

Once that's done, pull the tag and use poetry to build it:

git pull --tags
git checkout 0.2.0
poetry publish --build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repoaudit-0.2.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

repoaudit-0.2.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file repoaudit-0.2.0.tar.gz.

File metadata

  • Download URL: repoaudit-0.2.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

File hashes

Hashes for repoaudit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3397cbc4e51e56963326c34ed2a0a8b48e2ac599811a378b35f88b330ca406ee
MD5 ff3cbf9d556896fa3bdcaf5af4179248
BLAKE2b-256 d88c86f221c60ecd1c40d844374a5089b62a39f05c35c94e866e9c5990ee1591

See more details on using hashes here.

File details

Details for the file repoaudit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: repoaudit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

File hashes

Hashes for repoaudit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 746fc245e6e6ee02da7678c2373ba413f6f9f0ef72182c40453a2f3eb310c525
MD5 2b519cd87d392a2d3a36f3c3b904722f
BLAKE2b-256 eccb4a9b95af4f24e1ef5a518dfa7fdb2ae5942254b862c42e756f1bcf35a3a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page