본문 바로가기

리눅스 Centos/리눅스 명령어

yum 자동 업데이트 막기

yum 자동 업데이트 막기


일반 사용자 계정으로 접속 한뒤에


1. etc/yum.repos.d 폴더로 이동

[centos@localhost ~] $ cd /etc/yum.repos.d


2. su 를 이용하여 루트권한 얻기

[centos@localhost yum.repos.d] $ su

암호 :


3. ls 현재 파일목록 확인

[root@localhost yum.repos.d] $ ls

CentOS-Base.repo          CentOS-Sources.repo

CentOS-Debuginfo.repo  CentOS-Vault.repo


4. gedit 이용하여 CentOS-Base.repo 파일수정

[root@localhost yum.repos.d] $ gedit CentOS-Base.repo


5. 아래에 소스를 지우거나 주석달기

#released updates 

#[updates]

#name=CentOS-$releasever - Updates

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/

#gpgcheck=1

#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7