home-assistant.github.io/source/_docs/hassbian/upgrading.markdown
Fredrik Lindqvist 50f9af291b Re-add updating Home Assistant instructions
Updating Home Assistant instructions got lost with the reworked guides.
2017-03-01 17:39:45 +01:00

1.2 KiB

layout title description date sidebar comments sharing footer redirect_from
page Upgrading Hassbian Instructions how to upgrade Hasbian to the latest version. 2016-09-26 21:00 true false true true /getting-started/hassbian-upgrading/

HASSbian is based on Raspbian and uses the same repositories. Any changes to Raspbian will be reflected in HASSbian. To update and upgrade system packages and installed software (excluding Home Assistant) do the following. Log in as the pi account and execute the following commands:

$ sudo apt-get update
$ sudo apt-get -y upgrade

{% linkable_title Updating Home Assistant %}

To update the Home Assistant installation execute the following command as the pi user.

$ sudo systemctl stop homeassistant@homeassistant.service
$ sudo su -s /bin/bash homeassistant
$ source /srv/homeassistant/bin/activate
$ pip3 install --upgrade homeassistant
$ exit
$ sudo systemctl start homeassistant@homeassistant.service

{% linkable_title Upgrading the hassbian-scripts %}

To update the hassbian-scripts directory execute the following command as the pi user.

$ cd /home/pi/hassbian-scripts
$ git pull