View Full Version : [SOLVED] Removing kernel source RPM

25th September 2010, 11:17 PM
I installed the kernel source RPM to add a patch to a driver kernel module that didn't support my NIC. Now that the patch is part of the official source tree I no longer need the kernel source and I want to delete it. Can I just do rm -rf rpmbuild or do I need to run the reverse of the rpm commands described in Section 1 of http://fedoraproject.org/wiki/Docs/CustomKernel?

Thanks in advance,

Edward Hooper

26th September 2010, 01:00 AM
If you have the rpmdevtools package installed, and what you want to do is clear out all the files in your ~/rpmbuild directory tree, then you can just use the command rpmdev-wipetree. Any rpm packages that you have created that you want to preserve should first be copied out for safe keeping. The rpmbuild directory and it's sub-directories will remain intact, sans any files.

26th September 2010, 01:29 AM
There was nothing I wanted to keep so I just wiped everything.

Thanks for the help!