Difference between revisions of "Operating Systems/Linux/Ubuntu/Ubuntu 16.04 LTS/Updates"

From Vista Ridge Cyberpatriot
Jump to navigation Jump to search
 
(2 intermediate revisions by one other user not shown)
Line 30: Line 30:
 
(Not recommended if the GUI works)
 
(Not recommended if the GUI works)
  
1. sudo apt install unattended-upgrades (this will most likely be preinstalled)
+
# <code>sudo apt install unattended-upgrades</code> (this will most likely be preinstalled)
 +
# <code>sudo nano /etc/apt/apt.conf.d/20auto-upgrades</code>. Set each line equal to "1" (with the quotation marks). This will tell it to update and upgrade each day.
 +
# <code>sudo systemctl enable unattended-upgrades && sudo systemctl start unattended-upgrades</code>
  
2. sudo nano /etc/apt/apt.conf.d/20auto-upgrades. Set each line equal to "1" (with the quotation marks). This will tell it to update and upgrade each day.
+
===Common things to update===
 
+
*ssh
3. sudo systemctl enable unattended-upgrades && sudo systemctl start unattended-upgrades
+
*google chrome (or any search engine unless specified in the readme)

Latest revision as of 16:40, 24 October 2024

Why do we Need Updates[edit | edit source]

While some updates just deliver additional functionality or general bug fixes some updates patch critical security flaws; because of this it is always in the best interest of the user's security to have checks for updates ran constantly.

How to install Updates[edit | edit source]

GUI[edit | edit source]

  1. Search for Software Updater
  2. Follow the prompts that it gives you
  3. Alternatively, redownload

CLI[edit | edit source]

  1. sudo apt update
    • This gets a list of what items can be updated
  2. sudo apt upgrade
    • This updates based off the list from apt update
  3. reboot the system (optional)

While it's not required to use apt-fast, it's recommended as it can greatly decrease the amount of time when updating.

How to Check for Updates Automatically[edit | edit source]

Have updates installed without the need for manual action.

GUI[edit | edit source]

  1. Navigate to the Updates section in the settings app
  2. Change "automatically check for updates" from Never to Daily

CLI[edit | edit source]

(Not recommended if the GUI works)

  1. sudo apt install unattended-upgrades (this will most likely be preinstalled)
  2. sudo nano /etc/apt/apt.conf.d/20auto-upgrades. Set each line equal to "1" (with the quotation marks). This will tell it to update and upgrade each day.
  3. sudo systemctl enable unattended-upgrades && sudo systemctl start unattended-upgrades

Common things to update[edit | edit source]

  • ssh
  • google chrome (or any search engine unless specified in the readme)