Debian Codegraph @

doc/modules/guide/pages/feature-packagekit.adoc

raw
1 [[feature-packagekit]]
2 = Package Updates
3
4 Cockpit uses the
5 https://www.freedesktop.org/software/PackageKit/gtk-doc/api-reference.html[PackageKit]
6 D-Bus API to get information about available package updates and to
7 apply them, in an Operating System independent manner.
8
9 To perform similar tasks from the command line, use the
10 https://www.freedesktop.org/software/PackageKit/pk-using.html[pkcon]
11 command:
12
13 ....
14 $ pkcon refresh
15
16 $ pkcon get-updates
17 Available sudo-1.8.20p2-1.fc26.x86_64 (updates-testing)
18 Allows restricted root access for specified users
19 Available vim-filesystem-2:8.0.617-1.fc26.x86_64 (updates-testing)
20 VIM filesystem layout
21 Available vim-minimal-2:8.0.617-1.fc26.x86_64 (updates-testing)
22 A minimal version of the VIM editor
23
24 $ pkcon get-update-detail sudo
25 Details about the update:6.x86_64 [fedora]
26 Package: sudo-1.8.20p2-1.fc26.x86_64
27 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1452941
28 Update text: - update to 1.8.20p2
29 - added sudo package to dnf/yum protected packages
30
31 $ pkcon update
32 The following packages have to be updated:
33 sudo-1.8.20p2-1.fc26.x86_64 Allows restricted root access for specified users
34 vim-filesystem-2:8.0.617-1.fc26.x86_64 VIM filesystem layout
35 vim-minimal-2:8.0.617-1.fc26.x86_64 A minimal version of the VIM editor
36 Proceed with changes? [N/y] y
37 [...]
38 ....
39
40 Of course you can also use your Operating System specific commands for
41 that, such as `+dnf updateinfo info+` on Fedora or `+sudo apt upgrade+`
42 on Debian.