mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-17 17:56:11 +08:00
RHEL-8.10 will be run in parallel with RHEL-8.8 in CI as non-blocking
until RHEL-8.10 is confirmed stable, then it will replace RHEL-8.8.
Task-number: QTQAINFRA-6367
Change-Id: I4b470754895a72be026e869eb4e4d273eb3801b4
(cherry picked from commit ba9d0e2e4e)
Reviewed-by: Tero Heikkinen <tero.heikkinen@qt.io>
Reviewed-by: Simo Fält <simo.falt@qt.io>
35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (C) 2023 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
set -ex
|
|
|
|
echo "set WritePreparedUpdates=false" | sudo tee -a /etc/PackageKit/PackageKit.conf
|
|
sudo systemctl stop packagekit
|
|
sudo systemctl disable packagekit
|
|
while sudo fuser /usr/libexec/packagekitd >/dev/null 2>&1; do
|
|
echo "Waiting for PackageKit to finish..."
|
|
sleep 1
|
|
done
|
|
sudo yum -y remove PackageKit gnome-software
|
|
|
|
sudo subscription-manager config --rhsm.manage_repos=1
|
|
sudo subscription-manager refresh
|
|
|
|
# List available RHEL versions and bind with correct one
|
|
sudo subscription-manager release --list
|
|
sudo subscription-manager release --set=8.10
|
|
sudo yum clean all
|
|
|
|
# sudo yum config-manager --enable 'rhceph-4-tools-for-rhel-8-x86_64-rpms'
|
|
sudo yum config-manager --enable 'codeready-builder-for-rhel-8-x86_64-rpms'
|
|
sudo yum config-manager --enable 'rhel-8-for-x86_64-baseos-rpms'
|
|
sudo yum config-manager --enable 'rhel-8-for-x86_64-appstream-rpms'
|
|
# Epel is required for 'double-conversion-devel', 'libsqlite3x' and 'p7zip'
|
|
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
|
|
|
sudo yum clean all
|
|
# As well as this fetching the repository data, we also get a printout of the used repos
|
|
sudo yum repolist
|