Version 4.4¶
Prerequisite¶
Before installing Ocean core packages, you need to install a RPM based distribution.
- To directly use Ocean repositories, be sure to install Almalinux 9.4 following the instruction here :
Warning
This version has been build against Almalinux 9.4 and we strongly recommand you to use an RHEL 9.4 EUS version if you want to use this distribution in production.
- The following distro repositories are mandatory:
BaseOS
AppStream
Extras
High Availability
How to install Ocean repositories¶
Following instruction will install Ocean repositories on your system.
Define Ocean version¶
export VERSION=4.4-1.x86_64
Download and install ocean-repos¶
rpm -ivh https://ocean.eupex.eu/install/ocean-repos-${VERSION}.rpm
Download and install mandatory repositories¶
rpm -ivh https://yum.puppetlabs.com/puppet/el/9/x86_64/puppet-release-1.0.0-34.el9.noarch.rpm rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Import Ocean GPG key (optional)¶
To avoid import prompt on first Ocean package installation, you have to import manually Ocean GPG key.
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Ocean
Verify Ocean installation repositories¶
After these two steps, you should have Ocean repositories installed on your system with its GPG key imported.
Check GPG keys import
rpm -qai gpg-pubkey* | grep Ocean Packager : Ocean Project <ocean@xxx.xxx.xx> Summary : gpg(Ocean Project <ocean@xxx.xxx.xx>)
Check repositories
dnf repolist repo id repo name ... mofed Mofed ocean-core Ocean-core ...
Install Ocean core release¶
dnf install ocean-release
(Optional) Enable provided repository snapshots¶
dnf install -y yum-utils for repo in alma-debuginfo-ocean influx do yum-config-manager --set-enable ${repo} done
Congratulation, following all these steps, you successfully setup Ocean Core repositories.
Testing installation in container¶
Here is a straight-forward example of how to install the Ocean repository in a Almalinux 9.4 container:
$ docker run -it --rm almalinux:9.4 [root@2bc96f07df1b /]# export VERSION=4.4-1.x86_64 [root@2bc96f07df1b /]# rpm -i https://ocean.eupex.eu/install/ocean-repos-${VERSION}.rpm [root@2bc96f07df1b /]# rpm -i https://yum.puppetlabs.com/puppet/el/9/x86_64/puppet-release-1.0.0-34.el9.noarch.rpm [root@2bc96f07df1b /]# rpm -i https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm [root@2bc96f07df1b /]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Ocean [root@2bc96f07df1b /]# dnf repolist repo id repo name appstream AlmaLinux 9 - AppStream baseos AlmaLinux 9 - BaseOS debuginfo debuginfo epel Extra Packages for Enterprise Linux 9 - x86_64 epel-cisco-openh264 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64 extras AlmaLinux 9 - Extras ha ha influx influx mofed mofed mongodb mongodb ocean-core Ocean-core os os puppet puppet updates updates [root@2bc96f07df1b /]# dnf install ocean-release Repository crb is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository epel is listed more than once in the configuration Repository puppet is listed more than once in the configuration Ocean-core 6.8 MB/s | 700 kB 00:00 os 16 MB/s | 17 MB 00:01 updates 22 MB/s | 16 MB 00:00 ha 1.4 MB/s | 785 kB 00:00 debuginfo 9.4 MB/s | 6.7 MB 00:00 mofed 141 kB/s | 134 kB 00:00 influx 1.7 MB/s | 258 kB 00:00 puppet 8.6 MB/s | 6.9 MB 00:00 mongodb 74 kB/s | 36 kB 00:00 AlmaLinux 9 - AppStream 3.8 MB/s | 13 MB 00:03 AlmaLinux 9 - BaseOS 9.5 MB/s | 12 MB 00:01 AlmaLinux 9 - Extras 54 kB/s | 20 kB 00:00 Extra Packages for Enterprise Linux 9 - x86_64 2.2 MB/s | 20 MB 00:08 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64 2.7 kB/s | 2.5 kB 00:00 Dependencies resolved. ================================================================================================================================================================ Package Architecture Version Repository Size ================================================================================================================================================================ Installing: ocean-release x86_64 4.4-1.el9 ocean-core 6.6 k Transaction Summary ================================================================================================================================================================ Install 1 Package Total download size: 6.6 k Installed size: 18 Is this ok [y/N]: y Downloading Packages: ocean-release-4.4-1.el9.x86_64.rpm 277 kB/s | 6.6 kB 00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 259 kB/s | 6.6 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : ocean-release-4.4-1.el9.x86_64 1/1 Verifying : ocean-release-4.4-1.el9.x86_64 1/1 Installed: ocean-release-4.4-1.el9.x86_64 Complete!