{"id":26,"date":"2005-06-14T12:50:16","date_gmt":"2005-06-14T12:50:16","guid":{"rendered":"http:\/\/blog.bananasplit.info\/?p=26"},"modified":"2006-05-24T11:19:07","modified_gmt":"2006-05-24T11:19:07","slug":"kernel-management","status":"publish","type":"post","link":"https:\/\/blog.stmellion.org\/?p=26","title":{"rendered":"Kernel Management"},"content":{"rendered":"<p><b>Installing a new kernel<\/b><br \/>\napt-get install kernel-package ncurses-dev module-init-tools initrd-tools procps fakeroot wget bzip2<br \/>\ncd \/usr\/src<br \/>\nwget http:\/\/www.kernel.org\/pub\/linux\/kernel\/v2.6\/linux-2.6.x.x.tar.bz2<br \/>\nbunzip2 linux-2.6.x.x.tar.bz2<br \/>\ntar xvf linux-2.6.x.x.tar<br \/>\ncd linux-2.6.x.x<br \/>\ncopy \/boot\/config-2.6.x.x .config.old <i>Copies an old kernel configuration into the new kernel dir.<\/i><br \/>\nmake oldconfig <i>Parses the old config options against the new kernel and prompts for unanswered questions<\/i><br \/>\nmake menuconfig  &#8211;  <i>Load Alternative Config if required<\/i><br \/>\nmake-kpkg clean<br \/>\nfakeroot make-kpkg &#8211;revision=custom.1.0 kernel_image<br \/>\n<i>If compile fails at this point: make clean then rerun make menuconfg to correct.<\/i><br \/>\ndpkg -i kernel-image-2.6.x.x_custom.1.0_i386.deb<br \/>\ncd \/boot<br \/>\nmkinitrd -o \/boot\/initrd.img-2.6.x.x 2.6.x.x<br \/>\n<i>Edit \/boot\/grub\/menu.lst and insert the initrd line for the new kernel.<\/i><\/p>\n<p><b>Purging old kernels<\/b><br \/>\ndpkg &#8211;purge &#8211;force-remove-essential kernel-image-2.6.x.x<\/p>\n<p><b>Listing installed packages<\/b><br \/>\nNot as easy as it sounds with kernels as the current dpkg version truncates their names.  The following command does the job:<br \/>\nCOLUMNS=1000 dpkg -l | awk &#8216;\/kernel-image\/ {print $2}&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing, compiling and purging kernels<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-debian","entry"],"_links":{"self":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":0,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}