a79c561e8d
- /home/.chezmoiscripts/_universal/run_onchange_before_11-install-docker.tmpl - /home/.chezmoiscripts/_universal/run_onchange_before_05-install-homebrew.tmpl - /home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl - /home/.chezmoiscripts/_universal/run_onchange_before_08-install-zx.tmpl - /home/.chezmoiscripts/_universal/run_onchange_before_09-ensure-node-version.tmpl - /home/.chezmoiscripts/universal/run_before_01-decrypt-age-key.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_11-install-docker.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_05-install-homebrew.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_10-remove-bloatware.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_08-install-zx.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_09-ensure-node-version.tmpl - /home/.chezmoiscripts/centos/run_onchange_before_10-install-centos-dependencies.tmpl - /home/.chezmoiscripts/centos/run_onchange_before_05-upgrade.tmpl - /home/.chezmoiscripts/fedora/run_onchange_before_10-install-fedora-dependencies.tmpl - /home/.chezmoitemplates/universal/common-dependencies - /home/.chezmoitemplates/universal/profile-inline - /home/.chezmoitemplates/ubuntu/common-dependencies - /home/.chezmoitemplates/opensuse/common-dependencies - /home/.chezmoitemplates/freebsd/common-dependencies - /home/.chezmoitemplates/fedora/common-dependencies - /home/.chezmoitemplates/debian/common-dependencies - /home/.chezmoitemplates/archlinux/common-dependencies
28 lines
No EOL
913 B
Bash
28 lines
No EOL
913 B
Bash
#!/usr/bin/env bash
|
|
# Source: https://www.linuxcapable.com/how-to-install-epel-on-centos-stream/
|
|
|
|
{{ includeTemplate "universal/logg-before" }}
|
|
|
|
### Upgrade system
|
|
logg info 'Upgrade system'
|
|
sudo dnf upgrade --refresh
|
|
|
|
### Enable CRB
|
|
logg info 'Ensure the CRB repository is activated'
|
|
sudo dnf config-manager --set-enabled crb
|
|
|
|
### Add EPEL
|
|
if ! dnf repolist | grep 'epel ' > /dev/null; then
|
|
logg info 'Adding the EPEL repository'
|
|
. /etc/os-release
|
|
sudo dnf install -y "https://dl.fedoraproject.org/pub/epel/epel-release-latest-${VERSION}.noarch.rpm"
|
|
fi
|
|
|
|
### Add EPEL Next
|
|
if ! dnf repolist | grep 'epel-next' > /dev/null; then
|
|
logg info 'Adding the EPEL Next repository'
|
|
. /etc/os-release
|
|
sudo dnf install -y "https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-${VERSION}.noarch.rpm"
|
|
else
|
|
logg info 'EPEL Next repository already enabled (EPEL compatibility for CentOS)'
|
|
fi |