edoc Knowledge Base
Breadcrumbs

How do I update operating system packages on edoc platform?

Component

edoc platform (On-Premises) (Ubuntu)

Version

20 - 24

Created on

Last modified on

No Workflow Applied

Review status

No Workflow Applied

KB article number

832635056

Summary

In this article you will learn how to update the operating system packages on your Ubuntu system (edoc platform).

Important requirements

You need SSH access to the server via a user who is authorized to use the sudo command or is in the sudo group.

In addition, you should have a basic knowledge of Linux and be able to assess the effects and background of sudo commands.

Solution

After you have logged on to the edoc platform server, do the following:

  • Update package lists.

  • Update installed packages.

  • Remove old packages that are no longer required.

Here's how

  1. Update the package lists with the following command:

    Bash
    sudo apt update
    
  2. Update the packages with the following command:

    Bash
    sudo apt dist-upgrade -y
    

    You may receive messages that configuration files have been modified. You can normally retain the modified file.

  3. Remove the packages that are no longer required with the following command:

    Bash
    sudo apt autoremove -y
    
  4. Use the following command to check whether a restart of the server is required if no restart is displayed:

    Bash
    sudo cat /var/run/reboot-required
    

If a reboot is required, execute the reboot with the command sudo reboot.