<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Removing Build files in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085830#M49314</link>
    <description>Hi &lt;BR /&gt;I installed kernel source into a Red Hat ES 4 system..&lt;BR /&gt;&lt;BR /&gt;# rpm kernel-2.6.9-34.EL.src.rpm&lt;BR /&gt;# cd /usr/src/redhat/SPECS&lt;BR /&gt;# rpmbuild -bp --target i686 kernel-2.6.spec&lt;BR /&gt;&lt;BR /&gt;This created alot of files in /usr/src/redhat/BUILD/kernel-2.6.9&lt;BR /&gt;Now I have no need for the source code already.&lt;BR /&gt;&lt;BR /&gt;Running # rpmbuild --clean --rmsource --rmspec kernel-2.6.spec does not seem to remove that directory and its files. &lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 28 Dec 2007 06:28:40 GMT</pubDate>
    <dc:creator>kenny chia</dc:creator>
    <dc:date>2007-12-28T06:28:40Z</dc:date>
    <item>
      <title>Removing Build files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085830#M49314</link>
      <description>Hi &lt;BR /&gt;I installed kernel source into a Red Hat ES 4 system..&lt;BR /&gt;&lt;BR /&gt;# rpm kernel-2.6.9-34.EL.src.rpm&lt;BR /&gt;# cd /usr/src/redhat/SPECS&lt;BR /&gt;# rpmbuild -bp --target i686 kernel-2.6.spec&lt;BR /&gt;&lt;BR /&gt;This created alot of files in /usr/src/redhat/BUILD/kernel-2.6.9&lt;BR /&gt;Now I have no need for the source code already.&lt;BR /&gt;&lt;BR /&gt;Running # rpmbuild --clean --rmsource --rmspec kernel-2.6.spec does not seem to remove that directory and its files. &lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Dec 2007 06:28:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085830#M49314</guid>
      <dc:creator>kenny chia</dc:creator>
      <dc:date>2007-12-28T06:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Build files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085831#M49315</link>
      <description>remove like this&lt;BR /&gt;&lt;BR /&gt;rpm -e kernel-2.6.9-34.EL.src.rpm&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Dec 2007 08:59:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085831#M49315</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2007-12-28T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Build files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085832#M49316</link>
      <description>to remove rpm use this command&lt;BR /&gt;&lt;BR /&gt;rpm -e kernel-2.6.9-34.EL.src.rpm</description>
      <pubDate>Fri, 28 Dec 2007 09:06:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085832#M49316</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2007-12-28T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Build files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085833#M49317</link>
      <description>Hi &lt;BR /&gt;The command does not work..&lt;BR /&gt;&lt;BR /&gt;# rpm -e --test kernel-2.6.9-34.EL.src.rpm&lt;BR /&gt;error: package kernel-2.6.9-34.EL.src.rpm is not installed</description>
      <pubDate>Fri, 28 Dec 2007 09:34:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085833#M49317</guid>
      <dc:creator>kenny chia</dc:creator>
      <dc:date>2007-12-28T09:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Build files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085834#M49318</link>
      <description>You can't remove 'src' rpms using any rpm command.&lt;BR /&gt;&lt;BR /&gt;Yes, you can just remove the directory and files it created:&lt;BR /&gt;&lt;BR /&gt;/usr/src/redhat/BUILD/kernel-2.6.9&lt;BR /&gt;/usr/src/redhat/SOURCES/kernel-*&lt;BR /&gt;/usr/src/redhat/SPECS/kernel-2.6.spec&lt;BR /&gt;&lt;BR /&gt;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).</description>
      <pubDate>Fri, 28 Dec 2007 11:45:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085834#M49318</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-12-28T11:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Build files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085835#M49319</link>
      <description>Hi Stuart&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 31 Dec 2007 00:54:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/removing-build-files/m-p/5085835#M49319</guid>
      <dc:creator>kenny chia</dc:creator>
      <dc:date>2007-12-31T00:54:32Z</dc:date>
    </item>
  </channel>
</rss>

