The Wolfram Language’s *Data functions download data paclets from Wolfram data servers. Hence, functions such as CityData and CountryData will not work on computers disconnected from the internet.

It is possible to transfer paclets from an online machine to an offline machine for the following functions:

ChemicalData, CityData, ColorData, CountryData, ElementData, GenomeData, GraphData,
IsotopeData, KnotData, LatticeData, ParticleData, PolyhedronData, ProteinData, WordData.

Downloading paclets to an online machine

  1. Download your paclet of interest (e.g. CityData) to the online machine by evaluating in the Wolfram Language:
     CityData[All, "Preload"]
  2. Install the paclet on the online machine:
     CityData[All, "Install"]
  3. Locate the paclet repository folder by evaluating:
    ToFileName[{$UserBaseDirectory, "Paclets", "Repository"}]

    And identifying the subfolders starting with “CityData” in their names.

Transferring paclets to an offline machine

  1. Copy these folders into the equivalent paclet repository folder on your offline machine. (The corresponding location on the offline computer can be found using the same ToFileName evaluation from above.)
  2. .
  3. Have the offline Wolfram product installation recognize the added data paclets by evaluating:
  4. Finally, evaluate a few examples in the documentation for CityData to verify that the desired data is now available in the Wolfram product on your offline machine.