"우분투 저장소 변경"의 두 판 사이의 차이

(새 문서: ;우분투 저장소 변경 ==명령어== <source lang='bash'> cp /etc/apt/sources.list /etc/apt/sources.list.old sed -i 's/kr.archive.ubuntu.com/ftp.daum.net/g' /etc/apt/sources.lis...)
 
9번째 줄: 9번째 줄:
==실행예시==
==실행예시==
<source lang='cli'>
<source lang='cli'>
root@ubuntu:~# diff /etc/apt/sources.list.old /etc/apt/sources.list | tail
> deb http://ftp.daum.net/ubuntu/ precise multiverse
> deb-src http://ftp.daum.net/ubuntu/ precise multiverse
> deb http://ftp.daum.net/ubuntu/ precise-updates multiverse
> deb-src http://ftp.daum.net/ubuntu/ precise-updates multiverse
44,45c44,45
< deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
< deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
---
> deb http://ftp.daum.net/ubuntu/ precise-backports main restricted universe multiverse
> deb-src http://ftp.daum.net/ubuntu/ precise-backports main restricted universe multiverse
</source>
</source>



2014년 12월 3일 (수) 17:34 판

우분투 저장소 변경

1 명령어

cp /etc/apt/sources.list /etc/apt/sources.list.old
sed -i 's/kr.archive.ubuntu.com/ftp.daum.net/g' /etc/apt/sources.list

2 실행예시

root@ubuntu:~# diff /etc/apt/sources.list.old /etc/apt/sources.list | tail
> deb http://ftp.daum.net/ubuntu/ precise multiverse
> deb-src http://ftp.daum.net/ubuntu/ precise multiverse
> deb http://ftp.daum.net/ubuntu/ precise-updates multiverse
> deb-src http://ftp.daum.net/ubuntu/ precise-updates multiverse
44,45c44,45
< deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
< deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
---
> deb http://ftp.daum.net/ubuntu/ precise-backports main restricted universe multiverse
> deb-src http://ftp.daum.net/ubuntu/ precise-backports main restricted universe multiverse

3 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}