【问题标题】:How to remove texlive with Pacman如何使用 Pacman 删除 texlive
【发布时间】:2017-10-11 07:05:57
【问题描述】:

我在 Archlinux 中用 Pacman 安装了 texlive。我现在想删除所有已安装的软件包,因为我发现它们太大了,一个名为 overleaf 的网站可以满足我的大部分需求。

但是texlive包含的包太多了,列举如下。

texinfo  texlive-formatsextra  texlive-latexextra  texlive-publishers
texlive-bibtexextra  texlive-games  texlive-music  texlive-science     
texlive-bin  texlive-genericextra  texlive-pictures  
texlive-core  texlive-htmlxml  texlive-plainextra 
texlive-fontsextra  texlive-humanities  texlive-pstricks

我尝试了sudo pacman -R texinfo,并更改了不同的参数,例如-Rd-Rsn。他们都没有通过依赖检查。

我试过sudo pacman -Rc texinfo,但它告诉我接下来的 7 个包将被删除,甚至包括 gdb!!!

drkonqi-5.9.5.1-1  gdb-7.12.1-3  gdb-common-7.12.1-3  guile-2.2.1-1
guile2.0-2.0.14-1  make-4.2.1-2  texinfo-6.3-1

那么如何很好的移除texlive家族呢?

【问题讨论】:

  • 我想我已经解决了这个问题。我仍然使用命令sudo pacman -Rc 删除某些包,所有包都依赖它。对于 Texlive 问题,sudo pacman -Rc texlive-binsudo pacman -Rc texlive-core 可以很好地移除 Texlive 工具。

标签: archlinux pacman-package-manager


【解决方案1】:

我建议使用pacman -Rs package,来自pacman -R --help 输出:

-c, --cascade        remove packages and all packages that depend on them
-s, --recursive      remove unnecessary dependencies

-c 选项可能会删除其他软件包需要的软件包,-s 只会在系统上其他软件包不依赖它们时删除它们。

【讨论】:

  • 我认为您只需要s,它已经删除了不必要的依赖项。来自-c 上的文档:“此操作是递归的,必须小心使用,因为它可以删除许多可能需要的包。”
猜你喜欢
  • 2013-09-10
  • 2019-08-16
  • 2013-07-03
  • 1970-01-01
  • 2021-11-10
  • 2019-02-15
  • 1970-01-01
  • 1970-01-01
  • 2023-03-26
相关资源
最近更新 更多