Upgrading Positron
Overview
Posit Workbench includes a CLI tool that lets administrators upgrade Positron independently of Workbench package upgrades. This is useful for deploying new Positron releases without waiting for or performing a full Workbench upgrade.
Installation layout
Workbench installs Positron versions under /usr/lib/rstudio-server/bin/positron-server/. The bundled/ directory contains the version shipped with your Workbench package, and the CLI stores each additionally installed version in its own versioned directory:
- /usr/lib/rstudio-server/bin/positron-server/
- bundled/ - Version shipped with Workbench
- bin/
- positron-server
- bin/
- 2026.04.0-55/ - Installed via CLI
- bin/
- positron-server
- bin/
- bundled/ - Version shipped with Workbench
Version selection
Workbench automatically detects which Positron version to use. You do not need to change any configuration after upgrading. The resolution order is:
- The
WORKBENCH_POSITRON_PATHenvironment variable, if set - The
exeoption in/etc/rstudio/positron.conf, if configured - The most recent version found by scanning all subdirectories (including
bundled/) under the installation directory
Upgrade procedure
Install a specific version
To download and install a specific Positron version:
sudo rstudio-server upgrade positron --version 2026.02.0-109Restart Workbench
After upgrading, restart Workbench so that new sessions use the updated version:
sudo rstudio-server restartThe upgrade does not affect existing running sessions. Users must start a new session to use the upgraded version.
Verifying the installation
Check the currently active Positron version:
sudo rstudio-server positron-versionList all installed versions by inspecting the installation directory:
ls /usr/lib/rstudio-server/bin/positron-server/Advanced options
Force reinstall
To reinstall a version that is already present (performing a clean reinstall):
sudo rstudio-server upgrade positron --version 2026.02.0-109 --forceKubernetes deployments
In Kubernetes deployments, you upgrade Positron by changing the version in your Helm chart values and redeploying. A standalone Positron init container delivers the binaries to both the server pod and session pods at startup. The CLI tool described above is not used in this environment.
This section assumes you are using the Workbench Helm chart to manage your deployment. For a full list of available chart values, see the chart README.
Helm chart configuration
To enable a specific Positron version, set components.positron.version in your values.yaml, yaml components: positron: version: "2026.04.0-269"
This value controls both the init container image tag and the server-side mount path where Positron binaries are installed.
To upgrade to a newer Positron version, update the version and run helm upgrade:
helm upgrade my-release rstudio/rstudio-workbench -f values.yamlExisting running sessions are not affected by the upgrade. Users must start a new session to use the updated version.
How it works
When components.positron.version is set, the Helm chart:
- Runs a Positron init container on the server pod that copies Positron binaries to an
emptyDirvolume mounted at/usr/lib/rstudio-server/bin/positron-server/{version}. - Configures
rserver.confso the launcher injects the same Positron init container into session pods, making the binaries available to user sessions.
The Positron init container works alongside the existing session init container (rstudio/workbench-session-init), which delivers Workbench session components. For more information on session init containers, see Session init container.
Private registry / air-gapped environments
If your environment cannot pull images from Docker Hub, you can host the Positron init container image in an internal registry.
Pull the official image from Docker Hub:
docker pull rstudio/workbench-positron-init:2026.04.0-269Tag the image for your internal registry:
docker tag rstudio/workbench-positron-init:2026.04.0-269 my-registry.example.com/workbench-positron-init:2026.04.0-269Push the image to your internal registry:
docker push my-registry.example.com/workbench-positron-init:2026.04.0-269Override the image repository in your
values.yaml:components: positron: version: "2026.04.0-269" image: repository: "my-registry.example.com/workbench-positron-init"
Managing versions
Cleaning up old versions
Use the positron cleanup subcommand to remove old non-bundled versions. The bundled version is never removed.
sudo rstudio-server positron cleanupThis lists the versions that will be removed and prompts for confirmation. To preserve a specific version alongside bundled:
sudo rstudio-server positron cleanup --keep 2026.02.0-109To preview which versions would be removed without removing them:
sudo rstudio-server positron cleanup --dry-runBefore confirming, verify that the versions being removed are not in use by the server or any active sessions. Check the active version with sudo rstudio-server positron-version.
Workbench package upgrades
When you upgrade the Workbench package itself (e.g., via apt or yum):
- The new package replaces the
bundled/directory with its included version. - Versions you installed via the CLI persist and remain available.
Reverting to the bundled version
To revert to using only the version bundled with Workbench, remove the CLI-installed version directories:
sudo rm -rf /usr/lib/rstudio-server/bin/positron-server/2026.02.0-109/After removing the extra versions, restart Workbench:
sudo rstudio-server restartWorkbench will fall back to the bundled/ version per the version selection order.
Install from a local archive
You can install Positron from a locally available archive file instead of having the CLI download it automatically. This is useful in air-gapped or offline environments, or networks with restricted outbound access.
Download the archive
On a machine with internet access, download the Positron archive from the Posit CDN. Archives follow this URL pattern:
https://cdn.posit.co/positron/releases/pwb/{arch}/positron-workbench-linux-{arch_abrv}-{version}.tar.gz
Replace {version} with the target version (e.g., 2026.02.0-109) and use the architecture values from the table below:
| Architecture | {arch} (URL path) |
{arch_abrv} (filename) |
|---|---|---|
| x86_64 | x86_64 |
x64 |
| arm64 | arm64 |
arm64 |
For example, to download version 2026.02.0-109:
curl -O https://cdn.posit.co/positron/releases/pwb/x86_64/positron-workbench-linux-x64-2026.02.0-109.tar.gzcurl -O https://cdn.posit.co/positron/releases/pwb/arm64/positron-workbench-linux-arm64-2026.02.0-109.tar.gzDownload the docs bundle (optional)
Docs bundles are architecture-independent and available at:
https://cdn.posit.co/positron/releases/docs/positron-workbench-docs-{version}.zip
For example:
curl -O https://cdn.posit.co/positron/releases/docs/positron-workbench-docs-2026.02.0-109.zipInstall the archive
After transferring the files to the target server, install with --file:
sudo rstudio-server upgrade positron --file /path/to/positron-workbench-linux-x64-2026.02.0-109.tar.gzTo also install a local docs bundle, add --docs-file:
sudo rstudio-server upgrade positron \
--file /path/to/positron-workbench-linux-x64-2026.02.0-109.tar.gz \
--docs-file /path/to/positron-workbench-docs-2026.02.0-109.zipTo install only the docs bundle for an already-installed version:
sudo rstudio-server upgrade positron --docs-file /path/to/positron-workbench-docs-2026.02.0-109.zip --version 2026.02.0-109Troubleshooting
Version not detected after upgrade
If positron-version does not report the expected version after upgrading:
- Verify the version directory exists under
/usr/lib/rstudio-server/bin/positron-server/. - Check that the
exeoption in/etc/rstudio/positron.confis not set to a hardcoded path pointing to a different version. Ifexeis set, it takes precedence over auto-detection. - Restart Workbench with
sudo rstudio-server restart.
Download failures
If the download fails during an upgrade:
- Verify the server has outbound internet access to Positron’s CDN.
- Check proxy settings if your environment requires an outbound proxy.
- Use
--fileto install from a locally downloaded archive as a workaround.
Permission errors
The upgrade positron command requires root privileges. Always run with sudo:
sudo rstudio-server upgrade positron --version <version>