如何在没有GUI的情况下安装Libre Office


11

我正在使用python和Open Document Files从CRM生成文档,然后将它们转换为PDF格式。在此配置中,Libre Office作为服务运行。这在我的桌面开发计算机上完美运行,没有任何问题。

生产环境将是没有GUI的12.04服务器,我不想安装Gnome或KDE。有没有办法在没有GUI的服务器上进行某种形式的Libre Office核心安装?


1
X11将安装某些软件包,但可以避免使用GNOME / KDE:apt-get install libreoffice --no-install-recommends --no-install-suggests
muru

Answers:


13

Libreoffice软件包依赖libreoffice-core,并且libreoffice-core仅拖动90多个软件包:

# apt-get install libreoffice-core --no-install-recommends
Reading package lists... Done
Building dependency tree       
Reading state information... Done    
The following extra packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core fonts-opensymbol
... snip ...
The following NEW packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core fonts-opensymbol
  gconf-service gconf-service-backend gconf2-common libatk1.0-0 libatk1.0-data
  libavahi-client3 libavahi-common-data libavahi-common3
  libboost-date-time1.54.0 libcairo2 libclucene-contribs1 libclucene-core1
  libcmis-0.4-4 libcolamd2.8.0 libcups2 libdatrie1 libexttextcat-2.0-0
  libexttextcat-data libfontconfig1 libgconf-2-4 libgdk-pixbuf2.0-0
  libgdk-pixbuf2.0-common libgl1-mesa-glx libglapi-mesa libglu1-mesa
  libgraphite2-3 libgtk2.0-0 libgtk2.0-common libharfbuzz-icu0 libharfbuzz0b
  libhunspell-1.3-0 libhyphen0 libice6 libicu52 libjasper1 libjbig0
  libjpeg-turbo8 libjpeg8 liblangtag-common liblangtag1 liblcms2-2 libltdl7
  libmhash2 libmythes-1.2-0 libneon27-gnutls libnspr4 libnss3 libnss3-nssdb
  libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0
  libraptor2-0 librasqal3 librdf0 libreoffice-common libreoffice-core
  libreoffice-style-galaxy libsm6 libthai-data libthai0 libtiff5 libx11-xcb1
  libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0
  libxcb-shm0 libxcb-sync1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3
  libxi6 libxinerama1 libxrandr2 libxrender1 libxshmfence1 libxslt1.1 libxt6
  libxxf86vm1 libyajl2 lp-solve uno-libs3 ure x11-common
0 upgraded, 91 newly installed, 0 to remove and 0 not upgraded.
Need to get 68.6 MB of archives.
After this operation, 271 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

因此,您无法摆脱安装更少的麻烦。该libreoffice软件包带来了大约30个软件包。但是,如果你没有安装集成包(libreoffice-gnomelibreoffice-kde),你就不会在GNOME / KDE组件带来的。它们libreoffice不依赖于这些集成软件包,因此您只需安装即可libreoffice

apt-get install libreoffice --no-install-recommends

2
仅安装核心软件包可能不足以将某些文件转换为pdf(例如xlsx)。看到这个问题在哪里libreoffice-calc需要
Sylvain Pineau 2014年

1
@SylvainPineau那是为了表明它不可能进一步缩小,尽管我看到它看起来只建议安装core
老师

1
您的最后编辑避免造成混乱,谢谢。您拥有我的投票权:)
Sylvain Pineau'Sep

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.