본문 바로가기
Programming/Go-Lang

Go-Lang : CentOS 6,7에서 go-lang 설치 방법 (yum방식)

by 근육곰돌이 2021. 8. 5.
728x90

CentOS Go 설치방법

Redhat 기반 배포판에서도 Go Language를 설치하는 것은 매우 쉽습니다.

그중 yum으로 하면 더 쉽습니다.

 

Source설치가 하고싶은 분은 https://musclebear.tistory.com/81 참고해주세요!

 

Go-Lang : CentOS 6,7에서 go-lang 설치 방법

CenOS 6,7 에서 go-lang을 설치하고 환경 설정하는 방법입니다. 아래의 글은 원본 해외글을 번역해서 올렸습니다. 아래의 방법대로 설치하니 CentOS에서 깔끔하게 설치됨을 확인하였습니다. ~! 원본 보

musclebear.tistory.com

 

Go 리포지토리를 사용하여 빌드하지 않고도 최신 릴리스를 얻을 수 있습니다.

아래 명령을 실행하여 설치할 수 있습니다.

 

 

1. Go 저장소 yum등록

rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO

curl -s https://mirror.go-repo.io/centos/go-repo.repo | tee > /etc/yum.repos.d/go-repo.repo

 

행여 1번이 에러날 경우

yum install epel-release

 

2. yum으로 go-lang설치

yum install golang

 

3. 설치 확인

$ which go
/bin/go

 

 

 

반응형