LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-30-2013, 10:22 PM   #1
cguizar
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
can I safely remove my $HOME/rpmbuild/ after compiling and installing customed Kernel


Hi there
I just downloaded the kernel source, compiled and installed it.
And it worked, the only downside is that it left my partition with roughly 100 mb, and after seeing the size of $HOME/rpmbuild/ , turns out it is more than 8 Gb..
So the question is can I safely delete such folder in order to create more space.

Thank you

Carlos Guizar.
 
Old 01-30-2013, 10:39 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
You can but if you want to do any packaging in the future you could just:

Code:
rm -rf ~/rpmbuild/BUILD/*
rm -rf ~/rpmbuild/BUILDROOT/*
That should free up enough space
 
Old 01-30-2013, 10:52 PM   #3
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Rep: Reputation: 125Reputation: 125
I'm not familiar with the $HOME/rpmbuild directory or it's contents. But the answer to your question depends on how the kernel was built and installed.

If the rpmbuild directory contains the source tree and you built rpm packages for the kernel (including the headers), I would think it would be safe to remove that directory.

On the other hand, if you built the headers and kept it in the /usr directory of the source tree, I would not recommend removing the rpmbuild directory. Doing so, will also remove the kernel headers, which means you will not be able to build other packages that depends on these headers.

In either case, it's always recommended that you keep the sources around should you find a problem with the newly built kernel and need to re-configure and re-build it. This saves a lot of build time.

Have you checked the contents of the rpmbuild directory? That seems to be unusually large to me.
 
  


Reply



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
rpmbuild should not remove file while unistalling ruj.sabya Linux - General 1 06-26-2007 06:02 PM
How to safely remove device? shame VectorLinux 6 09-06-2006 08:23 PM
How to remove the kernel safely? hardstyleFX Linux - General 3 05-06-2006 02:19 PM
how do I (safely) remove gnome? sunpascal Linux - Newbie 1 02-12-2006 09:24 AM
can you apply 2.6.x kernel config to 2.4.x safely/somewhat safely? silex_88 Linux - Software 3 12-09-2005 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:43 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
Open Source Consulting | Domain Registration