From ef0af561c9c85813eab903cca973cf16adc76850 Mon Sep 17 00:00:00 2001 From: Jefferson Date: Tue, 23 Jan 2024 13:39:02 -0500 Subject: [PATCH] chore: Remove yum update in favor of makecache --- scripts/rpm/script_generator/base_script.sh | 4 ++-- scripts/rpm/setup_18.x | 4 ++-- scripts/rpm/setup_20.x | 4 ++-- scripts/rpm/setup_21.x | 4 ++-- scripts/rpm/setup_current.x | 4 ++-- scripts/rpm/setup_lts.x | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/rpm/script_generator/base_script.sh b/scripts/rpm/script_generator/base_script.sh index bfa41421..947f182a 100644 --- a/scripts/rpm/script_generator/base_script.sh +++ b/scripts/rpm/script_generator/base_script.sh @@ -85,12 +85,12 @@ fi # Check for availability of dnf or yum if command_exists dnf; then log "dnf available, updating..." "info" - dnf update -y + dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info" exit 0 elif command_exists yum; then log "yum available, updating..." "info" - yum update -y + yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info" else handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager." diff --git a/scripts/rpm/setup_18.x b/scripts/rpm/setup_18.x index 2582e5c2..04626ac7 100755 --- a/scripts/rpm/setup_18.x +++ b/scripts/rpm/setup_18.x @@ -85,12 +85,12 @@ fi # Check for availability of dnf or yum if command_exists dnf; then log "dnf available, updating..." "info" - dnf update -y + dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info" exit 0 elif command_exists yum; then log "yum available, updating..." "info" - yum update -y + yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info" else handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager." diff --git a/scripts/rpm/setup_20.x b/scripts/rpm/setup_20.x index 1851f2bb..e4d544bd 100755 --- a/scripts/rpm/setup_20.x +++ b/scripts/rpm/setup_20.x @@ -85,12 +85,12 @@ fi # Check for availability of dnf or yum if command_exists dnf; then log "dnf available, updating..." "info" - dnf update -y + dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info" exit 0 elif command_exists yum; then log "yum available, updating..." "info" - yum update -y + yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info" else handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager." diff --git a/scripts/rpm/setup_21.x b/scripts/rpm/setup_21.x index 124bb487..17bc743b 100755 --- a/scripts/rpm/setup_21.x +++ b/scripts/rpm/setup_21.x @@ -85,12 +85,12 @@ fi # Check for availability of dnf or yum if command_exists dnf; then log "dnf available, updating..." "info" - dnf update -y + dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info" exit 0 elif command_exists yum; then log "yum available, updating..." "info" - yum update -y + yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info" else handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager." diff --git a/scripts/rpm/setup_current.x b/scripts/rpm/setup_current.x index 124bb487..17bc743b 100755 --- a/scripts/rpm/setup_current.x +++ b/scripts/rpm/setup_current.x @@ -85,12 +85,12 @@ fi # Check for availability of dnf or yum if command_exists dnf; then log "dnf available, updating..." "info" - dnf update -y + dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info" exit 0 elif command_exists yum; then log "yum available, updating..." "info" - yum update -y + yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info" else handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager." diff --git a/scripts/rpm/setup_lts.x b/scripts/rpm/setup_lts.x index 1851f2bb..e4d544bd 100755 --- a/scripts/rpm/setup_lts.x +++ b/scripts/rpm/setup_lts.x @@ -85,12 +85,12 @@ fi # Check for availability of dnf or yum if command_exists dnf; then log "dnf available, updating..." "info" - dnf update -y + dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info" exit 0 elif command_exists yum; then log "yum available, updating..." "info" - yum update -y + yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid" log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info" else handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager."