How to download and install modules (nbm files) offline?
By karthikr on Jan 11, 2008
Sometimes it is desirable to download nbms offline. As an example usecase, one may wish to update an IDE that is installed on a system without an internet connection (possibly set up that way for security reasons). In such cases, the updates can be obtained offline using a system that does have an internet connection; and the updates then copied over to and applied offline on a system without internet access.
Using the plugin manager (pre-6.0) Note: This section has been supercedd by the FAQ item http://wiki.netbeans.org/FaqDownloadingUCModule
- Connect to the desired Update Center(s) via 'Tools | Update Center'
- Select the required modules in the wizard.
- After the modules are downloaded but before they are
applied: ((For pre-6.0, keep final panel of
AutoUpdate client without selecting Finish button. When a module is updated by the ide, the downloaded nbms are deleted. The trick is to pause after the step where modules are downloaded and the nbms are still on the system but before the downloaded nbms are applied).
- Open a terminal window.
- Look for \*.nbm files. These are usually found in [userdir]/update/download directory. You can also look for \*.nbm files in both NetBeans install and user directories using the operating system's search utilities. (Search in Windows Explorer or 'find' command on Solairs/linux).
- Copy the nbm files to a separate location.
- Dismiss the autoupdate wizard (or of course continue to install the modules).
- This method is preferable (over the method 'using the browser' described below) because:
- The ide will resolve dependencies and automatically add dependent modules to the list of modules to be downloaded.
- In the browser, files need to be saved individually.
- Open the Update Center Content Inspector in the browser and specify the required update center by specifying the NetBeans version and the update center type. (Alternatively, you can also provide the URL for the update center directly).
- In the resulting list, right-click on an nbm and select 'Save As...' to save the file locally.
How to install modules offline?
- Invoke plugin manager via 'Tools | Plugins' (or, for pre-6.0 versions, the AutoUpdate wizard via 'Tools | Update Center' ).
- Select the 'Downloaded' tab in the plugin manager (or for pre-6.0 versions, 'Manually Installed modules' radio button)
- Follow the wizard.
- More info can be obtained from NetBeans 6.0 online help.