特殊:Badtitle/NS100:AptGet/Offline
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AptGet/Offline }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/af | • {{#if: UbuntuHelp:AptGet/Offline|Afrikaans| [[::AptGet/Offline/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/ar | • {{#if: UbuntuHelp:AptGet/Offline|العربية| [[::AptGet/Offline/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/az | • {{#if: UbuntuHelp:AptGet/Offline|azərbaycanca| [[::AptGet/Offline/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/bcc | • {{#if: UbuntuHelp:AptGet/Offline|جهلسری بلوچی| [[::AptGet/Offline/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/bg | • {{#if: UbuntuHelp:AptGet/Offline|български| [[::AptGet/Offline/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/br | • {{#if: UbuntuHelp:AptGet/Offline|brezhoneg| [[::AptGet/Offline/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/ca | • {{#if: UbuntuHelp:AptGet/Offline|català| [[::AptGet/Offline/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/cs | • {{#if: UbuntuHelp:AptGet/Offline|čeština| [[::AptGet/Offline/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/de | • {{#if: UbuntuHelp:AptGet/Offline|Deutsch| [[::AptGet/Offline/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/el | • {{#if: UbuntuHelp:AptGet/Offline|Ελληνικά| [[::AptGet/Offline/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/es | • {{#if: UbuntuHelp:AptGet/Offline|español| [[::AptGet/Offline/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/fa | • {{#if: UbuntuHelp:AptGet/Offline|فارسی| [[::AptGet/Offline/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/fi | • {{#if: UbuntuHelp:AptGet/Offline|suomi| [[::AptGet/Offline/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/fr | • {{#if: UbuntuHelp:AptGet/Offline|français| [[::AptGet/Offline/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/gu | • {{#if: UbuntuHelp:AptGet/Offline|ગુજરાતી| [[::AptGet/Offline/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/he | • {{#if: UbuntuHelp:AptGet/Offline|עברית| [[::AptGet/Offline/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/hu | • {{#if: UbuntuHelp:AptGet/Offline|magyar| [[::AptGet/Offline/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/id | • {{#if: UbuntuHelp:AptGet/Offline|Bahasa Indonesia| [[::AptGet/Offline/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/it | • {{#if: UbuntuHelp:AptGet/Offline|italiano| [[::AptGet/Offline/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/ja | • {{#if: UbuntuHelp:AptGet/Offline|日本語| [[::AptGet/Offline/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/ko | • {{#if: UbuntuHelp:AptGet/Offline|한국어| [[::AptGet/Offline/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/ksh | • {{#if: UbuntuHelp:AptGet/Offline|Ripoarisch| [[::AptGet/Offline/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/mr | • {{#if: UbuntuHelp:AptGet/Offline|मराठी| [[::AptGet/Offline/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/ms | • {{#if: UbuntuHelp:AptGet/Offline|Bahasa Melayu| [[::AptGet/Offline/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/nl | • {{#if: UbuntuHelp:AptGet/Offline|Nederlands| [[::AptGet/Offline/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/no | • {{#if: UbuntuHelp:AptGet/Offline|norsk| [[::AptGet/Offline/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/oc | • {{#if: UbuntuHelp:AptGet/Offline|occitan| [[::AptGet/Offline/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/pl | • {{#if: UbuntuHelp:AptGet/Offline|polski| [[::AptGet/Offline/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/pt | • {{#if: UbuntuHelp:AptGet/Offline|português| [[::AptGet/Offline/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/ro | • {{#if: UbuntuHelp:AptGet/Offline|română| [[::AptGet/Offline/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/ru | • {{#if: UbuntuHelp:AptGet/Offline|русский| [[::AptGet/Offline/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/si | • {{#if: UbuntuHelp:AptGet/Offline|සිංහල| [[::AptGet/Offline/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/sq | • {{#if: UbuntuHelp:AptGet/Offline|shqip| [[::AptGet/Offline/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/sr | • {{#if: UbuntuHelp:AptGet/Offline|српски / srpski| [[::AptGet/Offline/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/sv | • {{#if: UbuntuHelp:AptGet/Offline|svenska| [[::AptGet/Offline/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/th | • {{#if: UbuntuHelp:AptGet/Offline|ไทย| [[::AptGet/Offline/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/tr | • {{#if: UbuntuHelp:AptGet/Offline|Türkçe| [[::AptGet/Offline/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/vi | • {{#if: UbuntuHelp:AptGet/Offline|Tiếng Việt| [[::AptGet/Offline/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/yue | • {{#if: UbuntuHelp:AptGet/Offline|粵語| [[::AptGet/Offline/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/zh | • {{#if: UbuntuHelp:AptGet/Offline|中文| [[::AptGet/Offline/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/zh-hans | • {{#if: UbuntuHelp:AptGet/Offline|中文(简体)| [[::AptGet/Offline/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AptGet/Offline | UbuntuHelp:AptGet/Offline | {{#if: | :}}AptGet/Offline}}/zh-hant | • {{#if: UbuntuHelp:AptGet/Offline|中文(繁體)| [[::AptGet/Offline/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AptGet/Offline|:AptGet/Offline|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AptGet/Offline/zh | | {{#ifexist: AptGet/Offline/zh | | {{#ifeq: {{#titleparts:AptGet/Offline|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AptGet/Offline|1|-1|}} | zh | | }}
Terminology commonly used in offline package management:
- Local machine : the offline ubuntu computer
- Remote machine: another computer with broadband Internet connection, used to dowload the packages
- Removable media: USB keydrive where store the scripts and dowloaded packages. Note that the disc should be formated with a filesystem that can handle long file names such as ext2/ext3, fat32 or vfat.
Synaptic
- apt-medium a wrapper script for apt frontends.
- SynapticPackageDownloadScript
- Using Synaptic/Offline.
Command line
- apt-medium
- AptGet/Offline/PrintUris
- AptCdrom , to use the Ubuntu Live Cd as package repository for an older computer.
- AptOff script .
- apt-offline. "apt-offline list" do much better that "apt-get --print-uris", because
It distinguishes the "suites" (backport, multimedia, volatile, stable, testing), and allow you to mix the suites. So if you installed package A from a suite, it will search the updates only on such suite.
Offline repository
How to create a local package repository.
Wget
wget is a computer program that implements simple and powerful content retrieval of files from internet servers
-O
wget -O file
With this -O option, the documents will not be written to the appropriate files, but all will be concatenated together and written to file.
See also
- http://www.fifi.org/doc/apt/offline.html/ch1.html. Related information: awk.
- Sources List update offline and packages without Internet connection.
- Synaptic/Offline