centos7 安装 LibreOffice 7.3.3

准备


官网下载

核心文件
https://www.libreoffice.org/donate/dl/rpm-x86_64/7.3.3/en-US/LibreOffice_7.3.3_Linux_x86-64_rpm.tar.gz

语言文件 https://mirrors.nju.edu.cn/tdf/libreoffice/stable/7.3.3/rpm/x86_64/LibreOffice_7.3.3_Linux_x86-64_rpm_langpack_zh-CN.tar.gz

sdk https://mirrors.nju.edu.cn/tdf/libreoffice/stable/7.3.3/rpm/x86_64/LibreOffice_7.3.3_Linux_x86-64_rpm_sdk.tar.gz

以上均下载到/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

完结