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."