- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Removing Build files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2007 10:28 PM
тАО12-27-2007 10:28 PM
I installed kernel source into a Red Hat ES 4 system..
# rpm kernel-2.6.9-34.EL.src.rpm
# cd /usr/src/redhat/SPECS
# rpmbuild -bp --target i686 kernel-2.6.spec
This created alot of files in /usr/src/redhat/BUILD/kernel-2.6.9
Now I have no need for the source code already.
Running # rpmbuild --clean --rmsource --rmspec kernel-2.6.spec does not seem to remove that directory and its files.
How do I cleanly remove all the files? do I just simply remove the directory? ie rm -rf /usr/src/redhat/BUILD/kernel-2.6.9
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-28-2007 12:59 AM
тАО12-28-2007 12:59 AM
Re: Removing Build files
rpm -e kernel-2.6.9-34.EL.src.rpm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-28-2007 01:06 AM
тАО12-28-2007 01:06 AM
Re: Removing Build files
rpm -e kernel-2.6.9-34.EL.src.rpm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-28-2007 01:34 AM
тАО12-28-2007 01:34 AM
Re: Removing Build files
The command does not work..
# rpm -e --test kernel-2.6.9-34.EL.src.rpm
error: package kernel-2.6.9-34.EL.src.rpm is not installed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-28-2007 03:45 AM
тАО12-28-2007 03:45 AM
SolutionYes, you can just remove the directory and files it created:
/usr/src/redhat/BUILD/kernel-2.6.9
/usr/src/redhat/SOURCES/kernel-*
/usr/src/redhat/SPECS/kernel-2.6.spec
There might be one or two other files/directories about that you want to remove, but they are the main source of polution. If you don't do any other building on the machine, then all of the contents of the BUILD, SOURCES and SPECS directories is able to be removed (but not the directories them selves).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2007 04:54 PM
тАО12-30-2007 04:54 PM
Re: Removing Build files
Thanks