Skip to content

wgwoods/rpmtoys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

505e50c · Jun 15, 2023

History

84 Commits
Oct 2, 2019
Aug 7, 2019
Apr 5, 2021
May 24, 2021
Aug 7, 2019
Apr 5, 2021
Aug 7, 2019
Oct 2, 2019
Aug 7, 2019
Mar 29, 2018
Aug 7, 2019
Jun 15, 2023
Aug 7, 2019
Aug 7, 2019
Aug 7, 2019
Jul 11, 2019
Aug 7, 2019
Oct 2, 2019
Dec 2, 2019

Repository files navigation

rpmtoys: fun with packaging!

Hello! This is my repo of RPM toys - little scripts and things that I use to analyze RPM data and metadata.

What you'll find here:

rpm2cpio.sh

A portable shell script to copy the archive payload out of an RPM and into its own file, or to stdout.

Should work anywhere with POSIX sh, POSIX.2 od, and either a sh-builtin $(( )) or POSIX expr.

rpmtoys/

Python module used by scripts here. Includes low-level pure-Python RPM header parsing and RPM tag metadata! Fun!

dino/

A Python module (that uses rpmtoys) I'm using for prototyping the work-in-progress DINO package repo/packfile format.

mkdino.py

A simple CLI to build DINO packfiles out of sets of RPMs, extract RPMs from packfiles, examine packfile contents, etc.

Requirements:

  • python-libarchive-c: dnf install python3-libarchive-c or pip-3 install python-libarchive-c
  • [zstandard]: pip-3 install zstandard

measure-metadata.py

A script to examine actual RPM headers and determine the amount of space used by each individual tag.

dnf-count-rpm-words.py

Use DNF to fetch a list of all the RPM names in 'fedora' and 'updates', split them up into meaningful "words", and dump some CSV data about those words.

This isn't particularly useful, but it's part of a blog post I'm writing and it's also a nice simple example of using DNF directly in Python.

LICENSE

Check the individual files for their licenses. If any file is somehow missing a license header you may assume it's supposed to be covered by the toplevel LICENSE file.

About

li'l scripts and toys for messing with RPMs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published