本文主要是介绍linux - libreoffice使用,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
linux - libreoffice使用
在线安装
1.yum源安装
[root@test ~]# yum update
[root@test ~]# yum install -y libreoffice-headless libreoffice-writer libreoffice-calc libreoffice-impress
[root@test ~]# yum install -y libreoffice
2.接下来就可以使用了
[root@test ~]# libreoffice --version
LibreOffice 5.3.6.1 30(Build:1)
离线安装
1.官网下载安装包
URL:https://zh-cn.libreoffice.org/
2.安装
下载好后将安装包上传服务器
[root@test ~]# tar -zxf LibreOffice_7.5.8_Linux_x86-64_rpm.tar.gz
[root@test ~]# cd LibreOffice_7.5.8.2_Linux_x86-64_rpm/RPMS/
[root@test RPMS]# rpm -ivh *.rpm
3.接下来就可以使用了
[root@test RPMS]# libreoffice7.5 --version
LibreOffice 7.5.8.2 f718d63693263970429a68f568db6046aaa9df01
4.执行上方命令报错libXxxxx.so类型,执行如下
PS:从别的机器/usr/lib64目录下将对应问文件copy一份过来执行命令即可正常使用
[root@test RPMS]# ldconfig
[root@test RPMS]# libreoffice7.5 --version
字体转换添加宋体
1.安装字体库
[root@test RPMS]# yum install fontconfig
2.安装更新字体命令
[root@test RPMS]# yum install mkfontscale
PS:第1,2步有机器默认带有此命令
3.添加宋体
#创建目录,从win机器字体目录种将宋体文件上传到此目录
[root@test RPMS]# mkdir /usr/share/fonts/winfonts/
[root@test winfonts]# ls
SIMSUN.TTC#重新建立字体索引,更新缓存
[root@test RPMS]# mkfontscale
[root@test RPMS]# mkfontdir
[root@test RPMS]# fc-cache -fv
[root@test RPMS]# source /etc/profile
[root@test RPMS]# fc-list :lang=zh
/usr/share/fonts/winfonts/SIMSUN.TTC: SimSun,宋体:style=Regular,常规
/usr/share/fonts/winfonts/SIMSUN.TTC: NSimSun,新宋体:style=Regular,常规
这篇关于linux - libreoffice使用的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!