“UbuntuHelp:AptGet/Offline/Repository”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第3行: | 第3行: | ||
You can store an online repository in a USB keydrive or other local storage, to use it offline. | You can store an online repository in a USB keydrive or other local storage, to use it offline. | ||
=== Components === | === Components === | ||
− | As you can see in the page [[ | + | 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 === | === 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 | + | 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 | ||
* Release.gpg | * Release.gpg | ||
第19行: | 第19行: | ||
* And in /home/repository/dists/karmic/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 [[ | + | Use '''Applications -> Add/Remove''' as explained in [[Repositories/Ubuntu]] to add the offline repository, stored in the /home/repository directory : |
<pre><nowiki> | <pre><nowiki> | ||
deb file:///home/repository SuiteCodename main restricted universe multiverse | deb file:///home/repository SuiteCodename main restricted universe multiverse | ||
</nowiki></pre> | </nowiki></pre> | ||
Where: | Where: | ||
− | * | + | * 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 === | ||
− | * [[ | + | * [[Repositories/Ubuntu]] |
− | * [[ | + | * [[Repositories/Personal]] |
− | * [[ | + | * [[Synaptic/Offline]] |
---- | ---- | ||
[[category:CategoryOffline]] [[category:CategoryPackageManagement]] | [[category:CategoryOffline]] [[category:CategoryPackageManagement]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 16:46的版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
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).