VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Removing the kernel source files  (Read 760 times)

Colonel Panic

  • Vectorian
  • ****
  • Posts: 526
Removing the kernel source files
« on: February 22, 2010, 12:02:34 pm »

Hi. I've recently installed Vector Standard 6.0. and, trying to save space, I'm thinking of deleting the kernel source files kernel-src which take up about 500MB on my hard drive and which I'm unlikely to compile a new kernel from.

What's the best way to go about it? I obviously don't want to delete any "live" kernel files in the process (been there, done that in the past :) ).

Thanks in advance,

CP .
« Last Edit: February 22, 2010, 12:24:14 pm by Colonel Panic »
Logged

toothandnail

  • Tester
  • Vectorian
  • ****
  • Posts: 2527
Re: Removing the kernel source files
« Reply #1 on: February 24, 2010, 02:42:24 pm »

Don't do it. Instead, let the system do it for you....

Try this from a root terminal:

Code: [Select]
cd /var/log/packages
removepkg kernel-sr

Then press the tab key so the system autocompletes the package name, and press the enter key.

That should safely remove the kernel source without upsetting anything else. You may have a problem if you need to do anything like compile video drivers later though...

Paul.
Logged

Colonel Panic

  • Vectorian
  • ****
  • Posts: 526
Re: Removing the kernel source files
« Reply #2 on: February 24, 2010, 03:09:59 pm »

Thanks, that was brilliant! 494 MB saved on my hard drive as a result and I've learnt something too (tabbing to complete file names).

Don't worry, I've no plans to compile any video drivers...

A quick update; using the same command, I've just saved 502 MB on my Vector 6.0 KDE Classic partition, so very nearly a gigabyte in total! Awesome.
« Last Edit: February 24, 2010, 04:38:05 pm by Colonel Panic »
Logged