个人工具

“UbuntuHelp:Synaptic/PackageDownloadScript”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
第3行: 第3行:
 
'''Note:''' You can download old packages this way but you can not get any updated packages. Check [http://wiki.debian.org/AptMedium apt-medium] on how to get the apt-tools to work on offline systems.
 
'''Note:''' You can download old packages this way but you can not get any updated packages. Check [http://wiki.debian.org/AptMedium apt-medium] on how to get the apt-tools to work on offline systems.
 
---
 
---
Start [[UbuntuHelp:Synaptic]] Package Manager (SPM). Mark all the applications that you want to install/upgrade in the usual way.
+
Start [[UbuntuHelp:Synaptic|Synaptic]] Package Manager (SPM). Mark all the applications that you want to install/upgrade in the usual way.
 
After that, instead of clicking the “Apply” button from the toolbar as you would normally do, go to the File menu and select “Generate Package Download Script” menu option to generate the download script.
 
After that, instead of clicking the “Apply” button from the toolbar as you would normally do, go to the File menu and select “Generate Package Download Script” menu option to generate the download script.
 
A dialog box will prompt to save the generated script file. Give it a name like ‘ubuntu.sh’ and click the “Save” button. This script file needs to be carried to a machine which has a fast Internet connection and it needs to be executed there.  
 
A dialog box will prompt to save the generated script file. Give it a name like ‘ubuntu.sh’ and click the “Save” button. This script file needs to be carried to a machine which has a fast Internet connection and it needs to be executed there.  
第10行: 第10行:
 
==== Downloading in Windows ====
 
==== Downloading in Windows ====
 
The first line need to be removed if the script is to be run on a Windows machine.  
 
The first line need to be removed if the script is to be run on a Windows machine.  
===== Linkification and [[UbuntuHelp:DownThemAll|DownThemAll]] way =====
+
===== Linkification and DownThemAll way =====
 
This is the easiest way. You can install two plug-in for Mozilla Firefox.
 
This is the easiest way. You can install two plug-in for Mozilla Firefox.
 
The first one is [https://addons.mozilla.org/en-US/firefox/addon/190 Linkification] to convert text links into genuine, clickable links.
 
The first one is [https://addons.mozilla.org/en-US/firefox/addon/190 Linkification] to convert text links into genuine, clickable links.
[https://addons.mozilla.org/en-US/firefox/addon/201 [[UbuntuHelp:DownThemAll|DownThemAll]] plug-in] is a download manager/accelerator. When downloaded and installed, go to Tools > DownThemAll > >downthemall:  
+
[https://addons.mozilla.org/en-US/firefox/addon/201 DownThemAll plug-in] is a download manager/accelerator. When downloaded and installed, go to Tools > [[UbuntuHelp:DownThemAll|DownThemAll]] > >downthemall:  
 
* Save files in your USB keydrive.
 
* Save files in your USB keydrive.
 
* Include *.deb in fast filtering
 
* Include *.deb in fast filtering
第33行: 第33行:
 
=== Installation ===
 
=== Installation ===
 
Once the downloads are finished, carry all the downloaded files to the Ubuntu machine and copy them to a new folder (say 'Downloads') in the home directory.  
 
Once the downloads are finished, carry all the downloaded files to the Ubuntu machine and copy them to a new folder (say 'Downloads') in the home directory.  
Start [[UbuntuHelp:Synaptic]] Package Manager again and select the same package(s) name(s) that you initially selected. Go to “Add downloaded packages” from the File menu, notice that the window that pops up is titled "Select directory" not "Select file(s)", you do not select individual package files but the directory which contains them. Therefore you should browse to the directory which contains 'Downloads', click once on 'Downloads' to select it, then click Open. Synaptic will then scan the selected directory for packages and offer to install them.
+
Start [[UbuntuHelp:Synaptic|Synaptic]] Package Manager again and select the same package(s) name(s) that you initially selected. Go to “Add downloaded packages” from the File menu, notice that the window that pops up is titled "Select directory" not "Select file(s)", you do not select individual package files but the directory which contains them. Therefore you should browse to the directory which contains 'Downloads', click once on 'Downloads' to select it, then click Open. Synaptic will then scan the selected directory for packages and offer to install them.
 
It is similar to use  
 
It is similar to use  
 
<pre><nowiki>
 
<pre><nowiki>
第42行: 第42行:
 
* https://launchpad.net/distros/ubuntu/+spec/offline-updater
 
* https://launchpad.net/distros/ubuntu/+spec/offline-updater
 
* https://wiki.ubuntu.com/CDRomBasedUpgradesSpec
 
* https://wiki.ubuntu.com/CDRomBasedUpgradesSpec
* [[UbuntuHelp:AptGet/Offline]]
+
* [[UbuntuHelp:AptGet/Offline|AptGet/Offline]]
 
----
 
----
 
[[category:CategoryPackageManagement]] [[category:CategoryOffline]]
 
[[category:CategoryPackageManagement]] [[category:CategoryOffline]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年10月20日 (一) 00:43的最新版本

Note: You can download old packages this way but you can not get any updated packages. Check apt-medium on how to get the apt-tools to work on offline systems. --- Start Synaptic Package Manager (SPM). Mark all the applications that you want to install/upgrade in the usual way. After that, instead of clicking the “Apply” button from the toolbar as you would normally do, go to the File menu and select “Generate Package Download Script” menu option to generate the download script. A dialog box will prompt to save the generated script file. Give it a name like ‘ubuntu.sh’ and click the “Save” button. This script file needs to be carried to a machine which has a fast Internet connection and it needs to be executed there.

Downloading

You can download or save the files to a USB keydrive

Downloading in Windows

The first line need to be removed if the script is to be run on a Windows machine.

Linkification and DownThemAll way

This is the easiest way. You can install two plug-in for Mozilla Firefox. The first one is Linkification to convert text links into genuine, clickable links. DownThemAll plug-in is a download manager/accelerator. When downloaded and installed, go to Tools > DownThemAll > >downthemall:

  • Save files in your USB keydrive.
  • Include *.deb in fast filtering

And Start !.

Ubuntu Live CD

You can boot the Ubuntu Live CD and run the ‘ubuntu.sh’ script in a terminal. This can be impractical if you has no administrator´s permissions to access to the Internet using the Live CD.

Windows Wget way

The first line need to be removed if the script is to be run on a Windows machine and rename to file to ubuntu.bat You can use Wget for Windows. Don´t forget set the path to the folder where wget.exe is. You can also put wget.exe in c:\wgetdir\ ( edit the script with a text editor and replace all references to wget with c:\wgetdir\wget )

Downloading in Linux

It will be convenient if the machine with fast Internet connection runs some flavour of GNU/Linux operating system with wget installed on it. Start a shell/command prompt, change to the directory where you want to store the files to downloaded and run the script as shown:

sh ubuntu.sh

An alternative way using the file manager (Nautilus), is to move the script to the directory where you want to store the files to dowload and click in the script file (ubuntu.sh)

Installation

Once the downloads are finished, carry all the downloaded files to the Ubuntu machine and copy them to a new folder (say 'Downloads') in the home directory. Start Synaptic Package Manager again and select the same package(s) name(s) that you initially selected. Go to “Add downloaded packages” from the File menu, notice that the window that pops up is titled "Select directory" not "Select file(s)", you do not select individual package files but the directory which contains them. Therefore you should browse to the directory which contains 'Downloads', click once on 'Downloads' to select it, then click Open. Synaptic will then scan the selected directory for packages and offer to install them. It is similar to use

sudo dpkg - i *.deb

See also