[LON-CAPA-admin] Availability of LONCAPA-prerequisites 1-26 in advance of LON-CAPA 2.11.3 release

Raeburn, Stuart raeburn at msu.edu
Sat Jan 9 22:45:44 EST 2021


Hello,

The LON-CAPA repos available at install.loncapa.org have been updated in advance of the forthcoming 2.11.3 release.  Accordingly, when cron next runs CHECKRPMS you will be notified that updates are available.

Besides including LONCAPA-prerequisites 1-26 (required for 2.11.3), from 1-25, a number of other packages have been updated (including some packages used by the statistical package: R). 

To accompany this update, the GPG key used for LON-CAPA's repositories has also been updated to reflect modern standards.  If you installed LON-CAPA 2.11.2 or earlier, it is recommended to clear cached packages previously downloaded from the LON-CAPA repository for your Linux distro, before removing the old GPG key and importing the new one.

1. You can display the currently installed LON-CAPA package signing GPG key as follows:

(a) CentOS/RHEL/Scientific Linux/Fedora/SLES
rpm -q gpg-pubkey --qf '%{VERSION}\t%{SUMMARY}\n' |grep LON

(b) Ubuntu
sudo apt-key list

The GPG key used in 2020 and earlier is:
155cf773    MSU LON-CAPA group (LON-CAPA installer) <lon-capa at lon-capa.org>


2. Clear the cache and import the new GPG key as follows:

(a) CentOS
yum clean all --disablerepo="*" --enablerepo=loncapa-updates-basearch --enablerepo=loncapa-updates-noarch
rpm -e gpg-pubkey-155cf773-431738a8
rpm --import http://install.loncapa.org/versions/centos/RPM-GPG-KEY-loncapa

(b) RHEL
yum clean all --disablerepo="*" --enablerepo=loncapa-updates-basearch --enablerepo=loncapa-updates-noarch
rpm -e gpg-pubkey-155cf773-431738a8
rpm --import http://install.loncapa.org/versions/redhat/RPM-GPG-KEY-loncapa

(c) Scientific Linux
yum clean all --disablerepo="*" --enablerepo=loncapa-updates-basearch --enablerepo=loncapa-updates-noarch
rpm -e gpg-pubkey-155cf773-431738a8
rpm --import http://install.loncapa.org/versions/scientific/RPM-GPG-KEY-loncapa

(d) SuSE/SLES
zypper refresh 'LON-CAPA'

(e) Ubuntu
sudo apt-key del 155CF773
sudo apt-get clean
wget -O ~/APT-GPG-KEY-loncapa.asc https://install.loncapa.org/versions/ubuntu/APT-GPG-KEY-loncapa.asc
sudo apt-key add ~/APT-GPG-KEY-loncapa.asc

(f) Fedora
yum clean all --disablerepo="*" --enablerepo=loncapa-updates-basearch --enablerepo=loncapa-updates-noarch
rpm -e gpg-pubkey-155cf773-431738a8
rpm --import http://install.loncapa.org/versions/fedora/RPM-GPG-KEY-loncapa


3. After you have imported the new key for 2021 (and beyond)

(a)CentOS/RHEL/Scientific Linux/Fedora/SLES
rpm -q gpg-pubkey --qf '%{VERSION}\t%{SUMMARY}\n' |grep LON

(b) Ubuntu
sudo apt-key list

will now report:
c11f2266   LONCAPA Academic Consortium (Package signing) <certificate at loncapa.org>


4. The EPEL repository is now used by LON-CAPA for CentOS/RHEL/Scientific Linux
6 and 7 (64 bit only), and epel-release is a dependency in LONCAPA-prerequisites 1-26
for CentOS/Scientific Linux 6 and 7 (64 bit only).

On CentOS/Scientific Linux 7 you can use:
yum install epel-release

to add the repo, before using
yum update

to update LONCAPA-prerequisites to 1-26.

For RHEL use:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install epel-release-latest-7.noarch.rpm

Note: if you are still running CentOS/Scientific Linux 6 (EOL was November 30 2020), 
you would need to change the baseurl in /etc/yum.repos.d/epel.repo to point at:

https://archives.fedoraproject.org/pub/archive/epel/6/$basearch

and also change the baseurl in /etc/yum.repos.d/CentOS-Base.repo to point at:
http://vault.centos.org/6.10/os/$basearch/

That said you should update to a newer version of the distro as soon as you can.

If you are still running RHEL 6 (and have a subscription to the Extended Life Cycle Support 
(ELS) Add-On, you would add the EPEL repo using:

wget https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install epel-release-6-8.noarch.rpm
and would then need to change the baseurl in /etc/yum.repos.d/epel.repo, as described above.

5. Note: unlike its predecessors, LONCAPA-prerequisites 1-26 for Red Hat/CentOS/Scientific Linux 6 and 7 replaces the dependency on  R with a dependency on R-core. Accordingly, for those distros, after updating to 1-26, you can use:

yum remove R R-core-devel R-devel R-java R-java-devel libMath-devel

and you can also use yum to remove java-1.8.0-openjdk and/or java-1.7.0-openjdk (which are R-java dependencies), unless you have modified a standard LON-CAPA installation with packages which themselves require java.


Stuart Raeburn
LON-CAPA Academic Consortium


More information about the LON-CAPA-admin mailing list