“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-6
、libx11-data
和libxcb1
)。其他包被拉入是因为 的pari-gp
“推荐”依赖项;这尤其包括pari-doc
TeX Live 的引入。
为了避免这种情况,请运行
apt-get install --no-install-recommends pari-gp