i have compiled a custom kernel on a non mission critical machine, but since the kernel is not working like i would, how can i mannualy remove the kernel?
and second is, in debian i used to compile kernels as installable packages, that could easily be installed on another machine, how can i do this in open suse?
On 2013-11-20 22:16, robin1981 wrote:
>
> i have compiled a custom kernel on a non mission critical machine, but
> since the kernel is not working like i would, how can i mannualy remove
> the kernel?
Make sure you know the exact name of that kernel, then delete the
corresponding “/lib/modules/” trees. Also the corresponding files in
/boot, and the /usr/src.
But before that, make sure that you have another kernel installed and
that it boots.
> and second is, in debian i used to compile kernels as installable
> packages, that could easily be installed on another machine, how can i
> do this in open suse?
“make rpm”?
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
So normally you remove kernels using YaST but that does not work if you did a manual compile outside of YaST. You failed to mention your openSUSE version used. To delete a manually compiled kernel you would remove the folder you did this in and these two others:
Delete the /lib/module/version-desktop folder and the kernel modules: 1.7 GB (Must be root to remove)
Delete three files in the /boot folder: 21 MB, called initrd-version, System.map-version & vmlunuz-version (Must Be root to remove)
I have a blog on compiling kernels you can use and include links to three bash scripts I have written to compile, remove and fetch any kernel version, past or present.