1.添加 devtoolset-6 源
cat << EOF > /etc/yum.repos.d/devtoolset-6.repo
[devtoolset-6]
name=devtoolset-6 rebuild for armhfp
baseurl=https://armv7.dev.centos.org/repodir/devtoolset-6/
enabled=1
gpgcheck=0
EOF
2.启用 EPEL 软件源
cat << EOF > /etc/yum.repos.d/epel.repo
[epel]
name=Epel rebuild for armhfp
baseurl=https://armv7.dev.centos.org/repodir/epel-pass-1/
enabled=1
gpgcheck=0
EOF
3.添加php7.2软件源
cat > /etc/yum.repos.d/php72-testing.repo << EOF [php72-testing] name=Remi php72 rebuild for armhfp baseurl=https://armv7.dev.centos.org/repodir/community-php72-testing/ enabled=1 gpgcheck=0 EOF
4.添加remi源
cat > /etc/yum.repos.d/remi.repo << EOF [remi] name=Remi's RPM repository for Enterprise Linux 7 - $basearch mirrorlist=http://cdn.remirepo.net/enterprise/7/remi/mirror enabled=1 gpgcheck=1 gpgkey=https://rpms.remirepo.net/RPM-GPG-KEY-remi EOF
4.添加php7.3软件源
cat > /etc/yum.repos.d/php73-testing.repo << EOF [php73-testing] name=Remi php73 rebuild for armhfp baseurl=https://armv7.dev.centos.org/repodir/community-php73-testing/ enabled=1 gpgcheck=0 EOF
5.添加php7.4软件源
cat > /etc/yum.repos.d/php74-testing.repo << EOF [php74-testing] name=Remi php74 rebuild for armhfp baseurl=https://armv7.dev.centos.org/repodir/community-php74-testing/ enabled=1 gpgcheck=0 EOF
6.python3源(armv7hl),python3.7和python3.9
pip config set global.index-url https://www.piwheels.org/simple