个人工具

“UbuntuHelp:PackageCDs”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/PackageCDs}} {{Languages|UbuntuHelp:PackageCDs}} If you cannot use the DVD images for some reason or want to help a friend with low internet bandw...)
 
第4行: 第4行:
 
here is a simple way to make your own transportable package CD:
 
here is a simple way to make your own transportable package CD:
  
1. Download all needed packages
+
0. Before following up check (i.e. the Synaptic package manager) if the "dpkg-dev" package is installed on your system.  
  
2. Put them all in one directory
+
1. Download all needed packages you wanna backup or add to the package cd
  
3. Open a terminal window, cd to the directory
+
2. Put them all in one directory (preferable inside your home folder)
  
4. Type "dpkg-scanpackages . /dev/null | gzip > Packages.gz"
+
3. Open a terminal window via Applications > Tools > Terminal
  
5. Burn the directory on CD
+
4. Use the "ls" and "cd" commands jumping to the regarding directory
  
You can later add the CD as a package source with "sudo apt-cdrom add".
+
5. Type "dpkg-scanpackages . /dev/null | gzip > Packages.gz"
 +
 
 +
If the "dpkg-dev" package is missed you will get the system error "dpkg-scanpackages : command not found"
 +
 
 +
Don't worry if you get this kind of errors:
 +
 
 +
Example:
 +
 
 +
! Package firefox (filename ./firefox_1.5.dfsg+1.5.0.12-0ubuntu0.6.06.1_i386.deb) is repeat but newer version;
 +
used that one and ignored data from ./firefox_1.5.dfsg+1.5.0.11-0ubuntu0.6.06.1_i386.deb !
 +
 
 +
this just means that:
 +
 
 +
"firefox_1.5.dfsg+1.5.0.11-0ubuntu0.6.06.1_i386.deb" package version
 +
 
 +
will not be added to the package list. Instead of the newer:
 +
 
 +
"firefox_1.5.dfsg+1.5.0.12-0ubuntu0.6.06.1_i386.deb" package version
 +
 
 +
will be added to the package list.
 +
 
 +
6. Burn the directory on CD.
 +
 
 +
You can later add the CD as a package source with "sudo apt-cdrom add" or via the Synaptic package manager.
 +
 
 +
By default, the Synaptic package manager stores upgraded/downloaded packages at the "/var/cache/apt/archives/" location. If you wanna make a package cd of this files you should copy  "/var/cache/apt/archives/" to another folder. After proceeding follow up with step 3 like mentioned above.
 +
 
 +
It is not necessary to use the "sudo" command to run "dpkg-scanpackages . /dev/null | gzip > Packages.gz" for folders located inside your home folder!
  
 
[[category:CategoryDocumentation]]
 
[[category:CategoryDocumentation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月21日 (三) 18:24的版本

If you cannot use the DVD images for some reason or want to help a friend with low internet bandwidth, here is a simple way to make your own transportable package CD:

0. Before following up check (i.e. the Synaptic package manager) if the "dpkg-dev" package is installed on your system.

1. Download all needed packages you wanna backup or add to the package cd

2. Put them all in one directory (preferable inside your home folder)

3. Open a terminal window via Applications > Tools > Terminal

4. Use the "ls" and "cd" commands jumping to the regarding directory

5. Type "dpkg-scanpackages . /dev/null | gzip > Packages.gz"

If the "dpkg-dev" package is missed you will get the system error "dpkg-scanpackages : command not found"

Don't worry if you get this kind of errors:

Example:

! Package firefox (filename ./firefox_1.5.dfsg+1.5.0.12-0ubuntu0.6.06.1_i386.deb) is repeat but newer version; used that one and ignored data from ./firefox_1.5.dfsg+1.5.0.11-0ubuntu0.6.06.1_i386.deb !

this just means that:

"firefox_1.5.dfsg+1.5.0.11-0ubuntu0.6.06.1_i386.deb" package version

will not be added to the package list. Instead of the newer:

"firefox_1.5.dfsg+1.5.0.12-0ubuntu0.6.06.1_i386.deb" package version

will be added to the package list.

6. Burn the directory on CD.

You can later add the CD as a package source with "sudo apt-cdrom add" or via the Synaptic package manager.

By default, the Synaptic package manager stores upgraded/downloaded packages at the "/var/cache/apt/archives/" location. If you wanna make a package cd of this files you should copy "/var/cache/apt/archives/" to another folder. After proceeding follow up with step 3 like mentioned above.

It is not necessary to use the "sudo" command to run "dpkg-scanpackages . /dev/null | gzip > Packages.gz" for folders located inside your home folder!