You are not logged in.

#1 2021-06-13 11:46:07

big_slime_99
Member
Registered: 2021-06-13
Posts: 4

Remove / Uninstall packages found with expac

First post on the forum, so it may not be as clear as it's supposed to be

I'm on a laptop which doesn't have much space and also isn't my daily driver, and I'm trying to clean up some space by deleting large packages.

Running

 sudo expac -S -H M '%k\t%n %r' | sort -h 

shows me a list of my largest installed packages, as far as I understand.

The top offenders are:

563.45 MiB	supertuxkart community
696.81 MiB	cuda-tools community
737.84 MiB	kea-devel-docs community
872.44 MiB	xonotic-data community
875.12 MiB	0ad-data community
914.08 MiB	sauerbraten-data community
1039.99 MiB	cudnn community
1136.96 MiB	cuda community

I think I installed these long ago; I played the tux game once and at this point I would remote somewhere to use cuda.
I tried to remove these packages like so:

[k@sp6 ~]$ sudo pacman -Rns cuda-tools
error: target not found: cuda-tools
[k@sp6 ~]$ sudo pacman -Rns supertuxkart
error: target not found: supertuxkart

I get the same error with some but not all of the packages. I likely installed them with yay but replacing

 sudo pacman 

with

 yay -Rns 

doesn't help at all. Are these packages still even installed? They show up on pacman -Si but I have no idea how to remove or access them.

Offline

#2 2021-06-13 12:03:50

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,335

Re: Remove / Uninstall packages found with expac

man expac wrote:

       -S, --sync
           Search the sync databases for provided targets.

It looks like that command checks everything you could possibly install .

You probably found it on the pacman / tips & tricks page ?
A bit higher there's a command[1]  that looks at installed packages .

[1] https://wiki.archlinux.org/title/Pacman … l_packages


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2021-06-15 10:30:46

big_slime_99
Member
Registered: 2021-06-13
Posts: 4

Re: Remove / Uninstall packages found with expac

That makes a lot of sense! I thought I had loads of junk installed from ages ago, but it turns out I just can't follow instructions sad
Thanks for your answer, and as you linked the correct command is

LC_ALL=C pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h

Offline

#4 2021-06-16 12:33:58

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,335

Re: Remove / Uninstall packages found with expac

You just missed a little detail , happens to all of us.

Please prepend [Solved] to the title (edit first post)

Last edited by Lone_Wolf (2021-06-16 12:34:08)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB