Linux下LibreOffice安装
在安装之前,先删除已经安装的 LibreOffice:
yum remove libreoffice*
解压
tar -xvf LibreOffice_6.3.6.2_Linux_x86-64_rpm.tar.gz
tar -xvf LibreOffice_6.3.6.2_Linux_x86-64_rpm_langpack_zh-CN.tar.gz
安装
cd LibreOffice_6.3.6.2_Linux_x86-64_rpm/RPMS
yum localinstall *.rpm
cd LibreOffice_6.3.6.2_Linux_x86-64_rpm_langpack_zh-CN/RPMS
yum localinstall *.rpm
依赖
yum install cairo -y
yum install cups-libs -y
yum install libSM -y
yum install ibus -y
查看
which libreoffice6.3 看到路径为 /bin/libreoffice6.3
ll /bin/libreoffice6.3 得到 /opt/libreoffice6.3/program/soffice,说明安装到了 /opt/libreoffice6.3
命令别名
cd ~/.bashrc
添加alias soffice='/bin/libreoffice6.3'
source ~/.bashrc