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.
About this post
- Posted
- Archived
- Score
- 1 ยท 57% up
- Kind
- Text
- ID
- 133fpwe
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.Thanks for the reply. I'll check that out.
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.
+1 for Librewolf
Thanks. I also tried it. Do you know how to remove half compiled packages?
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.
iirc yay -Scc might offer help
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? ๐ข
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.
Thanks. I'll check that out.
Deleted before we saved it.