Utilities for working with the AlmaLinux OS Git server.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Stepan Oksanichenko 16e73461cb Update 'almalinux/gitutils/blob_upload.py' 4 months ago
almalinux/gitutils Update 'almalinux/gitutils/blob_upload.py' 4 months ago
tests/gitutils 0.0.1 version 2 years ago
.gitignore Initial release of alma_blob_upload tool 2 years ago
LICENSE Initial commit 2 years ago
README.md 0.0.1 version 2 years ago
pyproject.toml 0.0.1 version 2 years ago
setup.py 0.0.1 version 2 years ago



Utilities for working with the AlmaLinux OS Git server.


The alma_get_sources script downloads sources and BLOBs from the AlmaLinux sources cache.


Run the alma_get_sources in a git project root directory:

  1. Clone an AlmaLinux RPM package git project from git.almalinux.org.
  2. Switch to a required branch.
  3. Run the alma_get_sources tool:
    $ alma_get_sources


The alma_blob_upload script uploads sources and BLOBs to the AlmaLinux sources cache.


Create an AWS credentials file ~/.aws/credentials with the following content:

aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY


The utility supports two types of input: a CentOS git repository metadata file or a list of files to upload.

For CentOS repositories workflow will be the following:

  1. Install the get_sources.sh script from the centos-git-common repository.
  2. Clone a project and download its sources as described on the CentOS Wiki.
  3. Run the alma_blob_upload tool (don't forget to replace PROJECT_NAME with an actual project name):
    $ alma_blob_upload -i .PROJECT_NAME.metadata

Alternatively, you can upload a list of files in the following way:

$ alma_blob_upload -f SOURCES/FILE_1 SOURCES/FILE_N

The alma_blob_upload utility can also generate a CentOS-compatible metadata file:

$ alma_blob_upload -o .PROJECT_NAME.metadata -f SOURCES/FILE_1 SOURCES/FILE_N


Licensed under the GPLv3 license, see the LICENSE file for details.