2013年5月25日 星期六

disable yum auto update on rhel 6


使用的開發版本為  scientific linux cern  &  scientific linux  ,都是基於 rhel 的開發版。

rhel 6 沒辦法像 5 一樣,使用 chkconfig --list|grep yum 看到的那種 update 來關閉
可以從下面兩個地方來做。讓系統不會在不知情之下,自動被更新。


# 直接把 autoupdate 移除
rpm -qa|grep yum|grep auto
yum-autoupdate-2-5.2.noarch

rpm -e yum-autoupdate-2-5.2.noarch

rpm -qa|grep yum-autoupdate




#或是在  /etc/sysconfig/yum-autoupdate 設定檔裡面加上 ENABLED="false"
sed -i '/ENABLED=/s/true/false/' /etc/sysconfig/yum-autoupdate

cat /etc/sysconfig/yum-autoupdate |grep -B5 'ENABLE'
# This file controls the configuration of yum-autoupdate
# For it to work as expected it should be /etc/sysconfig/yum-autoupdate
# ENABLED
#     true - Run yum-autoupdate
#     false - Do not run yum-autoupdate (default)
#   + anything other than true defaults to false
ENABLED="false"



沒有留言:

張貼留言