[SOLVED] How to free space

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] How to free space

Postby pmithrandir » Aug 12th, '25, 08:48

Hello,

I have installed my mageia years ago.

Over time, my 19 GB for / are getting too small.

But, I have no idea on how to remove stuff.
I checked and /usr takes about 13GB, and out of that /usr/lib and /usr/lib64 are taking 4GB each.

The pthers folder such as /var are reasonnable, under 1GB.

If I use the package manager, I will be able to remove top level application (I don't have much) but not really the low level libraries.

What would be your advice ?

Best regards
Pierre

PS : if it's not too hard, I might be able to "get" few GB from my next partition, /home.
Last edited by pmithrandir on Aug 13th, '25, 14:48, edited 1 time in total.
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 444
Joined: May 4th, '11, 19:30

Re: How to free space

Postby morgano » Aug 12th, '25, 09:47

Hi

Have you read https://wiki.mageia.org/en/Removing_packages ?

Also, DNF repo sync function hav been handy for me
https://wiki.mageia.org/en/Using_DNF#Sy ... with_repos
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1567
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: How to free space

Postby doktor5000 » Aug 12th, '25, 17:25

For a short-term fix, remove some bigger packages which you do not need. To list the 150 biggest packages:
Code: Select all
rpm -qa --queryformat '%{SIZE} %{NAME} \n' | sort -rn | head -150

Also check packages which are not available from installed repositories, if that is an upgraded installation
Code: Select all
urpmq --not-available

If you don't know about some packages, then either ask or post the output here.
Also output as root from
Code: Select all
du -mx / | sort -rn | head -50
might be helpful.

For a long-term fix, reinstall and next time use LVM instead of classical partitioning as you can dynamically increase the size and don't need to mangle partition tables.
Also nowadays you should not go below 50GB for / IMHO.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18179
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to free space

Postby morgano » Aug 12th, '25, 22:36

doktor5000 wrote:
Code: Select all
du -mx / | sort -rn | head -50

Nice one, I added it now to wiki at my first link in post above.

I second the suggestion to use LVM.
Our diskdrake support online expansion of partitions. Never failed for me.
I almost always make a small /boot then a large LUKS encrypted pv for LVM, so everything except /boot is encrypted with one key.
All done in installer/diskdrake.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1567
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: How to free space

Postby pmithrandir » Aug 13th, '25, 14:48

Thank you all.

By listing the biggest package I found a few one that were not so needed.

Also, my computer have been upgraded for a long time, or reinstalled, but always keeping the /home.

I'll flush the disk and move to LVM when I'll be back with a fiber connexion.

Thanks for your advices.

Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 444
Joined: May 4th, '11, 19:30

Re: How to free space

Postby morgano » Aug 13th, '25, 23:25

Good :)
pmithrandir wrote:Also, my computer have been upgraded for a long time

Have you checked you do not have any old packages, i.e .mga7, .mga8 that is not used anymore?
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1567
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] How to free space

Postby morgano » Aug 14th, '25, 11:08

Another trick i used on my old Thinkpad T43
(it have a 40GB disk where most is used for windows XP, so...)
I uninstalled the 1,1GB kernel-firmware-nonfree, and did not see any regressions.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1567
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest