Running out of space on root partition

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

Running out of space on root partition

Postby z » Apr 23rd, '13, 17:39

I currently have a 12 gig root partition that is almost full. I do not have enough space to install a few things. I read that it is unwise to remove orphaned packages using urpme auto-orphans so I'm leery about doing that to clean up older packages. Is there any good way to remove old packages or do I just have to increase the dive space and just let them keep piling up?
z
 
Posts: 54
Joined: Jan 11th, '12, 18:39

Re: Running out of space on root partition

Postby jkerr82508 » Apr 23rd, '13, 18:19

Removing orphans may not resolve the space problem. (You would need to have a great many packages installed to occupy 12gig.) It might be informative to find out which directories are taking up the space. Enter as root:
Code: Select all
du -akx / | sort -nr | head -n 25

This will show the size of the 25 largest directories in /, and may confirm whether or not removing packages will help to resolve the problem.

It is safe to remove orphans - provided you carefully examine the list, make sure that none of them is actually needed and that no essential packages will be removed as dependencies. The safest approach is probably to go through the list, one package at a time, and if you are sure that you don't need it remove it using:
Code: Select all
rpm -e --nodeps packagename

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Running out of space on root partition

Postby doktor5000 » Apr 23rd, '13, 22:44

For orphans, better have a look at https://wiki.mageia.org/en/Removing_packages
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: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest