Trying to install desktop-dev eat all space

I just installed clear linux on 45G partition. I wanted to install mangohud for which I didn’t find any bundle, so I tried to build it from it’s github. I get an error about Mako so I tried to find this to install first. I found that is included on the desktop-dev and when tried to install I get an error at space check and that needed about 2,5G. Since I had space(~20G), I used the no space check parameter. After about an hour installation seems that was stacked on core-os-desktop(not sure If I remember correct the name) package. I used system monitor and I found that it still downloading and then on disks tab I found that I had only 5G free space, so I stopped it. And now I don’t know how to delete all those GBs because seems that are spreaded lib/lib64 and usr directories. Is there any way to reverse this action?

if you’ve already removed the bundle, you can try this

sudo swupd repair -Y

Should fix and remove all unnecessary files from under /usr
If you’ve installed something there, that will also get removed.
You can try a normal sudo swupd repair first before doing this though.

Thanks, but it didn’t help much space-wise. I first tried to remove the bundle which failed. Then I ran those 2 commands you suggested which repaired the system, but those operations removed 2,5G but because first downloaded some remaining files for the bundle, actually about 1.5G removed. So still most partition’s space is occupied. The partition size is 45,8G and only 6G is the free space. I will probably start fresh.

MangoHud coming out in the next release (42210).
you can access the rpms now through here, Index of /releases/42210/clear/x86_64/os/Packages/

Thanks, I’m building mangohud right now, but how to install it from the link you posted, in case it fails?

rpm method (easy)

sudo swupd bundle-add package-builder
//get all the related rpms
rpm2cpio [rpm-name].rpm || cpio -idmv
sudo cp -an ./usr/* /usr

autospec method (difficult)

sudo swupd bundle-add package-builder
// setup workspace
curl -O https://raw.githubusercontent.com/clearlinux/common/master/user-setup.sh
chmod +x user-setup.sh
./user-setup.sh
cd clearlinux
// workspace ready
make autospecnew URL="https://github.com/flightlessmango/MangoHud/releases/download/v0.7.2/MangoHud-v0.7.2-Source.tar.xz" NAME="mangohud"

go to ./packages/mangohud and check results/root.log and results/build.log for progress. Once it errors out, edit the files that get generated following this MangoHud · Issue #3118 · clearlinux/distribution · GitHub
After doing that, run make autospec inside the mangohud folder and it should, build successfully.
Once succesfully built, run make install-local to install it.
I’m not sure how much space the autospec method takes up, so the rpm method is better imo.

1 Like

sudo swupd clean to remove downloaded files.

1 Like

update is out

sudo swupd bundle-add MangoHud
1 Like