41 lines
924 B
Markdown
41 lines
924 B
Markdown
To create a persistent pod
|
|
|
|
```
|
|
podman create -it --name rocky-9-man -v $(pwd):/data/ rockylinux:9 /bin/bash
|
|
podman exec -it rocky-9-man /bin/bash
|
|
```
|
|
|
|
To create a temp pod
|
|
|
|
```
|
|
podman run --rm -it -v $(pwd):/data/ rockylinux:9 /bin/bash
|
|
```
|
|
|
|
Then `cd /data`
|
|
|
|
Install Dependencies
|
|
|
|
```
|
|
dnf install -y epel-release
|
|
dnf install -y python3 python3-dnf python3-rpm python3-requests python3-pip python3-jinja2 python3-aiohttp python3-zstandard mandoc
|
|
pip install rpmfile
|
|
```
|
|
|
|
Set alternative python if you need to
|
|
|
|
```
|
|
alternatives --set python $(which python3)
|
|
```
|
|
|
|
And run
|
|
```
|
|
python3 rocky_man.py
|
|
```
|
|
|
|
This will download all appstream and baseos for 9.5 and 8.10 into ./tmp and the finished html will be saved to ./html.
|
|
|
|
TODO:
|
|
- Add async
|
|
- Investigate "Error downloading package: 'utf-8' codec can't decode byte 0xe2 in position 220: invalid continuation byte"
|
|
- Delete files after they have been processed or at the end
|