Skip to content
Permalink
Browse files

Handle Appstream repository in EL8 distros

  • Loading branch information
igsu committed Jan 16, 2020
1 parent 5ab3ca4 commit 9322de30b7474869efec4e5db9266ca1a8e1e919
Showing with 44 additions and 0 deletions.
  1. +11 −0 rpm/setup_10.x
  2. +11 −0 rpm/setup_12.x
  3. +11 −0 rpm/setup_13.x
  4. +11 −0 rpm/src/_setup.sh
@@ -306,6 +306,17 @@ You can try installing with: \`rpm -ivh <url>\`

fi

## Disable AppStream repository due to installation conflicts for EL8
## Otherwise, it will not install the NodeSource's version of Node.js
if [[ "X${DIST_TYPE}${DIST_VERSION}" == "Xel8" ]]; then
print_status """As yum will try to install Node.js from the AppStream repository
instead of the NodeSource repository, the AppStream's version of Node.js has to be disabled.
## Run \`${bold}sudo yum module enable -y nodejs${normal}\` to reactivate the AppStream's Node.js repository.
"""
echo "+ yum module disable -y nodejs"
yum module disable -y nodejs
fi

print_status "Downloading release setup RPM..."

## Two-step process to install the nodesource-release RPM,
@@ -306,6 +306,17 @@ You can try installing with: \`rpm -ivh <url>\`

fi

## Disable AppStream repository due to installation conflicts for EL8
## Otherwise, it will not install the NodeSource's version of Node.js
if [[ "X${DIST_TYPE}${DIST_VERSION}" == "Xel8" ]]; then
print_status """As yum will try to install Node.js from the AppStream repository
instead of the NodeSource repository, the AppStream's version of Node.js has to be disabled.
## Run \`${bold}sudo yum module enable -y nodejs${normal}\` to reactivate the AppStream's Node.js repository.
"""
echo "+ yum module disable -y nodejs"
yum module disable -y nodejs
fi

print_status "Downloading release setup RPM..."

## Two-step process to install the nodesource-release RPM,
@@ -306,6 +306,17 @@ You can try installing with: \`rpm -ivh <url>\`

fi

## Disable AppStream repository due to installation conflicts for EL8
## Otherwise, it will not install the NodeSource's version of Node.js
if [[ "X${DIST_TYPE}${DIST_VERSION}" == "Xel8" ]]; then
print_status """As yum will try to install Node.js from the AppStream repository
instead of the NodeSource repository, the AppStream's version of Node.js has to be disabled.
## Run \`${bold}sudo yum module enable -y nodejs${normal}\` to reactivate the AppStream's Node.js repository.
"""
echo "+ yum module disable -y nodejs"
yum module disable -y nodejs
fi

print_status "Downloading release setup RPM..."

## Two-step process to install the nodesource-release RPM,
@@ -306,6 +306,17 @@ You can try installing with: \`rpm -ivh <url>\`

fi

## Disable AppStream repository due to installation conflicts for EL8
## Otherwise, it will not install the NodeSource's version of Node.js
if [[ "X${DIST_TYPE}${DIST_VERSION}" == "Xel8" ]]; then
print_status """As yum will try to install Node.js from the AppStream repository
instead of the NodeSource repository, the AppStream's version of Node.js has to be disabled.
## Run \`${bold}sudo yum module enable -y nodejs${normal}\` to reactivate the AppStream's Node.js repository.
"""
echo "+ yum module disable -y nodejs"
yum module disable -y nodejs
fi

print_status "Downloading release setup RPM..."

## Two-step process to install the nodesource-release RPM,

0 comments on commit 9322de3

Please sign in to comment.
You can’t perform that action at this time.