yum update에 관하여

빠샤의 이미지

yum으로 업데이트시 해당 패키지는 업데이트 못시키게 묶어놓는 방법이 있나요?

데비안쪽은 있는것 같던데요.

특정 리스트 파일에 지정된 패키지는 업데이트 못시키게 하는등..

도움부탁드립니다. :lol:

ydhoney의 이미지

[root@localhost ~]# yum --help
usage: yum [options] < update | install | info | remove | list |
    clean | provides | search | check-update | groupinstall |
    groupupdate | grouplist | groupinfo | groupremove |
    makecache | localinstall | erase | upgrade | whatprovides |
    localupdate | resolvedep | shell | deplist >

options:
  -h, --help            show this help message and exit
  -t, --tolerant        be tolerant of errors
  -C                    run entirely from cache, don't update cache
  -c [config file]      config file location
  -R [minutes]          maximum command wait time
  -d [debug level]      debugging output level
  -e [error level]      error output level
  -y                    answer yes for all questions
  --version             show Yum version and exit
  --installroot=[path]  set install root
  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)
  --disablerepo=[repo]  disable one or more repositories (wildcards allowed)
  --exclude=[package]   exclude package(s) by name or glob
  --obsoletes           enable obsoletes processing during updates
  --noplugins           disable Yum plugins

yum의 man page 중

       --exclude=package
              Exclude a specific package by name or glob from updates on all repositories.
              Configuration Option: exclude

yum.conf 의 man page 중

       exclude
              List of packages to exclude from updates or installs. This should be a space separated list.  Shell globs using wildcards (eg. * and  ?)  are allowed.

대략 kernel로 시작하는 패키지는 애초에 제외시키고 싶다 이러면

exclude=kernel*

이런식으로 yum.conf 에 넣어주면 되겠지요. *도 가능하고 ? 도 가능하고 정확한 패키지명을 적어주셔도 되고 뭐 그렇습니다. ^^

일시적으로 사용하시려면 yum 사용하실때 --exclude=[package] 옵션을 사용하셔도 되겠지요. ^^