升级centos#yum update -y安装package-cleanup#yum install yum-utils删除孤立的包# package-cleanup --orphans删除旧的内核# package-cleanup --oldkernels# package-cleanup --oldkernels…