Update SLES 12 installation for Science repository removal
The Science repo no longer supports SLES 12. Switch to using the Python backports repository on SLES 12 for openblas-devel.
This commit is contained in:
parent
0e2cfa3f83
commit
7d2f5ee7cc
2 changed files with 8 additions and 6 deletions
|
|
@ -107,10 +107,11 @@ sudo yum install R-${R_VERSION}-1-1.x86_64.rpm
|
||||||
|
|
||||||
#### SUSE Linux
|
#### SUSE Linux
|
||||||
|
|
||||||
Enable the [Science](https://en.opensuse.org/openSUSE:Science_Repositories) repository (SLES 12 only):
|
Enable the Python backports repository (SLES 12 only):
|
||||||
```bash
|
```bash
|
||||||
# SLES 12
|
# SLES 12
|
||||||
sudo zypper --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/science/SLE_12/science.repo
|
VERSION="SLE_$(grep "^VERSION=" /etc/os-release | sed -e 's/VERSION=//' -e 's/"//g' -e 's/-/_/')"
|
||||||
|
sudo zypper --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/devel:/languages:/python:/backports/$VERSION/devel:languages:python:backports.repo
|
||||||
```
|
```
|
||||||
|
|
||||||
Download the rpm package:
|
Download the rpm package:
|
||||||
|
|
|
||||||
|
|
@ -291,7 +291,7 @@ install_pre () {
|
||||||
install_epel "${ver}"
|
install_epel "${ver}"
|
||||||
;;
|
;;
|
||||||
"SLES12")
|
"SLES12")
|
||||||
install_sci
|
install_python_backports
|
||||||
;;
|
;;
|
||||||
"LEAP12" | "LEAP15" | "SLES15")
|
"LEAP12" | "LEAP15" | "SLES15")
|
||||||
;;
|
;;
|
||||||
|
|
@ -317,9 +317,10 @@ install_epel () {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# Installs the Science repository for SLES 12
|
# Installs the Python backports repository for SLES 12
|
||||||
install_sci () {
|
install_python_backports () {
|
||||||
${SUDO} zypper --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/science/SLE_12/science.repo
|
SLE_VERSION="SLE_$(grep "^VERSION=" /etc/os-release | sed -e 's/VERSION=//' -e 's/"//g' -e 's/-/_/')"
|
||||||
|
${SUDO} zypper --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/devel:/languages:/python:/backports/$SLE_VERSION/devel:languages:python:backports.repo
|
||||||
}
|
}
|
||||||
|
|
||||||
do_download () {
|
do_download () {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue