1.卸载libreoffice
yum erase libreoffice\*
2.下载安装包
wget http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/6.4.4/rpm/x86_64/LibreOffice_6.4.4_Linux_x86-64_rpm.tar.gz
wget http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/6.4.4/rpm/x86_64/LibreOffice_6.4.4_Linux_x86-64_rpm_sdk.tar.gz
wget http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/6.4.4/rpm/x86_64/LibreOffice_6.4.4_Linux_x86-64_rpm_langpack_zh-CN.tar.gz
3.解压安装包
tar -zxvf LibreOffice_6.4.4_Linux_x86-64_rpm_langpack_zh-CN.tar.gz
tar -zxvf LibreOffice_6.4.4_Linux_x86-64_rpm_sdk.tar.gz
tar -zxvf LibreOffice_6.4.4_Linux_x86-64_rpm.tar.gz
4.安装rpm
分别到对应解压目录里面的RPMS目录下,执行如下语句(有3个目录)
yum -y install *.rpm
5.启动
/opt/libreoffice6.4/program/soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard &
6.设置开机自启
查看 https://blog.csdn.net/weixin_38300488/article/details/107455581