Skip to content

How can I remove the half compiled (I guess) packages of Waterfox which I installed using Yay

Hey guys, I'm new to Arch Linux. I started downloading Waterfox from yay, and it took forever for compilation, and mainly it was taking heck lot of installation space. I decided to Ctrl+c it and move on. I checked my hard disk space and it was 106GB initially and it had become 100GB, so the 6GB went away! So I'm tried to find solutions online, got some answers like 'yay -Qm, then yay -Sc' did all that, but not luck. It was only able to remove a small fraction.

โ€‹

Need some assistance here.

1 points10 comments
Open on Reddit
About this post
Posted
Archived
Score
1 ยท 57% up
Kind
Text
ID
133fpwe

Author

3
posts
6
comments
0
media
View profile

11 comments

I don't use yay myself, but based on my own experiences with aurutils, you might want to take a look through ~/.cache. If yay stores temporary files anywhere, it's probably there.

9 points

Browsers take a long while to compile and do need space, this is why you should be building the pkg in a separate clean chroot.

There are also bin versions of waterfox ()G and classic 5mos old), pre-compiled, which build as fast as they can download and compress.

Not directly related, but while you are at it, try librewolf.

2 points

Thanks. I also tried it. Do you know how to remove half compiled packages?

1 points

When you do it manually in the directory you are working on what is compiles is in src, once finished the files according to PKGBUILD are gathered in pkg then put in a tar and then compressed.

If you are using an aur-helper see the wiki for the helper or its conf file in etc about where it does the building, usually in a subdirectory of /tmp

But if we are talking about something built with rust/cargo then the pkg stores modules of source in your home directory ~/.cargo (go does something similar). So delete the contents of .cargo if you are trying to free up space used.

None of this is installed in the system till it is complete and pacman installs the pkg. Some of the kernels and their headers in the 6.** series take up to 30+GB of space to build, but browsers are larger than this.

1 points

iirc yay -Scc might offer help

2 points

yay -Scc

Wow this worked! Got rid of around 5-6 gig of hard disk space. Now I'm reading the man page, who are you master? ๐Ÿ˜ข

1 points

How can I remove the half compiled (I guess) packages of Waterfox which I installed using Yay

I don't use yay so this is a generic solution if it was not building the package in a chroot.

Track down the build directory and/or take a look at the PKGBUILD to get the build deps.

Remove any unneeded build deps from your system.

Delete the build directory.

Learn how AUR packages are built manually. https://wiki.archlinux.org/title/Arch_User_Repository#Getting_started
This one should actually be at the beginning of this list.

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.