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 2
Level 2
Posts: 98
Joined: Thu Apr 07, 2016 12:42 am

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

Post by bushyiii » Wed Dec 06, 2017 10:35 pm

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 20
Level 20
Posts: 11533
Joined: Thu Apr 07, 2011 8:15 pm

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

Post by WharfRat » Wed Dec 06, 2017 11:20 pm

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 15
Level 15
Posts: 5683
Joined: Tue May 26, 2015 10:11 am

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

Post by Laurent85 » Thu Dec 07, 2017 7:29 am

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 2
Level 2
Posts: 98
Joined: Thu Apr 07, 2016 12:42 am

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

Post by bushyiii » Thu Dec 07, 2017 10:10 am

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”