Skip to main content

Downloading a Sample

Downloading a Sample

You can download a GitHub repo as a single packaged unit, which you can then uncompress as a directory with multiple files. Choose which method you prefer:

If Git is installed on your machine, you can access the repo by cloning it, as described in Cloning a repository on the GitHub website (https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repositoryOpens in a new tab)

Using a Web Browser to Download a Repo

To download a repo using a web browser:

  1. Go to https://github.com/search?q=topic%3Aintersystems-samplesOpens in a new tab

  2. Scroll through the list of samples until you find the repo you want.

  3. Click the link for that repo. The upper part of the page summarizes the contents, and the lower part displays the README file for the repo.

  4. Click the Clone or download button, visible from the default Code tab. Then click Download ZIP.

  5. The browser downloads a .zip file that contains the full repo. Depending on your browser settings, you may get prompted for a location. If not, check the usual download location for your browser.

  6. Uncompress the .zip file. The uncompressed directory contains a README.md file, a LICENSE file, a buildsample subdirectory, and other files and subdirectories.

Using Linux or UNIX® Command Line to Download a Repo

To download a repo using Linux or UNIX® command line:

  1. Go to https://github.com/search?q=topic%3Aintersystems-samplesOpens in a new tab

  2. Scroll through the list of samples until you find the repo you want, noting the name of the repo. For example, the name of the repo might be Sample-Data. You need this repo name in the next step.

  3. From the shell, type:

    wget -qO- https://github.com/intersystems/repo-name/archive/master.tar.gz | tar xvz -C /samples
    

    where repo-name is the name of the repo you want, and /samples is an existing directory.

  4. Press Enter to download the repo into the /samples directory.

    The uncompressed directory contains a README.md file, a LICENSE file, a buildsample subdirectory, and other files and subdirectories.

FeedbackOpens in a new tab