티스토리 뷰

'yum' 명령어로 mysql 설치 하기

Install mysql using "yum" command

 

 

'yum' 명령어는 기본적으로 인터넷을 통하여 사용할수 있다.

 

Basically we can use 'yum' command through internet, so make sure network is working properly. 

 

scenario 1 : 네트워크로 설치

  When network works well 

 

1. ]#  yum info mysql

=> 설치한 패키지의 정보 확인하자. mysql 정보 확인

Let's check out the mysql package information first.

 

 

  

(click the image to see clearly...사진클릭하면 자세히 보입니다.)

 

2. ]# yum install mysql

=> 'yum install'명령어는 설치해야할 패키지와 크기까지 알려준다.

'yum install' command shows the size and list of package we have to install further.

 

 

 

=> 두개의 패지지를 설치할것인지 물어본다. 3.2m크기의 'mysql'과 'mysql-libs'

then ask us whether install 3.2M of 'mysql' package and 'mysql-libs' package or not.

 

=> y를 누르면 된다.

type 'y' to continue install.

 

 

 

 

=> 다운로드 중에 'GPG KEY'에 관해서 물어본다. 신경쓰지 말고 'y'를 눌러서 계속한다.

During the installation, linux asks us about 'GPG KEY' . Never mind the messege and keep continue with 'y'

 

초반에 'yum install mysql'대신에 'yum -y install mysql'을 실행하면 이렇게 귀찮게 'y'를 물어보지 않고 설치를 맏혀준다.

Use 'yum-y install mysql' instead of 'yum install mysql' at first, so linux won't bothers us and wont ask untill finish the install. 

 

'yum install --nogpgcheck <*.rpm 파일> '으로 설치 할경우, GPG키 인증 생략가능하고. 불안정한 RPM 파일을 강제적으로 설치 할수 있다. 

If we use 'yum install --nogpgcheck <*.rpm file>' command, it will skip the GPG verification part and also compulsary install the unstable 'rpm' files.

 

 

 

Scenario 2 : 네트워크가 안되는 경우

 Not on network service

 

1. /media/cdrom 디렉토리에 dvd 마운트

        Mount dvd on /media/cdrom/ directory.

 

]# mkdir /media/cdrom

]# umount /dev/cdrom

]# mount /dev/cdrom /media/cdrom

 

 

 

 

2. /etc/yum.repos.d/ backup 파일 만들고 " fedora-local.repo" 라는 빈파일도 생성.

 

 

=> /etc/yum.repos.d/ 는 rpm파일 url 이 저장된 저장소

                                            Repository of rpm url.

]#cd /etc/yum.repos.d

]#mkdir backup

]#mv  *.repo  backup

]#touch  fedora-local.repo

 

 

 

3. "fedora-local.repo" 편집 Editing

=> "fedora-local.repo"는 'yum'명령어가 실행되면 자동 확인되는곳.  Linux automatically ckeck this file when 'yum' command is executed.

 

]# vi  fedora-local.repo  

[fedora-local]

name=Fedora Local

baseurl=file:///media/cdrom/

gpgcheck=1

gpgkey=file:///media/cdrom/RPM-GPG-KEY-fedora

 

 

 

 

 

4. network off

]#ifdown eth0

 

5. yum -y install mysql

실행하면 의존성 문제없이 성공이다.

Installation succeed without dependancy problems.

 

 

 

 

 

 

 

 

 

 

 

 

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
TAG
more
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함