Difference between revisions of "Install kernel from RPM on Debian 6.0"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(New page: =install= apt-get install alien fakeroot fakeroot alien -k kernel-2.6.27-chistyakov.1.x86_64.rpm sudo dpkg -i kernel_2.6.27-chistyakov.1_amd64.deb sudo update-initramfs -c -k 2.6.27-ch...)
 
(created)
Line 1: Line 1:
=install=
+
You can use latest RHEL6-based kernel builds on your Debian or Ubuntu machine. Here's how.
 +
 
 +
== Installation ==
 +
1. Get the latest kernel from either [[Download/kernel/rhel6-testing]] or [[Download/kernel/rhel6]]. You need <code>vzkernel</code> and <code>vzkernel-devel</code> packages only, with the <code>-devel</code> being optional.
 +
 
 +
2. Install fakeroot and alien:
 
  apt-get install alien fakeroot
 
  apt-get install alien fakeroot
fakeroot alien -k kernel-2.6.27-chistyakov.1.x86_64.rpm
 
sudo dpkg -i kernel_2.6.27-chistyakov.1_amd64.deb
 
sudo update-initramfs -c -k 2.6.27-chistyakov.1
 
sudo update-grub
 
  
=uninstall=
+
3. Convert these two rpms to debs using alien. This is
  sudo dpkg -r kernel
+
  fakeroot alien --to-deb --scripts --keep-version vzkernel-*.rpm
sudo rm -fr /lib/modules/2.6.27-chistyakov.1
+
 
sudo update-initramfs -d -k 2.6.27-chistyakov.1
+
4. Install debs as usual. Reboot. Enjoy.
  sudo update-grub
+
  dpkg -i vzkernel*.deb
  
 
[[Category: HOWTO]]
 
[[Category: HOWTO]]

Revision as of 10:51, 10 November 2011

You can use latest RHEL6-based kernel builds on your Debian or Ubuntu machine. Here's how.

Installation

1. Get the latest kernel from either Download/kernel/rhel6-testing or Download/kernel/rhel6. You need vzkernel and vzkernel-devel packages only, with the -devel being optional.

2. Install fakeroot and alien:

apt-get install alien fakeroot

3. Convert these two rpms to debs using alien. This is

fakeroot alien --to-deb --scripts --keep-version vzkernel-*.rpm

4. Install debs as usual. Reboot. Enjoy.

dpkg -i vzkernel*.deb