1
2
|
root@ns1 [~]# package-cleanup --problems -bash: package-cleanup: command not found |
If I was on Ubuntu, I would have done “apt-get install package-cleanup” but it does not work that way on CentOS, its actually available in yum-utils package, install it by typing
1
|
yum install yum-utils |
Enjoy!!
To clean kernels and /boot you can use this command :
package-cleanup --oldkernels --count=2