installed kernel.2.6.12 srpm, how do I remove all of it
Paul Howarth
paul at city-fan.org
Sun Aug 14 10:53:50 UTC 2005
On Sat, 2005-08-13 at 19:11 -0400, H. S. wrote:
> Hi,
>
> To install nvidia driver, I had to download kernel srpm
> (kernel-2.6.12-1.1372_FC3.src.rpm).
> 1. Then I installed this using "rpm -Uvh <rpm name>"
> 2. The I did: "/usr/src/redhat/SPECS# rpmbuild -bp --target=i686
> kernel-2.6.spec"
Actually you didn't need to do that.
> After this, I also had to install kernel-devel using yum to get nvidia
> compiled.
That should have been sufficient - no need for the kernel SRPM.
> Anyhow, my question is, I have the nvidia driver and I wanted to undo
> whatever was done by Steps 1 and 2 above. I have just done:
> /usr/src/redhat/SPECS# rpmbuild --rmsource kernel-2.6.spec
>
> which got rid of all the files from /usr/src/redhat/SOURCE. But I still
> seem to have the kernel source in /usr/src/redhat/BUILD:
> /usr/src/redhat/BUILD# ls -l
> total 4
> drwxr-xr-x 4 root root 4096 Aug 13 15:08 kernel-2.6.12
>
>
> How do I remove this 'the Redhat way'? I don't want to try "rm -rf"
> unless I know this wouldn't somehow mess with the RPM database of the
> machine.
SRPMS aren't entered into the database. You can safely just do:
# cd /usr/src/redhat
# rm -rf BUILD/* SOURCES/* SPECS/*
Paul.
--
Paul Howarth <paul at city-fan.org>
More information about the users
mailing list