Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Cleaning /lib/modules

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
ratcheer
Posts: 143
Joined: 2012-09-10 20:40

Cleaning /lib/modules

#1 Post by ratcheer »

This is probably a newbie tip, but maybe it will help someone else. :idea:

I run Sid, so I do a lot of kernel upgrades. I just happened to look at /lib/modules last night and I discovered that I had a set of kernel specific subdirectories going back to my last fresh install. This was wasting several hundred megabytes of disk space under root. Even though it has no other ill effect than wasted disk space, I did "rm -r" on each one that I no longer have the kernel for.

Tim

ratcheer
Posts: 143
Joined: 2012-09-10 20:40

Re: Cleaning /lib/modules

#2 Post by ratcheer »

I have since been informed that using "apt-get purge" instead of remove for kernels will accomplish the same result. I have not had the opportunity to test that yet, though.

Tim

ratcheer
Posts: 143
Joined: 2012-09-10 20:40

Re: Cleaning /lib/modules

#3 Post by ratcheer »

Verified: apt-get purge also does the cleanup. I told you it was a newbie idea. :oops:

Tim

Post Reply