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

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
 
(다른 사용자 한 명의 중간 판 하나는 보이지 않습니다)
11번째 줄: 11번째 줄:
<source lang='console'>
<source lang='console'>
root@ubuntu:~# cp /etc/apt/sources.list ~/sources.list.old
root@ubuntu:~# cp /etc/apt/sources.list ~/sources.list.old
root@ubuntu:~# sed -i 's/us.archive.ubuntu.com/ftp.daum.net/g' /etc/apt/sources.list
root@ubuntu:~# sed -i 's/us.archive.ubuntu.com/ftp.daumkakao.com/g' /etc/apt/sources.list
root@ubuntu:~# diff ~/sources.list.old /etc/apt/sources.list | wc -l
root@ubuntu:~# diff ~/sources.list.old /etc/apt/sources.list | wc -l
38
38
17번째 줄: 17번째 줄:
<source lang='console'>
<source lang='console'>
root@ubuntu:~# diff ~/sources.list.old /etc/apt/sources.list | tail
root@ubuntu:~# diff ~/sources.list.old /etc/apt/sources.list | tail
> deb http://ftp.daum.net/ubuntu/ precise multiverse
> deb http://ftp.daumkakao.com/ubuntu/ precise multiverse
> deb-src http://ftp.daum.net/ubuntu/ precise multiverse
> deb-src http://ftp.daumkakao.com/ubuntu/ precise multiverse
> deb http://ftp.daum.net/ubuntu/ precise-updates multiverse
> deb http://ftp.daumkakao.com/ubuntu/ precise-updates multiverse
> deb-src http://ftp.daum.net/ubuntu/ precise-updates multiverse
> deb-src http://ftp.daumkakao.com/ubuntu/ precise-updates multiverse
44,45c44,45
44,45c44,45
< deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
< 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-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 http://ftp.daumkakao.com/ubuntu/ precise-backports main restricted universe multiverse
> deb-src http://ftp.daum.net/ubuntu/ precise-backports main restricted universe multiverse
> deb-src http://ftp.daumkakao.com/ubuntu/ precise-backports main restricted universe multiverse
</source>
</source>


35번째 줄: 35번째 줄:


==참고==
==참고==
*http://blog.whitelife.co.kr/entry/Ubuntu-%EC%A0%80%EC%9E%A5%EC%86%8C-%EB%B3%80%EA%B2%BD-%ED%95%98%EA%B8%B0
* http://blog.whitelife.co.kr/entry/Ubuntu-저장소-변경-하기


[[분류: Ubuntu]]
[[분류: Ubuntu]]

2017년 9월 10일 (일) 23:28 기준 최신판

우분투 저장소 변경

1 명령어[ | ]

cp /etc/apt/sources.list ~/sources.list.old
sed -i 's/us.archive.ubuntu.com/ftp.daum.net/g' /etc/apt/sources.list
diff ~/sources.list.old /etc/apt/sources.list | wc -l

2 실행예시[ | ]

root@ubuntu:~# cp /etc/apt/sources.list ~/sources.list.old
root@ubuntu:~# sed -i 's/us.archive.ubuntu.com/ftp.daumkakao.com/g' /etc/apt/sources.list
root@ubuntu:~# diff ~/sources.list.old /etc/apt/sources.list | wc -l
38
root@ubuntu:~# diff ~/sources.list.old /etc/apt/sources.list | tail
> deb http://ftp.daumkakao.com/ubuntu/ precise multiverse
> deb-src http://ftp.daumkakao.com/ubuntu/ precise multiverse
> deb http://ftp.daumkakao.com/ubuntu/ precise-updates multiverse
> deb-src http://ftp.daumkakao.com/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.daumkakao.com/ubuntu/ precise-backports main restricted universe multiverse
> deb-src http://ftp.daumkakao.com/ubuntu/ precise-backports main restricted universe multiverse

3 같이 보기[ | ]

4 참고[ | ]

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