---
title: "Updating Rest PKI Core on Linux"
description: "How to update an on-premises Rest PKI Core installation on Linux: download the package, stop the service, replace the files and start it again."
canonical: "https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/linux/update"
locale: "en"
product: "Rest PKI Core"
last_updated: "2026-09-15"
---

# Updating Rest PKI Core on Linux

To update your [on-premises installation](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises) of [Rest PKI Core](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core), follow the steps below:

> **Info**
>
> These instructions assume you are logged in as **root**. If you are not, run `sudo su -` before continuing!

```sh
curl -O https://cdn.lacunasoftware.com/restpkicore/restpkicore-5.0.0.tar.gz
systemctl stop restpkicore
rm -fR /usr/share/restpkicore/*
tar xzf restpkicore-5.0.0.tar.gz -C /usr/share/restpkicore
chmod -R a=,u+rwX,go+rX /usr/share/restpkicore
systemctl start restpkicore
```

## See also

* [Setup on Linux](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/linux)
* [Troubleshooting](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/linux/troubleshoot)
