반응형


1. 우선 yum 패키지가 설치 되어 있는지 점검 한다,.,..

[root@localhost ~]#
[root@localhost ~]# rpm -q yum
yum-2.4.3-1.c4
[root@localhost ~]#

설치가 되어 있음을 확인한다..만약 설치가 되어 있지 않으면 아래와 같이 한다.

# rpm install  yum-버전명

2.  yum 이란 명령어를 주면 아래와 같이 나타난다.

[root@localhost ~]# yum
You need to give some command

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
[root@localhost ~]#

3. # yum update  --> 모든 패키지 업데이트

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 kernel                  i686       2.6.9-55.0.9.EL  update             11 M
 kernel-devel            i686       2.6.9-55.0.9.EL  update            3.8 M
Updating:
 SysVinit                i386       2.85-34.4        update             96 k
 acl                     i386       2.2.23-5.3.el4   update             59 k
 aspell                  i386       12:0.50.5-4.EL4  update            320 k
 attr                    i386       2.4.16-3.1.el4   update             45 k
 audit                   i386       1.0.15-3.EL4     update            200 k
 audit-libs              i386       1.0.15-3.EL4     update             38 k
 autofs                  i386       1:4.1.3-199.3    update            245 k
 bind                    i386       20:9.2.4-27.0.1.el4  update            580 k
 bind-libs               i386       20:9.2.4-27.0.1.el4  update            569 k
 bind-utils              i386       20:9.2.4-27.0.1.el4  update            141 k
 binutils                i386       2.15.92.0.2-22   update            2.8 M
 chkconfig               i386       1.3.13.5.EL4-1   update            129 k
 coreutils               i386       5.2.1-31.6       update            2.9 M
 cpio                    i386       2.5-13.RHEL4     update             46 k
 cpp                     i386       3.4.6-8          update            1.6
.......................중략 ....................................................................
.
 libgssapi               i386       0.8-1            update             19 k
 nfs-utils-lib           i386       1.0.6-8.z1       update             49 k
 perl-libwww-perl        noarch     5.79-5           update            355 k
 tcl                     i386       8.4.7-2          update            897 k

Transaction Summary
=============================================================================
Install      6 Package(s)
Update     159 Package(s)
Remove       0 Package(s)
Total download size: 159 M
Is this ok [y/N]: y

우선 운영체제를 설치하면 모든 패키지 업데이트를 해 주는게 좋다. 그것은 보안적인 측면에서 최신 버전을 사용하면 안전하기 때문이라는 것은 누구나 알수 있다.  참고 하기 바란다..

4.  # yum remove 패키지명 ---->패키지제거

5. # yum  search  패키지명 --->패키지 검색

6. # yum info 패키지명 -----> 패키지정보





,