Giter Site home page Giter Site logo

rpmtoys's Introduction

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.

rpmtoys's People

Contributors

wgwoods avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.