个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/Synaptic/PackageDownloadScript}} {{Languages|UbuntuHelp:Synaptic/PackageDownloadScript}} Start Synaptic Package Manager (S...)
 
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Synaptic/PackageDownloadScript}}
 
{{From|https://help.ubuntu.com/community/Synaptic/PackageDownloadScript}}
 
{{Languages|UbuntuHelp:Synaptic/PackageDownloadScript}}
 
{{Languages|UbuntuHelp:Synaptic/PackageDownloadScript}}
 +
'''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|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.
第8行: 第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 DownThemAll way =====
 +
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.
 +
[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.
 +
* Include *.deb in fast filtering
 +
And Start !.
 
===== Ubuntu Live CD =====
 
===== Ubuntu Live CD =====
 
You can boot the Ubuntu Live CD and run the ‘ubuntu.sh’ script in a terminal.  
 
You can boot the Ubuntu Live CD and run the ‘ubuntu.sh’ script in a terminal.  
第15行: 第24行:
 
You can use [http://khomsan.ph.googlepages.com/visualwget.wgetforwindows Wget for Windows].
 
You can use [http://khomsan.ph.googlepages.com/visualwget.wgetforwindows Wget for Windows].
 
Don´t forget [http://www.computerhope.com/issues/ch000549.htm 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 )
 
Don´t forget [http://www.computerhope.com/issues/ch000549.htm 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 )
===== HTML way =====
 
You can name the file ‘ubuntu.htm’ (instead of ‘ubuntu.sh’)  and download the files manually (clicking in the links).
 
===== Metalink way =====
 
You can convert the ubuntu.htm to a [http://en.wikipedia.org/wiki/Metalink metalink file].
 
 
==== Downloading in Linux ====
 
==== 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.  
 
It will be convenient if the machine with fast Internet connection runs some flavour of GNU/Linux operating system with wget installed on it.  
第27行: 第32行:
 
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)
 
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 ===
 
=== 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|Synaptic]] Package Manager again and select the same package(s) name(s) that you initially selected. Go to “Add Selected Packages” from the File menu and browse to the folder where you have copied the downloaded files(’Downloads’ folder in our example). Click “Apply” button from the toolbar. The packages will be installed from the local directory without the need to connect to the Internet.
+
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
 +
<pre><nowiki>
 +
sudo dpkg - i *.deb
 +
</nowiki></pre>
 
=== See also ===
 
=== See also ===
 
* http://offline.debian.net/
 
* http://offline.debian.net/

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