准备
官网下载
以上均下载到/usr/local/src
安装
#建立文件夹
mkdir -p /usr/local/soft/libreoffice
mkdir /usr/local/libreoffice
#安装系统依赖
yum install cairo libSM cups-libs -y
#解压
cd /usr/local/src
tar -zxvf LibreOffice_7.3.3_Linux_x86-64_rpm.tar.gz -C /usr/local/libreoffice/
tar -zxvf LibreOffice_7.3.3_Linux_x86-64_rpm_sdk.tar.gz -C /usr/local/libreoffice/
tar -zxvf LibreOffice_7.3.3_Linux_x86-64_rpm_langpack_zh-CN.tar.gz -C /usr/local/libreoffice/
#安装
cd /usr/local/libreoffice/LibreOffice_7.3.3.2_Linux_x86-64_rpm/RPMS
yum localinstall *.rpm -y
cd /usr/local/libreoffice/LibreOffice_7.3.3.2_Linux_x86-64_rpm_sdk/RPMS
yum localinstall *.rpm -y
cd /usr/local/libreoffice/LibreOffice_7.3.3.2_Linux_x86-64_rpm_langpack_zh-CN/RPMS
yum localinstall *.rpm -y
#添加环境变量
echo 'export LibreOffice_PATH=/opt/libreoffice7.3/program' >> /etc/profile
echo 'export PATH=$LibreOffice_PATH:$PATH' >> /etc/profile