티스토리 뷰


다양한 환경으로 설치된 Linux System들을 관리하다 보면, 평소에는 잘 사용하지는 않아 몰랐지만 경우에 따라 필요하게된 명령어나, 유틸리티가 있을 수 있다.

이럴때 간단히 Yum을 이용하여 해당 파일(유틸리티)이 포함된 Package를 찾고, 설치하는 과정을 살펴보도록 한다.

 


1. Yum을 통해 lsb_release 명령이 포함된 Package 찾기

 

[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# lsb_release
-bash: lsb_release: command not found
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# yum provides */lsb_release
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.kaist.ac.kr
 * epel: mirrors.hustunique.com
 * extras: ftp.kaist.ac.kr
 * updates: ftp.kaist.ac.kr
base/7/x86_64/filelists_db                                                                             | 6.2 MB  00:00:14    
epel/x86_64/filelists_db                                                                               | 6.4 MB  00:00:27    
extras/7/x86_64/filelists_db                                                                           | 246 kB  00:00:00    
updates/7/x86_64/filelists_db                                                                          | 1.5 MB  00:00:03    
dkms-2.2.0.3-30.git.7c3e7c5.el7.noarch : Dynamic Kernel Module Support Framework
Repo        : epel
Matched from:
Filename    : /usr/lib/dkms/lsb_release

 

redhat-lsb-core-4.1-27.el7.centos.1.i686 : LSB Core module support
Repo        : base
Matched from:
Filename    : /usr/bin/lsb_release

 

redhat-lsb-core-4.1-27.el7.centos.1.x86_64 : LSB Core module support
Repo        : base
Matched from:
Filename    : /usr/bin/lsb_release

 

[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# yum -y install redhat-lsb-core-4.1-27.el7.centos.1.x86_64
Loaded plugins: fastestmirror, langpacks
base                                                                                                    | 3.6 kB  00:00:00    
epel/x86_64/metalink                                                                                    | 4.3 kB  00:00:00    
extras                                                                                                  | 3.4 kB  00:00:00    
updates                                                                                                 | 3.4 kB  00:00:00    
Loading mirror speeds from cached hostfile
 * base: ftp.kaist.ac.kr
 * epel: mirrors.hustunique.com
 * extras: ftp.kaist.ac.kr
 * updates: ftp.kaist.ac.kr
Resolving Dependencies
--> Running transaction check
---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be installed
--> Processing Dependency: redhat-lsb-submod-security(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: spax for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: /usr/bin/lpr for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: /usr/bin/lp for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
--> Running transaction check
---> Package cups-client.x86_64 1:1.6.3-22.el7 will be installed
--> Processing Dependency: cups-libs(x86-64) = 1:1.6.3-22.el7 for package: 1:cups-client-1.6.3-22.el7.x86_64
---> Package redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 will be installed
---> Package spax.x86_64 0:1.5.2-13.el7 will be installed

... 중략

 

Transaction test succeeded
Running transaction
  Installing : spax-1.5.2-13.el7.x86_64                                                                1/6
  Updating   : 1:cups-libs-1.6.3-22.el7.x86_64                                                         2/6
  Installing : 1:cups-client-1.6.3-22.el7.x86_64                                                       3/6
  Installing : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64                                   4/6
  Installing : redhat-lsb-core-4.1-27.el7.centos.1.x86_64                                              5/6
  Cleanup    : 1:cups-libs-1.6.3-14.el7.x86_64                                                         6/6
  Verifying  : redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64                                   1/6
  Verifying  : 1:cups-libs-1.6.3-22.el7.x86_64                                                         2/6
  Verifying  : spax-1.5.2-13.el7.x86_64                                                                3/6
  Verifying  : redhat-lsb-core-4.1-27.el7.centos.1.x86_64                                              4/6
  Verifying  : 1:cups-client-1.6.3-22.el7.x86_64                                                       5/6
  Verifying  : 1:cups-libs-1.6.3-14.el7.x86_64                                                         6/6

Installed:
  redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1                                                            

Dependency Installed:
  cups-client.x86_64 1:1.6.3-22.el7        redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1      spax.x86_64 0:1.5.2-13.el7                                      

Dependency Updated:
  cups-libs.x86_64 1:1.6.3-22.el7                                                                                                                                                                                                          

Complete!
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.0.1406 (Core)
Release: 7.0.1406
Codename: Core
[root@centos7 ~]#
[root@centos7 ~]#
[root@centos7 ~]#

 

 

※ man page에 정의된 provides Option의 내용

 

 

 

 

 

 

반응형
반응형
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday