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. |
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 ...
|
|||||||
|
|||
|
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. |
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |