<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Since I am not a pro like you guys etc. would it be acceptable to leave the 'headers' in apt 'or are they just wasting space' since I now have only 2 kernel images on the computer? I suppose I should have started by using the 'purge' command right from the start.<br><br>Thank you for your help.<br><br><div>Date: Fri, 21 Feb 2014 18:50:28 -0600<br>From: gsker@skerbitz.org<br>To: tclug-list@mn-linux.org<br>Subject: Re: [tclug-list] A question about dpkg<br><br><pre>I find<br> sudo aptitude purge '~i2.6.32-57'<br>is a good way to select the right packages.<br>I often do things like.<br> sudo aptitude purge '~i3.0.8-2[459]'<br> <br>That takes care of all the headers and images and -generic and -kernel and <br>-virtual....<br> <br>Someone posted a really nice one that used the uname output very nicely <br>but I've lost it. Probably one of these:<br><a href="http://www.commandlinefu.com/commands/view/5829/remove-all-unused-kernels-with-apt-get" target="_blank">http://www.commandlinefu.com/commands/view/5829/remove-all-unused-kernels-with-apt-get</a><br> <br>If you catch yourself doing an aptitude search piped to grep you're <br>probably doing it wrong.<br> <br>You would catch yourself doing that for a a good reason (IMHO) -- the <br>documentation for the very powerful search is a rather inscrutable.<br> <br>As to Ubuntu not cleaning up kernels.....<br> <br>There actually is an autoremove. I don't know how I enabled it, <br>but there are remnants that give me a clue:<br> <br>gsker@veeta:~/mail> dpkg -S /etc/kernel/postinst.d/apt-auto-removal<br>apt: /etc/kernel/postinst.d/apt-auto-removal<br> <br>and /etc/apt/apt.conf.d/01autoremove-kernels<br> <br>I catch it removing kernel packages once in a while. :-)<br> <br>FWIW<br> <br>On Fri, 21 Feb 2014, tclug@freakzilla.com wrote:<br> <br>> You cn remove anything that's not for the current kernel version. One of my <br>> biggest nitpicks with Ubuntu is that it doesn't do that automatically.<br>><br>> Like David said, it's not a bad idea to leave the headers in there.<br>><br>><br>> On Thu, 20 Feb 2014, paul g wrote:<br>><br>>> I have a computer running Ubuntu 10.04 and have removed most of the images<br>>> using the following command in bash sudo aptitude search linux-image |<br>>> grep -E "^i"<br>>> <br>>> then I updated grub,<br>>> <br>>> I pulled a dpkg -l |less command and here are the results.<br>>> <br>>> ri linux-headers-2.6.32-45 <br>>> 2.6.32-45.104 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-45-generic <br>>> 2.6.32-45.104 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-46 <br>>> 2.6.32-46.108 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-46-generic <br>>> 2.6.32-46.108 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-47 <br>>> 2.6.32-47.109 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-47-generic <br>>> 2.6.32-47.109 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-48 <br>>> 2.6.32-48.110 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-48-generic <br>>> 2.6.32-48.110 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-49 <br>>> 2.6.32-49.111 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-49-generic <br>>> 2.6.32-49.111 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-50 <br>>> 2.6.32-50.112 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-50-generic <br>>> 2.6.32-50.112 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-51 <br>>> 2.6.32-51.113 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-51-generic <br>>> 2.6.32-51.113 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-52 <br>>> 2.6.32-52.114 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-52-generic <br>>> 2.6.32-52.114 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-53 <br>>> 2.6.32-53.115 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-53-generic <br>>> 2.6.32-53.115 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-54 <br>>> 2.6.32-54.116 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-54-generic <br>>> 2.6.32-54.116 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-55 <br>>> 2.6.32-55.117 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-55-generic <br>>> 2.6.32-55.117 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-56 <br>>> 2.6.32-56.118 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-56-generic <br>>> 2.6.32-56.118 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-2.6.32-57 <br>>> 2.6.32-57.119 Header files related to<br>>> Linux kernel version 2.6.32<br>>> ii linux-headers-2.6.32-57-generic <br>>> 2.6.32-57.119 Linux kernel headers for<br>>> version 2.6.32 on x86/x86_<br>>> ii linux-headers-generic <br>>> 2.6.32.57.64 Generic Linux kernel <br>>> headers<br>>> ii linux-image-2.6.32-55-generic <br>>> 2.6.32-55.117 Linux kernel image for<br>>> version 2.6.32 on x86/x86_64<br>>> ii linux-image-2.6.32-56-generic <br>>> 2.6.32-56.118 Linux kernel image for<br>>> version 2.6.32 on x86/x86_64<br>>> ii linux-image-2.6.32-57-generic <br>>> 2.6.32-57.119 Linux kernel image for<br>>> version 2.6.32 on x86/x86_64<br>>> :<br>>> please help<br>>> <br>>> note the ri preceding the linux-headers-2.6.32-45 <br>>> <br>>> Do I need to keep the headers on the computer in order to continue to<br>>> operate the programs I have installed.<br>>> <br>>> Thank You.<br>>> <br>><br></pre><br>_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
tclug-list@mn-linux.org
http://mailman.mn-linux.org/mailman/listinfo/tclug-list</div> </div></body>
</html>