Totally my fault what happened but I want to understand what exactly happened
Today I had to install few programs from repository and I did that without issues, then I needed another browser beside firefox and I wanted to install brave, so I wrote in console: “yay -S brave” (I updated OS few hours prior to this). At the same time I was doing something else and I just hit enter every time I was asked something in console and inserted sudo password when asked for it. Yes I know, I shouldn’t do that… Anyway, I was doing something else at that time and I noticed after 20min that browsers still isn’t installed. I didn’t wanted to interrupt because I didn’t want to mess something up… Because I was working on some project I didn’t care if it takes a few minutes more to install, but after 3 hours, it still wasn’t finished, and a few times the computer became unresponsive for a minute or two.
I have a cpu usage widget where I noticed that often my cpu went to 100%. I noticed in console that script downloaded more than 50gb of data and still didn’t finished. Anyway, after around 3,5-4 hours all my cpu cores went to 100% and everything froze for around 5 minutes … then console crashed and system start to work again as nothing happened. I checked space usage of my home folder and under ~/.cache/yay I had over 100gb of data.
I used yay -Scc to clear that cache and rebooted my computer. All works fine and brave browser is nowhere to be found, so my question is what the hell happened?
I remember once that I clicked to rebuild a package or something similar and it took around 20min but this thing worked for almost 4 hours and then crashed.
I have a feeling you were trying to compile the browser from source and your computer gave up. Pretty common. Try brave-bin instead, it should get you better results. There is also a Brave Flatpak if you want to go that route.
Learnt about this some days ago. Usually, if there’s a “bin”, use that, at least for browsers.
Compiling from source anything could take ages. And if you’re in doubt of the security of the package, use flatpak instead.
The exact same thing happened to me a few days ago. In my case I wanted to install Librewolf and I used yay -S librewolf. So I waited 10 minutes and the program kept “downloading” but it was actually compiling.
So I asked here on the forum and our friends explained to me what was happening. Luckily I didn’t wait for it to finish, since I read on reddit that it can take 8-10 hours, but on old PCs like mine, it could take days.
So, as our friends have already told you, it’s because there are some programs that start compiling when you download them, like browsers (I don’t know if it’s just browsers, because steam, blender, gimp, etc, took a few seconds to install) , and you should download the compiled -bin version, which is already compiled and ready to use.