Linux /boot Partition Full

This morning I spent time updating the various VM images I use with bug and security fixes.  My CentOS 7 VM presented a notice to me that it’s /boot partition was nearly out of disk space.

Normally a quick reference and delete of the older files would address the immediate need to free-up disk space; however this would not address the long term management of running out of disk space (again) as updates are applied.   There is also the question of breaking package management continuity by removing files by hand.

Quick Internet search took me to a blog entry which addressed this very topic.

By default CentOS 7 will keep up to 5 different versions of an installed package laying around.  Interestingly, the yum.conf man page says that the default value is 3 different package versions.  Yet the value I found in the CentOS 7 yum.conf file was 5.  Go figure.

So two things…

  1. I set the Yum configuration to keep only 2 copies.
    shell# vi /etc/yum.conf
    (save and exit)
  2. I purged the older kernel files in the /boot directory using package-cleanup tool.
    shell# package-cleanup --oldkernels --count=2

This took care of me.  Please visit to see output from the before, during and after using package-cleanup.

PowerShell and Unix/Linux command?

powershell_logoNot really a big deal or anything since aliases can be created; however I thought it was cool that these aliases are already setup.

Having first learned with Perl, then went crazy with PHP and now over to Python I can say I’m happy to see that someone at Microsoft made a good decision to establish PowerShell.

Table below is for PowerShell 2, 3, 4 and 5

CMD Command UNIX Command PS Command PS Alias
dir ls Get-ChildItem gci
cls clear Clear-Host (function) N/A
del, erase, rmdir rm Remove-Item ri
copy cp Copy-Item ci
move mv Move-Item mi
rename mv Rename-Item rni
type cat Get-Content gc
cd cd Set-Location sl
md mkdir New-Item ni
N/A pushd Push-Location N/A
N/A popd Pop-Location N/A