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

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
bushyiii
Level 3
Level 3
Posts: 142
Joined: Thu Apr 07, 2016 12:42 am

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

Post 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.
Last edited by bushyiii on Thu Dec 07, 2017 10:10 am, edited 1 time in total.

User avatar
WharfRat
Level 21
Level 21
Posts: 13508
Joined: Thu Apr 07, 2011 8:15 pm

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

Post 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'
ImageImage

Laurent85
Level 16
Level 16
Posts: 6241
Joined: Tue May 26, 2015 10:11 am

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

Post 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.
Last edited by Laurent85 on Thu Dec 07, 2017 10:28 am, edited 1 time in total.
Image

bushyiii
Level 3
Level 3
Posts: 142
Joined: Thu Apr 07, 2016 12:42 am

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

Post 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.

Post Reply

Return to “Other networking topics”