安裝 pari-gp 而不提取 X 伺服器包

安裝 pari-gp 而不提取 X 伺服器包

「pari-gp」是一個能夠繪製圖形的命令列電腦代數系統。由於多個數學公式,其文件被格式化為 TeX 文件。但是,我不想使用這些函數:我只需要執行一些計算。

執行apt install pari-gp不是在我的基於文字的 Debian 機器(沒有桌面環境)上安裝它的方法,因為它試圖提取大量 X 相關的軟體包:

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  fonts-droid-fallback fonts-lmodern fonts-noto-mono libcupsfilters1
  libcupsimage2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
  libdrm2 libfile-basedir-perl libfile-desktopentry-perl libfile-mimeinfo-perl
  libfontenc1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgs9
  libgs9-common libharfbuzz-icu0 libice6 libijs-0.35 libipc-system-simple-perl
  libjbig2dec0 libkpathsea6 liblcms2-2 libllvm3.9 libnet-dbus-perl libnspr4
  libnss3 libopenjp2-7 libpaper-utils libpaper1 libpciaccess0 libpoppler64
  libpotrace0 libptexenc1 libsensors4 libsm6 libsynctex1 libtcl8.6 libtexlua52
  libtexluajit2 libtie-ixhash-perl libtk8.6 libtxc-dxtn-s2tc libutempter0
  libx11-protocol-perl libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0
  libxcb-glx0 libxcb-present0 libxcb-shape0 libxcb-sync1 libxft2
  libxml-twig-perl libxml-xpathengine-perl libxmu6 libxpm4 libxshmfence1
  libxss1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 libzzip-0-13 lmodern
  pari-doc pari-elldata pari-galdata pari-seadata poppler-data t1utils tcl
  tcl8.6 texlive-base texlive-binaries tk tk8.6 x11-common x11-utils
  x11-xserver-utils xbitmaps xdg-utils xterm
Suggested packages:
  fonts-noto liblcms2-utils lm-sensors libunicode-map8-perl
  libunicode-string-perl xml-twig-tools pari-gp2c pari-galpol poppler-utils
  ghostscript fonts-japanese-mincho | fonts-ipafont-mincho
  fonts-japanese-gothic | fonts-ipafont-gothic fonts-arphic-ukai
  fonts-arphic-uming fonts-nanum tcl-tclreadline gv | postscript-viewer
  perl-tk xpdf-reader | pdf-viewer mesa-utils nickle cairo-5c xorg-docs-core
  gvfs-bin xfonts-cyrillic
The following NEW packages will be installed:
  fonts-droid-fallback fonts-lmodern fonts-noto-mono libcupsfilters1
  libcupsimage2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
  libdrm2 libfile-basedir-perl libfile-desktopentry-perl libfile-mimeinfo-perl
  libfontenc1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgs9
  libgs9-common libharfbuzz-icu0 libice6 libijs-0.35 libipc-system-simple-perl
  libjbig2dec0 libkpathsea6 liblcms2-2 libllvm3.9 libnet-dbus-perl libnspr4
  libnss3 libopenjp2-7 libpaper-utils libpaper1 libpciaccess0 libpoppler64
  libpotrace0 libptexenc1 libsensors4 libsm6 libsynctex1 libtcl8.6 libtexlua52
  libtexluajit2 libtie-ixhash-perl libtk8.6 libtxc-dxtn-s2tc libutempter0
  libx11-protocol-perl libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0
  libxcb-glx0 libxcb-present0 libxcb-shape0 libxcb-sync1 libxft2
  libxml-twig-perl libxml-xpathengine-perl libxmu6 libxpm4 libxshmfence1
  libxss1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 libzzip-0-13 lmodern
  pari-doc pari-elldata pari-galdata pari-gp pari-seadata poppler-data t1utils
  tcl tcl8.6 texlive-base texlive-binaries tk tk8.6 x11-common x11-utils
  x11-xserver-utils xbitmaps xdg-utils xterm
0 upgraded, 89 newly installed, 0 to remove and 0 not upgraded.
Need to get 149 MB of archives.
After this operation, 466 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.

我可以在沒有 X 軟體包的情況下以某種方式安裝我想要的東西嗎?

答案1

pari-gp其本身應該只引入有限數量的 X11 軟體包(libx11-6libx11-datalibxcb1)。其他包被拉入是因為 的pari-gp「推薦」依賴項;這尤其包括pari-docTeX Live 的引入。

為了避免這種情況,請運行

apt-get install --no-install-recommends pari-gp

相關內容