Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 485
沈益菌 Avatar asked Oct 20 '25 13:10

沈益菌


2 Answers

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.

like image 77
ColdCoffeeMug Avatar answered Oct 24 '25 16:10

ColdCoffeeMug


to delete texlive with relate files:
sudo pacman -Rcns texlive-bin
more information in this page: https://linux-packages.com/manjaro-linux/package/texlive-bin

like image 34
lykkos Avatar answered Oct 24 '25 18:10

lykkos