Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove yum update in favor of makecache #1771

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/rpm/script_generator/base_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_18.x
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_20.x
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_21.x
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_current.x
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_lts.x
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down