今天在服務(wù)器用yum安裝東西的時(shí)候,老是報(bào):There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.意思是:有未完成的yum事務(wù),建議先運(yùn)行yum-complete-transaction命令清除.問(wèn)了下開(kāi)發(fā),原來(lái)有強(qiáng)制結(jié)束yum過(guò),好吧,對(duì)于我這樣有點(diǎn)輕微強(qiáng)迫癥的人來(lái)說(shuō),不允許服務(wù)器出現(xiàn)這些信息的.
解決辦法:
# 安裝 yum-complete-transaction(這是一個(gè)能發(fā)現(xiàn)未完成或被中斷的yum事務(wù)的程序)
yum -y install yum-utils
# 清除yum緩存
yum clean all
# 運(yùn)行 yum-complete-transaction,清理未完成事務(wù)
yum-complete-transaction --cleanup-only
ps:
yum會(huì)把下載的軟件包和header存儲(chǔ)在cache中,而不會(huì)自動(dòng)刪除.可用yum clean headers清除header,yum clean packages清除下載的rpm包,yum clean all全清.