Difference between revisions of "Making a Custom Package CD"

From ArchWiki
Jump to: navigation, search
Line 2: Line 2:
 
[[Category:HOWTOs (English)]]
 
[[Category:HOWTOs (English)]]
  
If you wish to copy some packages from one Arch Linux computer to another (for example, with a slow Internet connection) by using a custom CD, do the following:
+
如果你希望去拷贝现有系统的包到其它系统 (比如网络连接很慢时候) 可以使用一个定制的CD, 操作见下:
  
* Create a repository of packages using gensync [[Custom local repository with ABS and gensync]]. Copy the packages from <code>/var/cache/pacman/pkg</code> on the updated Arch Linux system.
+
* 使用gensync命令建立包仓库 [[Custom local repository with ABS and gensync]]. <code>/var/cache/pacman/pkg</code> 目录拷贝最新的包文件.
  
* Create an iso of the repository on a CD-R or CD-RW
+
* CD-R CD-RW 把包仓库刻录到光盘上
  
* Mount the CD on the second Arch Linux computer
+
* 把CD挂到新的Arch Linux系统上
  
* Add a custom repository to <code>/etc/pacman.conf</code>:
+
* 把定制的仓库加入到 <code>/etc/pacman.conf</code>:
 
   <pre>
 
   <pre>
 
   [[mycd]]
 
   [[mycd]]
Line 16: Line 16:
 
   </pre>
 
   </pre>
  
Another option is to simply copy the files from the CD into <code>/var/cache/pacman/pkg</code> on the second computer. Pacman will retreive the packages from there instead of the net if the files are up to date.
+
另外的方法只是简单的从CD中把文件拷贝到新系统的<code>/var/cache/pacman/pkg</code>目录中.如果文件是最新的Pacman将从本地来安装文件而不用从网络上再下载.
  
Yet another option is to create a custom install CD as in http://bbs.archlinux.org/viewtopic.php?t=1387
+
还有些其它方法建立定制的安装CD参见:http://bbs.archlinux.org/viewtopic.php?t=1387

Revision as of 08:45, 13 November 2007


如果你希望去拷贝现有系统的包到其它系统 (比如网络连接很慢时候) 可以使用一个定制的CD, 操作见下:

  • 用 CD-R 或 CD-RW 把包仓库刻录到光盘上
  • 把CD挂到新的Arch Linux系统上
  • 把定制的仓库加入到 /etc/pacman.conf:
  [[mycd]]
  Server = file:///mnt/cd/pkg
  

另外的方法只是简单的从CD中把文件拷贝到新系统的/var/cache/pacman/pkg目录中.如果文件是最新的Pacman将从本地来安装文件而不用从网络上再下载.

还有些其它方法建立定制的安装CD参见:http://bbs.archlinux.org/viewtopic.php?t=1387