Yum (Yellowdog Updater Modified) 是RPM-based Linux发行版(如CentOS、RHEL、Fedora等)中最常用的包管理工具之一,在系统升级和维护中扮演着重要角色。
yum check-update
yum update
yum update package_name
yum update kernel
yum clean all
yum update
yum install epel-release
yum install yum-utils
yum-config-manager --enable extras
yum-config-manager --enable centosplus
yum clean all
yum update
reboot
yum update --downloadonly --downloaddir=/path/to/save
yum --security update
yum update --exclude=package_name*
yum history
yum history info [ID]
df -hcat /etc/redhat-release 或 rpm -q centos-release依赖问题:
yum deplist package_name 查看依赖关系yum-complete-transaction 完成中断的事务仓库问题:
yum clean allyum makecache空间不足:
package-cleanup --oldkernels --count=1yum clean packagesscreen或tmux进行长时间升级操作yum update保持系统更新yum-cron自动安全更新Yum作为强大的包管理工具,合理使用可以确保Linux系统的稳定性和安全性,同时保持软件的最新状态。