Search code examples
archlinuxpacman-package-manager

How to remove texlive with Pacman


I installed texlive with Pacman in Archlinux. I want to remove all the installed packages now because I found them too big and a website called overleaf can meet most of my needs.

But there are too many packages contained in texlive, listed as below.

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

I tried sudo pacman -R texinfo, and change different parameters like -Rd, -Rsn. They all failed on dependency checking.

I tried sudo pacman -Rc texinfo but it tells me the next 7 packages will be removed, even including 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

So how to remove the texlive family nicely?


Solution

  • I'd advise to go with pacman -Rs package, from the pacman -R --help output:

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

    the -c option might delete packages needed by other packages, the -s will only delete them if they are not depended on by other packages on the system.