Forums Search Login Register
Login
Username
Password
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,352
Trophies:
1
Hello,

I'm hoping I can use a one line command to confirm that automatic updates are enabled on ubuntu servers.

I'm considering using this command to look for the contents of the unattended updates file:


Code:
cat /etc/apt/apt.conff.d/20auto-upgrades | paste -sd \; || echo "Unattended Upgrades not installed"
Or perhaps this command is better to confirm the file exists (meaning if it doesn't exist then unattended upgrades is not installed):


Code:
[[ -f /etc/apt/apt.conf.d/20auto-upgrades ]] && echo "unattended updates are enabled" || echo "unattended updates are not enabled";
But are automatic updates on Ubuntu only through unattended upgrades? Are the above commands good ways to confirm (using a one line command) to check if my Ubuntu Servers will receive updates/upgrades automatically?

Thank you in advance for any advice you can provide me.
12-04-2019, 12:40 PM
Reply
Subscribe to this thread Subscribed Users  Add Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Automatic login and screen saver jeglin 0 12 05-26-2020 05:56 PM
Last Post: jeglin
  [ubuntu] No operating system found when installed new updates rstefaniacoxa 0 9 05-03-2020 12:56 AM
Last Post: rstefaniacoxa
  [ubuntu] 530 5.7.0 Must issue a STARTTLS command first ISPC3 jsmelawson78 2 223 04-09-2020 07:25 PM
Last Post: FrankJScott
  [SOLVED] mdadm array creation - what's wrong with this command? nteddyflowccsj 4 483 09-20-2018 10:02 PM
Last Post: Monday12
  [ubuntu] PS command fails jindymas11 1 339 08-31-2018 09:40 PM
Last Post: Monday12
  [ubuntu] Incorrect device shown on root by mount command and GParted. lodiliagloverj 3 755 08-31-2018 09:36 PM
Last Post: Monday12
  [ubuntu] E:Malformed Description-md5 line wemersonhendersrong 2 416 08-31-2018 04:43 AM
Last Post: Monday12
  ifconfig command missing from 18.04 bionic Wilma 0 146 08-28-2018 04:56 AM
Last Post: Wilma
  Invalid node structure after using DD command oharrisonholmesh 0 141 08-20-2018 10:39 PM
Last Post: oharrisonholmesh
  Automatic OCR in network folder - Any software available? rdaniellabarryr 0 147 08-20-2018 05:04 AM
Last Post: rdaniellabarryr

Forum Jump:



User(s) browsing this thread: 1 Guest(s)



Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2020