![]() |
| 当前位置: > 首页 ->Linux技术 ->发行版专区 ->Debian ->使用apt-mirror构建本地Debian镜像 |
|
On Ubuntu Edgy Eft, the file looks like this:
If you compare the file with /etc/apt/sources.list, you will see that it's very similar. /etc/apt/mirror.list mainly lists the repositories that should be mirrored, plus a few other options. Now we modify /etc/apt/mirror.list. As I said before, I want to mirror the main, contrib, and non-free sections of Debian Sarge and the main, restricted, and universe sections of Ubuntu Edgy Eft, but I don't want to mirror the security updates as these should be downloaded directly from the internet. Also, I don't want to mirror the source packages because in 95% of all installations you don't need source packages, and they need a lot of space on the hard disk. So my /etc/apt/mirror.list looks like this: vi /etc/apt/mirror.list
Please note that I used ftp.de.debian.org instead of ftp.fi.debian.org and de.archive.ubuntu.com instead of archive.ubuntu.com. You should use mirrors that are close to you, so if you are in the U.S., for example, replace de with us, and so on. The cleaning section at the end tells apt-mirror in which directories on the local hard disk it should check to see if hard disk space can be freed. I want to check the whole local repositories for both Debian and Ubuntu, therefore I specify clean http://ftp.de.debian.org/ If you want to use other Debian/Ubuntu versions, simply replace sarge with etch or sid and edgy with breezy, dapper, etc. 5 Create The Local RepositoriesNow that apt-mirror is configured, it's time to run it for the first time and download all the packages that form the local Debian and Ubuntu repository. All we have to do is type su - apt-mirror -c apt-mirror apt-mirror tells you how many GB it must download. This can take a few hours, so be patient. The packages will be stored in subdirectories of the /var/spool/apt-mirror/mirror directory, so make sure the partition that holds that directory has enough disk space left. The Debian repository will be in 上一篇:Debian On Slug的安装笔记 下一篇:Debian4(Etch)系统简要安装详细介绍 | |||||||||||||||||||||||||||||||
| 【文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论】 | ||||||||||||||||||||||||||||||||
| ·《Debian服务器设置入门》系列教程 前言 | · Debian GNU/Linux 完全安装手册· Debian On Slug的安装笔记· 在 debian 上玩 dos 游戏·菜鸟乐园 Debian GNU/Linux的安装过程 ·Debian GNU/Linux Rssh安全绕过漏洞 ·Debian4(Etch)系统简要安装详细介绍 ·使用apt-mirror构建本地Debian镜像 ·Debian On Slug的安装笔记 ·Debian+vsftpd+MySQL实现虚拟用户||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。 |
||||||||||||||||||||||||||||||||