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
|
||||
|
||||
Enable the [Science](https://en.opensuse.org/openSUSE:Science_Repositories) repository (SLES 12 only):
|
||||
Enable the Python backports repository (SLES 12 only):
|
||||
```bash
|
||||
# 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:
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ install_pre () {
|
|||
install_epel "${ver}"
|
||||
;;
|
||||
"SLES12")
|
||||
install_sci
|
||||
install_python_backports
|
||||
;;
|
||||
"LEAP12" | "LEAP15" | "SLES15")
|
||||
;;
|
||||
|
|
@ -317,9 +317,10 @@ install_epel () {
|
|||
esac
|
||||
}
|
||||
|
||||
# Installs the Science repository for SLES 12
|
||||
install_sci () {
|
||||
${SUDO} zypper --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/science/SLE_12/science.repo
|
||||
# Installs the Python backports repository for SLES 12
|
||||
install_python_backports () {
|
||||
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 () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue