我正在尝试在 Ubuntu 20.04 上安装 Maxima(在无头服务器上以便以编程方式使用),但是,与以前将图形界面作为单独附加包的版本不同,maxima
此版本中的包现在似乎引入了大量 X 和 Gnome 依赖项。
有没有办法可以只安装 Maxima 命令行版本所需的软件包,因为我不想将整个 X 环境不必要地带入无头服务器?
答案1
您可以使用特殊选项指定您不想获取推荐和建议的依赖项,从而对 Maxima 安装进行更好的控制:
sudo apt-get install maxima --no-install-suggests --no-install-recommends
例如,在最小 20.04 LTS 安装中将导致:
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: texmacs maxima-doc xmaxima maxima-emacs wish Recommended packages: maxima-share gnuplot-x11 The following NEW packages will be installed: maxima 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 6928 kB of archives. After this operation, 53.5 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 maxima amd64 5.43.2-3 [6928 kB] Fetched 2494 kB in 1s (3163 kB/s) Selecting previously unselected package maxima. (Reading database ... 62984 files and directories currently installed.) Preparing to unpack .../maxima_5.43.2-3_amd64.deb ... Unpacking maxima (5.43.2-3) ... Setting up maxima (5.43.2-3) ... Processing triggers for man-db (2.9.1-1) ...
分析上述输出我们可以看出这gnuplot-x11
可能是安装 X11 的原因。