个人工具

“UbuntuHelp:AptGet/Offline/Repository”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第6行: 第6行:
 
=== Download the online repository ===
 
=== Download the online repository ===
 
You can download the packages in a USB keydrive in a computer with Internet connection and store them in your Ubuntu computer.
 
You can download the packages in a USB keydrive in a computer with Internet connection and store them in your Ubuntu computer.
Go to this web address http://archive.ubuntu.com/ubuntu/dists/ and then to the [[UbuntuHelp:SuiteCodename|SuiteCodename]] of the Ubuntu installed in your hard disk (hardy, gutsy ...) and download the files :
+
Go to this web address http://archive.ubuntu.com/ubuntu/dists/ and then to the [[UbuntuHelp:SuiteCodename|SuiteCodename]] of the Ubuntu installed in your hard disk (intrepid, jaunty, karmic, ...) and download the files :
 
* Release
 
* Release
 
* Release.gpg     
 
* Release.gpg     
 
* And the  Contents files for your architecture (i.e Contents-i386.gz ,if you architecture is i386).
 
* And the  Contents files for your architecture (i.e Contents-i386.gz ,if you architecture is i386).
Later, go to the component (main,  multiverse, restricted, universe) and architecture (i.e. binary-i386/ in /dists/hardy/main/) that you want in your local repository, and download the files:  
+
Later, go to the component (main,  multiverse, restricted, universe) and architecture (i.e. binary-i386/ in /dists/karmic/main/) that you want in your local repository, and download the files:  
 
* Packages.bz2             
 
* Packages.bz2             
 
* Packages.gz               
 
* Packages.gz               
第16行: 第16行:
 
Optionally, you can download the same files for the source directory (its packages are architecture independent).
 
Optionally, you can download the same files for the source directory (its packages are architecture independent).
 
Now, you have to store the files in your local Ubuntu repository in the same order. For example:  
 
Now, you have to store the files in your local Ubuntu repository in the same order. For example:  
* In /home/repository/dists/hardy you would have the files: Contents-i386.gz , Release and Release.gpg     
+
* In /home/repository/dists/karmic you would have the files: Contents-i386.gz , Release and Release.gpg     
* And in /home/repositorydists/hardy/main/binary-i386 the files: Packages.bz2  ,  Packages.gz  and Release   
+
* And in /home/repository/dists/karmic/main/binary-i386 the files: Packages.bz2  ,  Packages.gz  and Release   
 
=== Add the local repository in your sources list ===
 
=== Add the local repository in your sources list ===
 
Use '''Applications -> Add/Remove''' as explained in [[UbuntuHelp:Repositories/Ubuntu|Repositories/Ubuntu]] to add the offline repository, stored in the /home/repository directory :  
 
Use '''Applications -> Add/Remove''' as explained in [[UbuntuHelp:Repositories/Ubuntu|Repositories/Ubuntu]] to add the offline repository, stored in the /home/repository directory :  
第24行: 第24行:
 
</nowiki></pre>
 
</nowiki></pre>
 
Where:
 
Where:
* [[UbuntuHelp:SuiteCodename|SuiteCodename]] is hardy, gutsy ...
+
* [[UbuntuHelp:SuiteCodename|SuiteCodename]] is intrepid, jaunty, karmic ...
 
* You can include some or all the components ( main,  multiverse, restricted, universe).
 
* You can include some or all the components ( main,  multiverse, restricted, universe).
 
=== See also ===
 
=== See also ===

2009年11月17日 (二) 18:32的版本

You can store an online repository in a USB keydrive or other local storage, to use it offline.

Components

As you can see in the page Repositories/Ubuntu, the Ubuntu software repository is organized into four "components", on the basis of the level of support Ubuntu can offer them, and whether or not they comply with Ubuntu's Free Software Philosophy. The components are called Main (officially supported software), Restricted (supported software that is not available under a completely free license), Universe (community-maintained, i.e. not officially supported software) and Multiverse (software that is "not free"). The standard Ubuntu installation is a subset of software available from the main and restricted components.

Download the online repository

You can download the packages in a USB keydrive in a computer with Internet connection and store them in your Ubuntu computer. Go to this web address http://archive.ubuntu.com/ubuntu/dists/ and then to the SuiteCodename of the Ubuntu installed in your hard disk (intrepid, jaunty, karmic, ...) and download the files :

  • Release
  • Release.gpg
  • And the Contents files for your architecture (i.e Contents-i386.gz ,if you architecture is i386).

Later, go to the component (main, multiverse, restricted, universe) and architecture (i.e. binary-i386/ in /dists/karmic/main/) that you want in your local repository, and download the files:

  • Packages.bz2
  • Packages.gz
  • Release

Optionally, you can download the same files for the source directory (its packages are architecture independent). Now, you have to store the files in your local Ubuntu repository in the same order. For example:

  • In /home/repository/dists/karmic you would have the files: Contents-i386.gz , Release and Release.gpg
  • And in /home/repository/dists/karmic/main/binary-i386 the files: Packages.bz2 , Packages.gz and Release

Add the local repository in your sources list

Use Applications -> Add/Remove as explained in Repositories/Ubuntu to add the offline repository, stored in the /home/repository directory :

deb file:///home/repository SuiteCodename main restricted universe multiverse 

Where:

  • SuiteCodename is intrepid, jaunty, karmic ...
  • You can include some or all the components ( main, multiverse, restricted, universe).

See also