9f702493 |
# What is OSTree and RPM-OSTree? |
a522e415 |
OSTree is a tool for managing bootable, immutable, versioned filesystem trees.
## Photon RPM-OSTree Server |
9f702493 |
During installation from the Photon OS ISO, you can select the `Photon RPM-OSTree Server` option to install Photon OS with the RPM-OSTree components and a minimal repository from which RPM-OSTree Hosts can be created. |
a522e415 |
|
9f702493 |
On RPM-OSTree Server the repo is created at the following location: |
a522e415 |
```
/srv/rpm-ostree/repo
``` |
9f702493 |
Here is the base configuration file that creates the repo: |
a522e415 |
```
/srv/rpm-ostree/photon-base.json
``` |
9f702493 |
### Updating RPM-OSTree Repo Image |
a522e415 |
|
9f702493 |
You can add or remove packages from the `photon-base.json` file and then run following commands to update the repo with a new commit: |
a522e415 |
```
cd /srv/rpm-ostree
rpm-ostree compose tree --repo=/srv/rpm-ostree/repo photon-base.json
``` |
9f702493 |
The command above creates a new commit that contains your package-related changes. |
a522e415 |
## RPM-OSTree Host
|
9f702493 |
OSTree host is an installation of Photon OS that retrieves the images from RPM-OSTree server during installation. It can get atomic updates from the same server during its lifecycle. |
a522e415 |
|
9f702493 |
## Upgrading the Host Installations |
a522e415 |
|
9f702493 |
Host machines created from RPM-OSTree server can run the following commands to upgrade their host machine to the latest version from the RPM-OSTree server:
rpm-ostree upgrade
systemctl reboot |
a522e415 |
|