Page 1 of 1

SOLVED- How to do updates using SSH for remote computers.

Posted: Wed Dec 06, 2017 10:35 pm
by bushyiii
I have a small home network, I can easily go to each computer and do an update but I would like to increase my skills. My current update policy for all computers is " Just keep my Computer safe". If I do an update from the command line will I be able to do it in the same manner?

I checked man apt-get, didn't see anything that suggested I could do conservative updates.

Re: How to do updates using SSH for remote computers.

Posted: Wed Dec 06, 2017 11:20 pm
by WharfRat
You can use mintupdate-tool.

See mintupdate-tool upgrade --help for options

I use an alias mut='sudo mintupdate-tool upgrade -l12345 -ry'

Re: How to do updates using SSH for remote computers.

Posted: Thu Dec 07, 2017 7:29 am
by Laurent85
To update remote computer using your update policy settings you can for example use the following command :

Code: Select all

ssh -t myremoteusername@myremotehost sudo mintupdate-tool upgrade 
Replace myremoteusername and myremotehost with your actual remote username and remote host name or ip address.

Re: How to do updates using SSH for remote computers.

Posted: Thu Dec 07, 2017 10:10 am
by bushyiii
Thanks for both replies, was unaware the mintupdate tool could be used in the terminal.
Wharfrat, adding your example was especially helpful. Checked help on the tool as you suggested and didn't understand this "-l LEVELS, --levels LEVELS
ignore settings and restrict to this list of levels. Reviewing your example instantly cleared it up.