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

This comment has been minimized.

Copy link

@fritserasmus fritserasmus commented May 6, 2020

Frago Linux,
In the script you included "homeassistant".
I am not using homeassistant.
Shall I just ignore lines 21 - 24?
My environment:
Node-RED version: v0.18.7
Node.js version: v4.2.6
Ubuntu 16.04.4 LTS


This comment has been minimized.

Copy link
Owner Author

@fragolinux fragolinux commented May 6, 2020

@fritserasmus: just remove last 4 lines

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.