# Installing and updating Learning courses

Learning can install courses from the official Vibe64 course catalogue
straight from the **Courses** overlay. Nobody needs a terminal for official
courses.

## Where it is

1. Press **L** at the left of the header to switch to Learn mode. With no
   lesson in progress Courses opens by itself; otherwise choose **Courses** at
   the right of the yellow lesson step bar (or in the project menu beside **L**).
2. Its **Courses** tab shows your installed course cards first. Below them is
   the **Course catalogue** section, headed **Install a course**.
3. The catalogue is grouped by **topic** (for example **Vibe64**). Under each
   topic, every course shows its title, release (for example `0.1.10`), a
   **Released** or **Preview** chip, its lesson count and whether it is
   **Installed**, **Not installed**, **Disabled on this server** or has a
   **Conflicting copy installed**. A topic without courses says **No courses in
   this topic yet.** Courses whose catalogue entry names no topic are listed
   under **Other courses**.

When no course is installed yet, the installed area says **No courses are
installed yet. Choose a course in the catalogue below and select Install.**

On a phone the same sections stack in one column and each course's button
fills the row width. On desktop the button sits at the right of the course.

## Installing a course

Select **Install** on a course that is **Not installed**. While it works, the
button shows a spinner and the row reports each step: **Reading the official
catalogue…**, **Downloading and verifying topic 1 of N…**, **Enabling the
course…**, or **Waiting for another course installation to finish…** when
another install is running. You can keep reading other parts of the page; other
course buttons wait until it finishes.

When it succeeds the course card appears among your installed courses and the
catalogue row shows **Installed** with **View course**. Installing a course does
not start a lesson.

What the server does: it rereads the official catalogue, downloads each topic of
that exact course release at the exact Git commit named in the catalogue's lock,
verifies every file byte for byte against that lock, installs the verified copy
and enables the course. It runs no course code. If anything does not match, it
installs nothing new for that topic and enables nothing.

Any signed-in person can install official catalogue courses. The catalogue
location is fixed by the server, so the page can only install the courses it
lists. Courses from other sources remain an owner/operator task (see
[Author a lesson and save its source](lesson-authoring.md)).

### Preview courses

A **Preview** course can be installed so that it is ready, and the row says
**Preview course: it can be installed; until it is released, only the workspace
owner can try its lessons from Courses.** Its installed card keeps the
**Preview course** chip. The workspace owner (on local Vibe64, you) sees
the ordinary **Start lesson** button, which starts the lesson as usual; everyone else
sees the course with the note **Preview — the workspace owner can try it; it
becomes startable when released** and no start button. Installing does not change
this; once the course is released, everyone gets **Start lesson**.

## Updating a course

When the catalogue has a newer release of a course you already have, the
installed course card shows **Update available: <release>** with an **Update**
button, and the catalogue row says **You have <old release>. Updating keeps
your saved lessons and progress.** with the same **Update** button. Both run the
same installation as **Install**, for the newer release.

After an update:

- The new release is installed and enabled, and new lessons start from it.
- The older release of that course is removed from the installed courses, so
  it no longer uses one of the server's 16 places and its card goes away. Its
  lesson content stays installed: a lesson you started in it still shows under
  **Lesson in progress**, with its title, and **Continue lesson** opens the
  exact lesson you started. Lesson history is unchanged.
- Progress carries over. A lesson whose content did not change keeps its
  **Completed** status. A lesson whose content changed shows **Not started**
  (or **In progress**) with the note **Completed in <old release> · updated
  since**, so you can see you finished the earlier version. Completing the new
  version records new progress; the earlier record stays.

### Fix releases

A fix release changes only the last number of the release you have (`0.5.3` →
`0.5.4`). A host can install fix releases by itself, exactly as **Update**
does, with the results above: a lesson in progress keeps its release (its
**Restart** restarts that release too), and lessons started afterwards use the
fix. Its own guide says when it checks. A release that changes the first or
second number still waits for **Update**, and a course disabled on the server
stays as it is. Local Vibe64 does not check by itself: its courses update, fix
releases included, only with **Update**.

## Errors and recovery

The message appears on the course row, and the button becomes **Retry install**
or **Retry update**. Retrying repeats the same request safely; an already
installed course is not installed twice.

- **The official course catalogue … could not be downloaded** (shown in the
  catalogue section, with **Retry**): the server cannot reach GitHub. Installed
  courses keep working. Retry later or ask the operator to check the server's
  internet access.
- **Topic … could not be downloaded …**: the same network problem during
  install. Nothing was enabled; retry.
- **The official course catalogue is invalid …**: the published catalogue is
  wrong. Nothing was installed; the catalogue maintainers must correct it.
- **Course … was disabled on this server, and installing does not enable it
  again**: shown as **Disabled on this server**, with **This release was disabled
  on this server. Installing cannot enable it again; only the server's operator
  can.** Nobody can re-enable it from the page or through Colleague, the
  workspace owner included; the server's operator does it on the server (see
  [Local operator provisioning](../training-content.md#local-operator-provisioning)).
  Nothing was changed.
- **… already keeps 16 installed course releases, its limit**: every installed
  course release uses one of 16 places. Installing or updating needs a free
  place at that moment; an update frees the older release's place only after
  the newer one is installed, so with all 16 in use an update is refused too.
  The server's operator can free a place by removing a release on the server;
  saved lessons keep their content. Nothing was changed.
- **Topic source or installed snapshot conflicts with the approved owner pin** or
  **Conflicting copy installed**: the server holds different content under the
  same release. Nothing is replaced automatically; ask the owner to inspect it.
- **Installing courses from the catalogue is unavailable in this installation**:
  this host has not enabled catalogue installation. Installed courses still work.

**Refresh courses** at the top rereads installed courses, progress and the
catalogue.

## What Colleague can do

Colleague can list the catalogue (`available.list`), explain each course's state,
and offer to install or update a course. It installs or updates only after you
directly ask for that course or accept its offer, using the same server action
as the button, and it reports the real result. It cannot install courses from
other sources, choose a different catalogue, remove a release to free a place
or re-enable a disabled release; those stay with the server's operator.
