Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aginies/grab_packages
Grab all src.rpm packages for a SLE product.
https://github.com/aginies/grab_packages
Last synced: 7 days ago
JSON representation
Grab all src.rpm packages for a SLE product.
- Host: GitHub
- URL: https://github.com/aginies/grab_packages
- Owner: aginies
- Created: 2025-01-07T14:03:06.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-01-28T15:49:37.000Z (16 days ago)
- Last Synced: 2025-01-28T16:22:55.484Z (16 days ago)
- Language: Python
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Goal
**grab_packages.py** script download all **src.rpm** packages which match the pattern listed in the file **package.list** for wanted product.
This will store the source rpm package in the product name directory, ie: **SLE-15-SP6**.
This will download the latest version of the package in the **update** channel and also the initial package in **GA**.
The **package_comparison.py** script creates a table to compare the package SRPM of all packages across product.# Python module needed (grab_packages.py)
**python3-tqdm**
```bash
# zypper in python3-tqdm
```# How to use grab_packages.py
```bash
# chmod 755 grab_packages.py
# ./grab_packages.py
```
![image](https://github.com/aginies/grab_packages/blob/298eb4d7c6916ce2030fa00aa79d5e4afa10d180/grab.jpg)# How to use package_comparison.py
```bash
# chmod 755 package_comparison.py
# ./package_comparison.py
Purpose:
This script compares SRPM versions of packages across multiple SUSE distributions.
It generates an HTML report with links to changelog and RPM diffs.Usage:
python3 package_compare.pyArguments:
- result_dir: Path where results will be stored
- package_list: File containing list of packages to compareThe script uses configuration from config.ini for product names and paths.
# ./package_comparison.py result packages.list
```![image](https://github.com/aginies/grab_packages/blob/c00d1620f6bdd47499a3ca0bb820685502528bb3/images/package_comparison.jpg)
# Configuration
## config.ini
```
[server]
# paths to the repo which contains all the SLE repo
url = https://download.suse.de/ibs
paths = SUSE:/{product_name}:/Update/standard/src, SUSE:/{product_name}:/GA/standard/src[files]
# file which contains the pattern to match
packages = packages.list[store]
# base directory to store the src.rpm files, the product_names will also be used
path = /run/media/aginies/d9d43b59-ccd6-42b2-909d-efd1341db80c/suse/[products]
product_names = SLE-15-SP7, SLE-15-SP6, SLE-15-SP4, SLE-15-SP3, SLE-15-SP2, SLE-15-SP1, SLE-15, SLE-12-SP5, 16.0
```## packages.list
```
hyper-v
libcap-ng
libcgroup1
libguestfs
libvirt
libvirt-glib
lxc
netcontrol
numactl
open-ovf
open-vm-tools
perl-Sys-Virt
python-virtinst
qemu
snpguest
spice
spice-gtk
spice-protocol
spice-vdagent
libguestfs
vhostmd
virt-manager
virt-utils
virt-viewer
virt-top
vm-install
virt-what
virt-v2v
xen
yast2-vm
```