{"id":19378883,"url":"https://github.com/linbit/dnfjson","last_synced_at":"2025-08-23T12:39:52.697Z","repository":{"id":82827667,"uuid":"357467489","full_name":"LINBIT/dnfjson","owner":"LINBIT","description":"A wrapper around libdnf that produces JSON output","archived":false,"fork":false,"pushed_at":"2024-05-13T09:39:56.000Z","size":19,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-24T16:28:13.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LINBIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-13T07:47:34.000Z","updated_at":"2025-02-05T04:53:34.000Z","dependencies_parsed_at":"2025-01-07T05:41:04.745Z","dependency_job_id":"bfb6959d-3dc6-4a69-9992-cf4564b1901a","html_url":"https://github.com/LINBIT/dnfjson","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/LINBIT/dnfjson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fdnfjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fdnfjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fdnfjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fdnfjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LINBIT","download_url":"https://codeload.github.com/LINBIT/dnfjson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fdnfjson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271747031,"owners_count":24813607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T09:07:41.482Z","updated_at":"2025-08-23T12:39:52.651Z","avatar_url":"https://github.com/LINBIT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dnfjson\n\n`dnfjson` is a helper script which uses [libdnf](https://github.com/rpm-software-management/libdnf),\nthe core library of [dnf](https://github.com/rpm-software-management/dnf), to\nperform certain package management tasks while providing machine readable output\nin the JSON format.\n\n## Installing\n\n```\n$ pip3 install dnfjson\n```\n\n## Example\n\n```\n$ dnfjson.py install acpid\n{\"type\": \"downloading\", \"package\": \"acpid-2.0.30-2.el8.x86_64.rpm\", \"done_files\": 1, \"total_files\": 1, \"done_size\": 82288, \"total_size\": 82288}\n{\"type\": \"installing\", \"package\": {\"name\": \"acpid\", \"epoch\": 0, \"version\": \"2.0.30\", \"release\": \"2.el8\", \"arch\": \"x86_64\"}, \"action\": \"PKG_INSTALL\", \"done_pkgs\": 1, \"total_pkgs\": 1}\n\n$ dnfjson.py upgrade --pretend\n{\"packages\": [{\"name\": \"file\", \"epoch\": 0, \"version\": \"5.33\", \"release\": \"16.el8_3.1\", \"arch\": \"x86_64\"}, {\"name\": \"file-libs\", \"epoch\": 0, \"version\": \"5.33\", \"release\": \"16.el8_3.1\", \"arch\": \"x86_64\"}, {\"name\": \"systemd\", \"epoch\": 0, \"version\": \"239\", \"release\": \"41.el8_3.2\", \"arch\": \"x86_64\"}, {\"name\": \"zlib\", \"epoch\": 0, \"version\": \"1.2.11\", \"release\": \"16.2.el8_3\", \"arch\": \"x86_64\"}, {\"name\": \"crypto-policies\", \"epoch\": 0, \"version\": \"20210209\", \"release\": \"1.gitbfb6bed.el8_3\", \"arch\": \"noarch\"}, {\"name\": \"crypto-policies-scripts\", \"epoch\": 0, \"version\": \"20210209\", \"release\": \"1.gitbfb6bed.el8_3\", \"arch\": \"noarch\"}, {\"name\": \"dbus\", \"epoch\": 1, \"version\": \"1.12.8\", \"release\": \"12.el8_3\", \"arch\": \"x86_64\"}, {\"name\": \"dbus-common\", \"epoch\": 1, \"version\": \"1.12.8\", \"release\": \"12.el8_3\", \"arch\": \"noarch\"}, {\"name\": \"dbus-daemon\", \"epoch\": 1, \"version\": \"1.12.8\", \"release\": \"12.el8_3\", \"arch\": \"x86_64\"}, {\"name\": \"systemd-libs\", \"epoch\": 0, \"version\": \"239\", \"release\": \"41.el8_3.2\", \"arch\": \"x86_64\"}, {\"name\": \"systemd-pam\", \"epoch\": 0, \"version\": \"239\", \"release\": \"41.el8_3.2\", \"arch\": \"x86_64\"}, {\"name\": \"systemd-udev\", \"epoch\": 0, \"version\": \"239\", \"release\": \"41.el8_3.2\", \"arch\": \"x86_64\"}, {\"name\": \"dbus-libs\", \"epoch\": 1, \"version\": \"1.12.8\", \"release\": \"12.el8_3\", \"arch\": \"x86_64\"}, {\"name\": \"dbus-tools\", \"epoch\": 1, \"version\": \"1.12.8\", \"release\": \"12.el8_3\", \"arch\": \"x86_64\"}]}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinbit%2Fdnfjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinbit%2Fdnfjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinbit%2Fdnfjson/lists"}