Difference between revisions of "Clear Out Old Kernels"

From Tech Wiki
Jump to navigation Jump to search
(Created page with "'''To clear out the old kernels from a CentOS box use the following commands:''' <pre> yum install yum-utils package-cleanup --oldkernels --count=2 </pre> '''To stop the /bo...")
 
 
Line 10: Line 10:
 
<pre>
 
<pre>
 
add installonly_limit=2 to /etc/yum.conf
 
add installonly_limit=2 to /etc/yum.conf
 +
</pre>
 +
 +
'''To clear out the old kernels from a Ubuntu box use the following commands:'''
 +
 +
<pre>
 +
apt-get autoremove --purge
 
</pre>
 
</pre>
  
 
[[Category:Linux]]
 
[[Category:Linux]]
 
[[Category:Contents]]
 
[[Category:Contents]]

Latest revision as of 10:13, 30 August 2016

To clear out the old kernels from a CentOS box use the following commands:

yum install yum-utils
package-cleanup --oldkernels --count=2

To stop the /boot partition from filling again do the following

add installonly_limit=2 to /etc/yum.conf

To clear out the old kernels from a Ubuntu box use the following commands:

apt-get autoremove --purge