.nbm files for offline install

The “updatecenter” mechanism is from Netbeans: How to download and install updates (nbm files) offline. Basically, you need to maintain “clones” of the two updatecenter folders. The updates.xmlfiles contain the URL’s of the updates. Marpet suggested using a web download tool. What I do is extract the URLS and feed those to wget:

gzip -dk updates.xml.gz
grep 'distribution.*\.nbm' updates.xml | \
gawk -v FS='[<> =]' -v OFS=/  -vURL="${baseurl}" \
    '{print URL, $8}' |tr -d \" > wget.list
wget -nv -N  -i wget.list

The updatecenter folders are on a local file server and can be used to update linux, Windows, and Mac installations.
In practice, however, SNAP downloads DEM’s “on demand” so can be painful to use with a slow internet connection.

2 Likes