Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 01-30-2013, 10:22 PM   #1
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
Senior Member
Registered: Aug 2009
Posts: 3,790

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

rm -rf ~/rpmbuild/BUILD/*
rm -rf ~/rpmbuild/BUILDROOT/*
That should free up enough space
Old 01-30-2013, 10:52 PM   #3
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.


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
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 > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:21 AM.

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