Re: installed kernel.2.6.12 srpm, how do I remove all of it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"

The src was not needed

> After this, I also had to install kernel-devel using yum to get nvidia 
> compiled.

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 
> machine.
That would not mess with the database at all.  However, it would leave
the package listed as installed.

Try
rpm -qa kernel\*

then identify the source package that was installed in step 1 above and
do 
  rpm -e kernel-XXX     
where kernel-XXX is the source package you installed.

> thanks,
> ->HS
> 
> 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux