Skip to content

Install to AlmaLinux 9 #15

Description

@jvlehtonen

Hi,

I did look at the install instructions and at least "CentOS 7" is now a bit dated.
I do know that at this point in time CSC has AlmaLinux-9 images.

I'm not fond of conda, and EPEL has some RPM packages, so I did come up with:

sudo dnf up                     # (almost) always a good thing
sudo dnf epel-release   # Configure EPEL
# This might miss some as I did not run on barebones image
sudo dnf install unzip rclone restic s3cmd python3-openstackclient  zstd libzstd libzstd-devel
# Python venv, with default AlmaLinux 9 Python (3.9)
# For more than one user, so not into $HOME
python3.9 -m venv /opt/allas
source /opt/allas/bin/activate
pip install --upgrade pip
pip install python-swiftclient
pip install crypt4gh
deactivate
# Get the allas-cli-utils
cd /opt      
git clone https://github.com/CSCfi/allas-cli-utils

For use, I created module. (I have package Lmod from EPEL.)

-- -*- lua -*-
--
-- Built 2025-01-16
--

whatis([[Name : allas-cli-utils]])
whatis([[Version : 2025-01]])
whatis([[Description : python3.9 venv for CSC Allas CLI]])

setenv("VIRTUAL_ENV","/opt/allas")
prepend_path("PATH","/opt/allas/bin")
append_path("PATH","/opt/allas-cli-utils")
set_alias("a-go","source /opt/allas-cli-utils/allas_conf")

Hence I could start using the utils with:

ml allas
a-go -u my_csc_username

However, I did not test yet beyond a-list.


Feel free to use, if it is any good.

Jukka V. Lehtonen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions