installed kernel.2.6.12 srpm, how do I remove all of it
jvian10 at charter.net
Sun Aug 14 12:19:40 UTC 2005
On Sat, 2005-08-13 at 19:11 -0400, H. S. wrote:
> To install nvidia driver, I had to download kernel srpm
> 1. Then I installed this using "rpm -Uvh <rpm name>"
> 2. The I did: "/usr/src/redhat/SPECS# rpmbuild -bp --target=i686
The src was not needed
> After this, I also had to install kernel-devel using yum to get nvidia
kernel-devel was needed.
> 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
That would not mess with the database at all. However, it would leave
the package listed as installed.
rpm -qa kernel\*
then identify the source package that was installed in step 1 above and
rpm -e kernel-XXX
where kernel-XXX is the source package you installed.
More information about the users