---
name: "ostree-admin-set-origin"
section: "1"
platform: "linux"
package: "ostree"
version: "2026.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ostree-admin-set-origin"
---

# ostree-admin-set-origin(1)

Change the "origin" (location for upgrades)

## NAME

ostree-admin-set-origin - Change the "origin" (location for upgrades)

## SYNOPSIS

**ostree admin set-origin**  {REMOTENAME} {URL} \[BRANCH\]

## DESCRIPTION

Add a new remote named *REMOTENAME* (if it does not already exist). Then change the origin file for the current deployment. This is the ref that will be "tracked" and upgraded with **ostree admin upgrade**.

## OPTIONS

- **--set**=KEY=VALUE

  Set an option for the remote.

- **--index**=INDEX

  Change the origin of the deployment numbered *INDEX* (starting from 0).

## EXAMPLE

**$ ostree admin set-origin exampleos http://os.example.com/repo exampleos/10.0/main/router**
