리눅스
우분투 apt-get Repositoy 변경
snoopybox
2013. 12. 5. 00:08
우분투 13.04 기준으로 설명
우분투에도 레드햇 계열의 yum처럼 apt-get이 있다. 따라서 속도 빠른(?) 서버로 Repositoy를 변경하는게 좋지 않을까?
설치시 지역을 한국으로 설정했다면 아마 기본적으로 repo가 아래와 같이 설정되어 있을 것인데
내 경험으로는 kr.archive.ubuntu.com 서버가 별로 빠르지 않았다. 따라서 속도 빠른(?) 다음 두 가지 서버 중 하나로 변경해보자.
http://ftp.daum.net/
http://ftp.neowiz.com/
일일이 수동으로 바꾸기는 귀찮으니 sed로 치환해보자.
원본 파일은 혹시 모르니 일단 백업해 놓고...
위와 같이 하면 우분투 패키지 설치가 한결 빨라질 것이다.
참고로 릴리스 버전 뒤에 붙은 요소들의 의미는 아래와 같다고 한다.
우분투에도 레드햇 계열의 yum처럼 apt-get이 있다. 따라서 속도 빠른(?) 서버로 Repositoy를 변경하는게 좋지 않을까?
설치시 지역을 한국으로 설정했다면 아마 기본적으로 repo가 아래와 같이 설정되어 있을 것인데
root@ubuntu:~# cat /etc/apt/sources.list
#
# deb cdrom:[Ubuntu-Server 13.04 _Raring Ringtail_ - Release amd64 (20130423.1)]/ raring main restricted
#deb cdrom:[Ubuntu-Server 13.04 _Raring Ringtail_ - Release amd64 (20130423.1)]/ raring main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://kr.archive.ubuntu.com/ubuntu/ raring main restricted
deb-src http://kr.archive.ubuntu.com/ubuntu/ raring main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://kr.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://kr.archive.ubuntu.com/ubuntu/ raring-updates main restricted
... (생략)
#
# deb cdrom:[Ubuntu-Server 13.04 _Raring Ringtail_ - Release amd64 (20130423.1)]/ raring main restricted
#deb cdrom:[Ubuntu-Server 13.04 _Raring Ringtail_ - Release amd64 (20130423.1)]/ raring main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://kr.archive.ubuntu.com/ubuntu/ raring main restricted
deb-src http://kr.archive.ubuntu.com/ubuntu/ raring main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://kr.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://kr.archive.ubuntu.com/ubuntu/ raring-updates main restricted
... (생략)
내 경험으로는 kr.archive.ubuntu.com 서버가 별로 빠르지 않았다. 따라서 속도 빠른(?) 다음 두 가지 서버 중 하나로 변경해보자.
http://ftp.daum.net/
http://ftp.neowiz.com/
일일이 수동으로 바꾸기는 귀찮으니 sed로 치환해보자.
원본 파일은 혹시 모르니 일단 백업해 놓고...
cd /etc/apt
cp sources.list sources.list.bak
sed -i 's/kr.archive.ubuntu.com/ftp.neowiz.com/g' sources.list
sed -i 's/security.ubuntu.com/ftp.neowiz.com/g' sources.list
apt-get update
cp sources.list sources.list.bak
sed -i 's/kr.archive.ubuntu.com/ftp.neowiz.com/g' sources.list
sed -i 's/security.ubuntu.com/ftp.neowiz.com/g' sources.list
apt-get update
위와 같이 하면 우분투 패키지 설치가 한결 빨라질 것이다.
참고로 릴리스 버전 뒤에 붙은 요소들의 의미는 아래와 같다고 한다.
Main - Officially supported software.
Restricted - Supported software that is not available under a completely free license.
Universe - Community maintained software, i.e. not officially supported software.
Multiverse - Software that is not free.