Linux/기본 명령어

#yum (패키지 설치)

배고파.. 2019. 7. 25. 18:08
  • Yellowdog Update Manager

  • rmp 파일이 저장된 저장소(repository)에서, rpm파일과 의종성을 갖는 다른 rpm파일까지 일괄 다운로드 후 자동으로 설치

  • yum [옵션] [패키지]

    • 패키지 설치 : yum install [패키지]

      • yum -y install [패키지] (약관 자동 동의)

    • 업데이트 : yum update [패키지]

    • 삭제 : yum remove [패키지]

    • 버전확인 : yum --version

    • 패키지 정보 확인 : yum info [패키지]

[root@home ~]# yum -y install mysql-community-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:8.0.16-2.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 8.0.16-2.el7 for package: mysql-community-server-8.0.16-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 8.0.11 for package: mysql-community-server-8.0.16-2.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:8.0.16-2.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 8.0.11 for package: mysql-community-client-8.0.16-2.el7.x86_64
---> Package mysql-community-common.x86_64 0:8.0.16-2.el7 will be installed
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be obsoleted
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-7.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: MySQL-python-1.2.5-1.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-7.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: MySQL-python-1.2.5-1.el7.x86_64
---> Package mysql-community-libs.x86_64 0:8.0.16-2.el7 will be obsoleting
--> Running transaction check
---> Package mysql-community-libs-compat.x86_64 0:8.0.16-2.el7 will be obsoleting
---> Package postfix.x86_64 2:2.10.1-7.el7 will be updated
---> Package postfix.x86_64 2:2.10.1-7.0.1.el7.centos will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================
 Package                                       Arch                     Version                                        Repository                           Size
=================================================================================================================================================================
Installing:
 mysql-community-libs                          x86_64                   8.0.16-2.el7                                   mysql80-community                   3.0 M
     replacing  mariadb-libs.x86_64 1:5.5.60-1.el7_5
 mysql-community-libs-compat                   x86_64                   8.0.16-2.el7                                   mysql80-community                   2.1 M
     replacing  mariadb-libs.x86_64 1:5.5.60-1.el7_5
 mysql-community-server                        x86_64                   8.0.16-2.el7                                   mysql80-community                   403 M
Installing for dependencies:
 mysql-community-client                        x86_64                   8.0.16-2.el7                                   mysql80-community                    32 M
 mysql-community-common                        x86_64                   8.0.16-2.el7                                   mysql80-community                   575 k
Updating for dependencies:
 postfix                                       x86_64                   2:2.10.1-7.0.1.el7.centos                      centosplus                          2.5 M

Transaction Summary
=================================================================================================================================================================
Install  3 Packages (+2 Dependent packages)
Upgrade             ( 1 Dependent package)

Total download size: 443 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
경고: /var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-common-8.0.16-2.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Public key for mysql-community-common-8.0.16-2.el7.x86_64.rpm is not installed
(1/6): mysql-community-common-8.0.16-2.el7.x86_64.rpm                                                                                     | 575 kB  00:00:00     
(2/6): mysql-community-libs-8.0.16-2.el7.x86_64.rpm                                                                                       | 3.0 MB  00:00:00     
(3/6): mysql-community-libs-compat-8.0.16-2.el7.x86_64.rpm                                                                                | 2.1 MB  00:00:00     
(4/6): postfix-2.10.1-7.0.1.el7.centos.x86_64.rpm                                                                                         | 2.5 MB  00:00:00     
(5/6): mysql-community-client-8.0.16-2.el7.x86_64.rpm                                                                                     |  32 MB  00:00:00     
(6/6): mysql-community-server-8.0.16-2.el7.x86_64.rpm                                                                                     | 403 MB  00:00:04     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                            104 MB/s | 443 MB  00:00:04     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
 Userid     : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
 Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
 Package    : mysql80-community-release-el7-3.noarch (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : mysql-community-common-8.0.16-2.el7.x86_64                                                                                                    1/8 
  Installing : mysql-community-libs-8.0.16-2.el7.x86_64                                                                                                      2/8 
  Installing : mysql-community-libs-compat-8.0.16-2.el7.x86_64                                                                                               3/8 
  Installing : mysql-community-client-8.0.16-2.el7.x86_64                                                                                                    4/8 
  Installing : mysql-community-server-8.0.16-2.el7.x86_64                                                                                                    5/8 
  Updating   : 2:postfix-2.10.1-7.0.1.el7.centos.x86_64                                                                                                      6/8 
  Cleanup    : 2:postfix-2.10.1-7.el7.x86_64                                                                                                                 7/8 
  Erasing    : 1:mariadb-libs-5.5.60-1.el7_5.x86_64                                                                                                          8/8 
  Verifying  : mysql-community-libs-8.0.16-2.el7.x86_64                                                                                                      1/8 
  Verifying  : mysql-community-libs-compat-8.0.16-2.el7.x86_64                                                                                               2/8 
  Verifying  : mysql-community-client-8.0.16-2.el7.x86_64                                                                                                    3/8 
  Verifying  : mysql-community-common-8.0.16-2.el7.x86_64                                                                                                    4/8 
  Verifying  : mysql-community-server-8.0.16-2.el7.x86_64                                                                                                    5/8 
  Verifying  : 2:postfix-2.10.1-7.0.1.el7.centos.x86_64                                                                                                      6/8 
  Verifying  : 2:postfix-2.10.1-7.el7.x86_64                                                                                                                 7/8 
  Verifying  : 1:mariadb-libs-5.5.60-1.el7_5.x86_64                                                                                                          8/8 

Installed:
  mysql-community-libs.x86_64 0:8.0.16-2.el7        mysql-community-libs-compat.x86_64 0:8.0.16-2.el7        mysql-community-server.x86_64 0:8.0.16-2.el7       

Dependency Installed:
  mysql-community-client.x86_64 0:8.0.16-2.el7                                    mysql-community-common.x86_64 0:8.0.16-2.el7                                   

Dependency Updated:
  postfix.x86_64 2:2.10.1-7.0.1.el7.centos                                                                                                                       

Replaced:
  mariadb-libs.x86_64 1:5.5.60-1.el7_5                                                                                                                           

Complete!

 

'Linux > 기본 명령어' 카테고리의 다른 글

#rpm  (0) 2019.07.25
#wget (파일 다운로드)  (0) 2019.07.25
lastlog (접속 로그 확인)  (0) 2019.07.25
#fstab (파일시스템 테이블)  (0) 2019.07.25
#mkfs  (0) 2019.07.25