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)]]
  
如果你希望去拷贝现有系统的包到其它系统 (比如网络连接很慢时候) 可以使用一个定制的CD, 操作见下:
+
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:  
  
* 使用gensync命令建立包仓库 [[Custom local repository with ABS and gensync]]. 从<code>/var/cache/pacman/pkg</code> 目录拷贝最新的包文件.
+
Create a repository of packages using gensync Custom local repository with ABS and gensync. Copy the packages from /var/cache/pacman/pkg on the updated Arch Linux system.  
 
+
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
 
+
Add a custom repository to /etc/pacman.conf:  
* 把CD挂到新的Arch Linux系统上
+
 
+
* 把定制的仓库加入到 <code>/etc/pacman.conf</code>:
+
  <pre>
+
 
   [[mycd]]
 
   [[mycd]]
 
   Server = file:///mnt/cd/pkg
 
   Server = file:///mnt/cd/pkg
   </pre>
+
   Another option is to simply copy the files from the CD into /var/cache/pacman/pkg 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将从本地来安装文件而不用从网络上再下载.
+
  
还有些其它方法建立定制的安装CD参见:http://bbs.archlinux.org/viewtopic.php?t=1387
+
Yet another option is to create a custom install CD as in http://bbs.archlinux.org/viewtopic.php?t=1387

Revision as of 08:48, 13 November 2007


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:

Create a repository of packages using gensync Custom local repository with ABS and gensync. Copy the packages from /var/cache/pacman/pkg on the updated Arch Linux system. Create an iso of the repository on a CD-R or CD-RW Mount the CD on the second Arch Linux computer Add a custom repository to /etc/pacman.conf:

 mycd
 Server = file:///mnt/cd/pkg
 Another option is to simply copy the files from the CD into /var/cache/pacman/pkg on the second computer. Pacman will retreive the packages from there instead of the net if the files are up to date. 

Yet another option is to create a custom install CD as in http://bbs.archlinux.org/viewtopic.php?t=1387