LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2015, 08:11 PM   #1
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
post kernel compile clear up


I have a src directory that now is 20GB after compiling 3 kernels, is this normal and if so how can I reduce it.
It is a home computer and relies on no other.
Using Debian 8.
Are "headers" refering to something in /src?

Fred.
 
Old 07-10-2015, 03:37 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,668

Rep: Reputation: 113Reputation: 113
You can run
1. make clean
2. make depclean
 
Old 07-10-2015, 07:27 PM   #3
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
Thanks.
I have not heard of 'make depclean' before, what does that do? I take it I would have to do it for each kernel directory?
Also 'make clean' is usually done to prepare for the next configuration.
And does the working kernel reference what is in the /src directory?

Fred.
 
Old 07-11-2015, 07:07 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,672

Rep: Reputation: 1257Reputation: 1257Reputation: 1257Reputation: 1257Reputation: 1257Reputation: 1257Reputation: 1257Reputation: 1257Reputation: 1257
Make clean gets ready for another possible compilation. This is useful if you are not building the same kernel several times due to edits. It will delete all the object files (and object libraries). The result is as if you had done a make menuconfig, but not built the kernel yet.

Make depclean deletes configuration files generated as part of the make menuconfig step as well.

A running kernel does not depend on anything from the source directory. Usually, the kernel is configured and compiled in a user directory - only the install (which writes into /boot) steps require root.

Once the install is complete it is possible to delete the entire source kit.

Last edited by jpollard; 07-11-2015 at 07:09 AM.
 
1 members found this post helpful.
Old 07-12-2015, 01:56 PM   #5
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
Thanks.

This is what I wanted to hear
Quote:
Once the install is complete it is possible to delete the entire source kit.
I will run make clean and make depclean to see how much space it clears up. Probably keep the Documentation and the .config files as well.

Fred.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Syntax not clear in a kernel patch. tkmsr Programming 2 04-02-2010 11:20 PM
Post compile Kernel problems khaleel5000 Linux - Kernel 9 05-27-2006 07:12 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
post kernel compile stuf? e1000 Slackware 8 12-13-2003 09:18 AM
post 2.4.19 kernel compile blues hopinator Linux - Software 5 09-20-2002 04:42 AM


All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration