Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Remove unused linux kernel headers, images and modules with one command

This is a discussion on Remove unused linux kernel headers, images and modules with one command within the Unix/Linux forums, part of the Operating Systems category; Hi Friends, Remove unused linux kernel headers, images and modules with one command To remove all the unused linux kernel headers, images and modules, simply run this command: dpkg -l ...

Go Back   Geeks Talk > Operating Systems > Unix/Linux
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-13-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 1,451
Thanks: 157
Thanked 484 Times in 240 Posts
rijus is a glorious beacon of lightrijus is a glorious beacon of lightrijus is a glorious beacon of lightrijus is a glorious beacon of lightrijus is a glorious beacon of light
Remove unused linux kernel headers, images and modules with one command

Hi Friends,

Remove unused linux kernel headers, images and modules with one command

To remove all the unused linux kernel headers, images and modules, simply run this command:

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

Regards,
Rijus.
__________________
Real Inspirational Journey......Unanimously & Sincerely.
Reply With Quote
Sponsored Links
Reply

  Geeks Talk > Operating Systems > Unix/Linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to add scheduler patch in linux kernel 2.6 honey_ Unix/Linux 1 11-12-2009 02:54 AM
Linux Tips: Search Google.com from the Linux command line rijus Unix/Linux 0 08-12-2009 02:48 AM
Linux Tips :Find details about your ISO images from the Linux command line rijus Unix/Linux 1 08-05-2009 02:09 AM
Unix/Linux Command Reference sathyasai1 Unix/Linux 0 07-29-2009 06:01 AM
adding patches in Linux kernel mrbhush Unix/Linux 1 06-30-2009 12:13 PM


All times are GMT -4. The time now is 12:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved