个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第3行: 第3行:
 
If you cannot use the DVD images for some reason or want to help a friend with low internet bandwidth,
 
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:
 
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.  
 
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
 
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)
 
2. Put them all in one directory (preferable inside your home folder)
 
 
3. Open a terminal window via Applications > Tools > Terminal
 
3. Open a terminal window via Applications > Tools > Terminal
 
 
4. Use the "ls" and "cd" commands jumping to the regarding directory
 
4. Use the "ls" and "cd" commands jumping to the regarding directory
 
 
5. Type "dpkg-scanpackages . /dev/null | gzip > Packages.gz"
 
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"
 
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:
 
Don't worry if you get this kind of errors:
 
 
Example:
 
Example:
 
 
! Package firefox (filename ./firefox_1.5.dfsg+1.5.0.12-0ubuntu0.6.06.1_i386.deb) is repeat but newer version;
 
! 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 !
 
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:
 
this just means that:
 
 
"firefox_1.5.dfsg+1.5.0.11-0ubuntu0.6.06.1_i386.deb" package version
 
"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:
 
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
 
"firefox_1.5.dfsg+1.5.0.12-0ubuntu0.6.06.1_i386.deb" package version
 
 
will be added to the package list.
 
will be added to the package list.
 
 
6. Burn the directory on CD.
 
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.
 
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.
 
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!
 
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月30日 (五) 20:57的版本

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!