| 17 | == Updates |
| 18 | |
| 19 | 1. Most servers do automatic updates for security automatically ([[AskNick]] How is this set up). |
| 20 | 2. Manually do other updates every month by running: |
| 21 | {{{ |
| 22 | sudo apt-get update |
| 23 | sudo apt-get upgrade |
| 24 | }}} |
| 25 | 3. Remove packages trhat are no longer needed: |
| 26 | {{{ |
| 27 | sudo apt-get autoremove |
| 28 | }}} |
| 29 | 4. Updates could well install another version of the kernel. More than one kernel is needed for if the newest version does not work for some reason, so do not delete them all. However, if too many are installed, it may use up all the space on the boot disk, therefore remove them using: {{{sudo apt-get remove {package-name} }}} |
| 30 | 5. When the {{{autoremove}}} is run it will list the kernel packages as it rebuilds the [[grub]] menu. The package names look like {{{linux-image-{version} }}}, sometimes with {{{-generic}}} at the end. For example: {{{linux-image-3.13.0-48-generic}}}. |
| 31 | |