使用官方Ubuntu软件库构建DVD镜像

豆豆网   技术应用频道   2007年04月07日  【字号: 收藏本文

本文详细介绍使用官方Ubuntu软件库构建DVD镜像

  --host - the URL of the repository.

  --dist - the distro of your OS (dapper, edgy, sarge, ... ).

  --section - the section you want to mirror locally.

  --arch - the architecture of your box.

  4 Separating the archive into DVD-sized directories

  The repositories we got are too big (about 30Gb) to burn them to a DVD so we have to separate them into volumes.

  The tool debpartial will do it for us.

  sudo apt-get install debpartial

  We make the directory where the volumes will reside.

  mkdir ubuntu-dvd

  and we make it to construct the package descriptors to every volume.

  debpartial --nosource --dirprefix=ubuntu --section=main,universe,multiverse --dist=dapper --size=DVD ubuntu/ ubuntu-dvd/

  Now we have to put the packages into the directories debpartial has just created. The script debcopy which also comes with the debpartial package will do it. The script needs ruby.

  sudo apt-get install ruby

  If everything is ok...

  ruby debcopy ubuntu/ ubuntu-dvd/ubuntu0

  ruby debcopy ubuntu/ ubuntu-dvd/ubuntu1

  ruby debcopy ubuntu/ ubuntu-dvd/ubuntu2

  Where ubuntu/ is the directory with the complete repository created with debmirror and ubuntu-dvd/* are the directories ready to host the new DVD-ready repository.

  If we want to make soft links from the complete repository instead of copying the packages we can call debcopy with the option -l:

作者:ginocic    责编:豆豆技术应用

正在加载评论...