我正在使用python和Open Document Files从CRM生成文档,然后将它们转换为PDF格式。在此配置中,Libre Office作为服务运行。这在我的桌面开发计算机上完美运行,没有任何问题。
生产环境将是没有GUI的12.04服务器,我不想安装Gnome或KDE。有没有办法在没有GUI的服务器上进行某种形式的Libre Office核心安装?
我正在使用python和Open Document Files从CRM生成文档,然后将它们转换为PDF格式。在此配置中,Libre Office作为服务运行。这在我的桌面开发计算机上完美运行,没有任何问题。
生产环境将是没有GUI的12.04服务器,我不想安装Gnome或KDE。有没有办法在没有GUI的服务器上进行某种形式的Libre Office核心安装?
Answers:
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-gnome
,libreoffice-kde
),你就不会在GNOME / KDE组件带来的。它们libreoffice
不依赖于这些集成软件包,因此您只需安装即可libreoffice
:
apt-get install libreoffice --no-install-recommends
libreoffice-calc
需要
core
。
该软件包libreoffice
不依赖于Gnome,KDE或Xorg(请参阅Ubuntu软件包)。
为了尽量减少安装,您可以不建议安装以下产品:
apt-get --no-install-recommends install libreoffice
unoconv
是命令行太转化率(dag.wiee.rs/home-made/unoconv)
X11
将安装某些软件包,但可以避免使用GNOME / KDE:apt-get install libreoffice --no-install-recommends --no-install-suggests