mirror of https://github.com/pikvm/pikvm
update
parent
c1d4d09fad
commit
3b8edefc4d
@ -1,20 +1,22 @@
|
|||||||
To update, run following commands under the `root` user:
|
??? example "Updating PiKVM OS"
|
||||||
|
|
||||||
```console
|
To update, run following commands under the `root` user:
|
||||||
[root@pikvm ~]# rw
|
|
||||||
[root@pikvm ~]# pacman -Syu
|
|
||||||
[root@pikvm ~]# reboot
|
|
||||||
```
|
|
||||||
|
|
||||||
If you encounter any error during the upgrade, it is most likely due to the upgrade of the Arch Linux ARM repository upstream.
|
```console
|
||||||
In this case, just use our script, which fixes this:
|
[root@pikvm ~]# pikvm-update
|
||||||
|
```
|
||||||
|
|
||||||
```console
|
If you encounter an error like:
|
||||||
[root@pikvm ~]# curl https://files.pikvm.org/update-os.sh | bash
|
|
||||||
```
|
|
||||||
|
|
||||||
Next time you will be able to use the usual method with `pacman -Syu`.
|
```console
|
||||||
|
[root@pikvm ~]# pikvm-update
|
||||||
|
bash: pikvm-update: command not found
|
||||||
|
```
|
||||||
|
|
||||||
Pacman saves all installed packages in a compressed format so that you can roll back to the old version if something goes wrong.
|
It's most likely you have an old OS release. You can update the OS as follows:
|
||||||
After you've updated and made sure everything works, it makes sense to clear the package cache so that it doesn't take up space
|
|
||||||
on the SD card (under the `root`): `rw; rm -rf /var/cache/pacman/pkg; ro`.
|
```console
|
||||||
|
[root@pikvm ~]# curl https://files.pikvm.org/update-os.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
Next time you will be able to use the usual method with `pikvm-update`.
|
||||||
|
Loading…
Reference in New Issue