How do I perform a system update?

Hi everyone,

When I update my system on the console, which command is “officially” supported?

$ sudo apt update && sudo apt full-upgrade

or

$ sudo pkon refresh && sudo pkcon update

Which option carries less risk?

Or is it only officially supported using Discover (GUI)?

Best regards

Bluelupo

You will need to tell us which distribution :slight_smile:

KDE Neon?

I am usually either using Discover or aptitude

I installed KDE Neon.

Operating System: KDE neon User Edition
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 6.17.0-35-generic (64-bit)
Graphics Platform: Wayland
Processors: 20 × Intel® Core™ i5-14600
Memory: 64 GiB of RAM (62.4 GiB usable)
Graphics Processor: Intel® Graphics
Manufacturer: LENOVO
Product Name: 30H0005TGE
System Version: ThinkStation P3 Tiny

Sometimes I want to run a system update from the console.

Pkcon is what Discover uses to tell apt what to do, on Debian-like distros.

You can use pkcon with no issues, but you will have better output and messaging using apt directly.

So tl;dr: just use apt.

It seems recently pkcon was replaced with pkgcli as a sort of improved version (Plasma 6.6).
I understand it’s actually a sort of wrapper for apt to work better with Discover.
I wonder though if it also includes widget updates that we see in Discover, which is something outside the scope of apt?

PackageKit and pkcon/pkgcli are unrelated to KDE and Plasma.

This is still a layer on top of the system’s native tools for package management. It does not handle anything but a distro’s native packaging. So no flatpak, snap, or KDE store items.

The version of packagekit in neon does not have the new pkgcli, but will be there once upgraded to the 26.04 base.

However it fails to update the system completely in *buntu when there are packages being “phased,” while apt and the old pkcon properly skip the “held” update. So I would not recommend this to be used at all (in *buntu based systems) at this stage.