Update package information
Once the authentication file for apt has been created, the system's local package lists can be updated.
sudo apt updateThis means that apt knows the latest package versions and available packages from the configured repositories, in this case the Beckhoff repository. This is necessary before installations or upgrades. How to connect to the Beckhoff Package Server is described in the following chapter: Authenticate on the Beckhoff Package Server
sudo apt update
The command sudo apt update only updates the system's package lists. The system loads the current information on available packages and their versions from the configured package sources. It does not change any installed packages and does not perform any updates. This command is used to ensure that the system has the latest version of the repository data before installations or upgrades are carried out.
sudo apt upgrade
The command sudo apt upgrade then installs the latest available versions of the packages already on the system. Only updates that do not involve removing packages or installing new dependencies are carried out. sudo apt upgrade is used to update a system to the latest version after the package lists have been updated using sudo apt update.