Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Full automatic update of a Debian/Ubuntu Node-Red server
sudo apt-get -y update
sudo apt-get -y install deborphan > /dev/null 2>&1
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
deborphan -sz
sudo apt-get -y autoremove
sudo apt-get -y remove --purge $(deborphan)
sudo apt-get -y clean
sudo chown -R pi.pi ~/.node-red/node_modules
sudo npm -s cache clean
sudo npm -s install -g --unsafe-perm node-red
cd ~/.node-red
sudo npm i -g npm-check-updates
ncu -u
npm install
npm outdated
# npm -s update
npm -s rebuild
cd ~/homeassistant/
source bin/activate
python3.6 -m pip install --upgrade homeassistant
sudo systemctl restart home-assistant@pi.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.