You are not logged in.

#1 2011-05-14 02:46:02

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

PackageKit for GNOME

So I've finally gotten around to making gnome-packagekit available in community. To install it, use

# pacman -S gnome-packagekit gnome-settings-daemon-updates

In case you didn't know, PackageKit is a cross-distro system for installing packages, and it now works on Arch too. Here are a few demos of what it can do:

Searching by name:
Cw5HIm.jpg

Removing packages (like -Rc):
N6eOtm.jpg

Searching by description:
Uwce7m.jpg

PolicyKit authentication:
nZS7Xm.jpg
Note that the prompt is a little misleading - they are NOT signed packages. This will be fixed when alpm supports package signing.

Post-install messages:
SqIyum.jpg

Searching by file:
s2Tw4m.jpg
This only works for installed packages. You will notice that packagekit has its own pacman.conf, located in /etc/PackageKit/alpm.d, which inherits settings from /etc/pacman.conf but can be configured individually.

Viewing the transaction log:
d5EyIm.jpg

Editing active repositories:
gWFlqm.jpg

Changing update settings:
4CdPUm.jpg

Checking for updates:
YpxmSm.jpg
vEXLVm.jpg

You can configure more settings using dconf-editor. I recommend setting org.gnome.packagekit.enable-autoremove to TRUE (this behaves like pacman -Rs).

Last edited by PirateJonno (2011-05-14 02:46:54)


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#2 2011-05-14 06:14:33

fijam
Member
Registered: 2009-02-03
Posts: 244
Website

Re: PackageKit for GNOME

It works great! Thanks a lot for this contribution.

Offline

#3 2011-05-14 08:58:37

smv
Member
From: Galați, România
Registered: 2011-02-27
Posts: 2
Website

Re: PackageKit for GNOME

I really wanted this. Thank you.

Offline

#4 2011-05-14 09:35:58

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: PackageKit for GNOME

Great!
To update and add/remove are they separate apps or can be managed from one?


Markku

Offline

#5 2011-05-14 10:54:36

VCoolio
Member
From: Netherlands
Registered: 2010-01-05
Posts: 120

Re: PackageKit for GNOME

Nice. Fast searching. To view and install stuff it's gpk-application, to view and install updates it separate, gpk-update-viewer. There should be a menu item in the former to open the latter I think.

Also if I just run gpk-application, I can't install anything: "Authorization failed." But it never asked for a password. If I run as root, it warns: "Package installer is running as a privileged user. Package management applications are security sensitive. Running graphical applications as a privileged user should be avoided for security reasons." Installing updates on the other hand works but also without asking for a password. I don't know how that works, but it's not right, is it?

Offline

#6 2011-05-14 16:30:25

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: PackageKit for GNOME

VCoolio wrote:

Also if I just run gpk-application, I can't install anything: "Authorization failed." But it never asked for a password. If I run as root, it warns: "Package installer is running as a privileged user. Package management applications are security sensitive. Running graphical applications as a privileged user should be avoided for security reasons." Installing updates on the other hand works but also without asking for a password. I don't know how that works, but it's not right, is it?

Make sure you have PolicyKit installed and are starting ConsoleKit with your login session. Updates won't ask for a password by default, but this can be changed by editing /usr/share/polkit-1/actions/org.freedesktop.packagekit.policy. Also, never run a graphical program as root (like it says).


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#7 2011-05-14 17:40:14

dapolinario
Member
From: Brasil
Registered: 2010-03-18
Posts: 58

Re: PackageKit for GNOME

Where is the command gpk-update-icon?


Arch Linux: The power in your hands!

Offline

#8 2011-05-14 18:01:17

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Re: PackageKit for GNOME

Is there a non-gnome version of this PackageKit? I use KDE and don't have gtk stuff. It would be silly (to me) to download a bunch of gnome deps for a single program...

Offline

#9 2011-05-14 18:03:35

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: PackageKit for GNOME

Maybe try kpackagekit from the AUR?

Offline

#10 2011-05-15 00:35:07

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: PackageKit for GNOME

dapolinario wrote:

Where is the command gpk-update-icon?

Gone. GNOME 3 doesn't use icons for notifications. Make sure you install gnome-settings-daemon-updates instead


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#11 2011-05-15 03:11:06

dapolinario
Member
From: Brasil
Registered: 2010-03-18
Posts: 58

Re: PackageKit for GNOME

Installed but still am not notified about the update packages. I have to run the command manually. What do you suggest for the program to notify me?


Arch Linux: The power in your hands!

Offline

#12 2011-05-15 03:36:48

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: PackageKit for GNOME

dapolinario wrote:

Installed but still am not notified about the update packages. I have to run the command manually. What do you suggest for the program to notify me?

You might want to change org.gnome.settings-daemon.plugins.updates.force-get-updates-login to TRUE and org.gnome.settings-daemon.plugins.updates.frequency-updates-notification to something like 86400 (24 * 60 * 60 seconds)


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#13 2011-05-15 05:08:24

dapolinario
Member
From: Brasil
Registered: 2010-03-18
Posts: 58

Re: PackageKit for GNOME

I made the changes so that pleases me, but what does the "org.gnome.settings-daemon.plugins.updates.frequency-refresh-cache"?

Sorry then. Reframing: what is this package cache? Because the option has a time to be determined (default=86400).

Last edited by dapolinario (2011-05-15 09:46:27)


Arch Linux: The power in your hands!

Offline

#14 2011-05-15 05:17:24

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: PackageKit for GNOME

dapolinario wrote:

I made the changes so that pleases me, but what does the "frequency-refresh-cache"?

Sorry, I don't know what you mean. The question doesn't make sense


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#15 2011-05-17 17:16:48

fijam
Member
Registered: 2009-02-03
Posts: 244
Website

Re: PackageKit for GNOME

I have noticed that the progress bar when downloading a package doesn't update in steps but just jumps from 0% to 100% once it is downloaded. Is this a known problem or do I have something misconfigured?

Offline

#16 2011-05-18 00:00:32

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: PackageKit for GNOME

fijam wrote:

I have noticed that the progress bar when downloading a package doesn't update in steps but just jumps from 0% to 100% once it is downloaded. Is this a known problem or do I have something misconfigured?

working ok for me


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#17 2011-11-28 07:26:39

Korrode
Member
From: Australia
Registered: 2009-11-02
Posts: 110

Re: PackageKit for GNOME

If not running Gnome, you must also install the gnome-polkit package or it will fail to ask for authentication.
(At least, that was my experience with only XFCE installed.)


xfce | compiz | gmrun | urxvt | chromium | geany | aqualung | vlc | geeqie

Offline

#18 2011-11-29 00:28:16

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: PackageKit for GNOME

dapolinario wrote:

Sorry then. Reframing: what is this package cache? Because the option has a time to be determined (default=86400).

Sorry again, I didn't notice this change. If you're still wondering, the package cache (in PackageKit parlance) refers to what pacman calls the sync databases. It's what gets updated when you run pacman -Sy. The value 86400 is the length of one day in seconds.

fijam wrote:

I have noticed that the progress bar when downloading a package doesn't update in steps but just jumps from 0% to 100% once it is downloaded. Is this a known problem or do I have something misconfigured?

I've had reports that this works on x86_64 but not i686. Unfortunately I have no idea what could be causing the difference in behaviour. Any debugging information you or others could gather would be great (I don't have access to an i686 machine).

Korrode wrote:

If not running Gnome, you must also install the gnome-polkit package or it will fail to ask for authentication.
(At least, that was my experience with only XFCE installed.)

Yeah, I guess I ought to make this an optional dependency. However it is not a hard dependency because it is still possible to use gnome-packagekit on KDE (as far as I know anyway).


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#19 2011-12-23 19:59:47

bsquared
Member
Registered: 2011-06-27
Posts: 33

Re: PackageKit for GNOME

Hello,

I installed this today

$ sudo pacman -S gnome-settings-daemon-updates gnome-packagekit

The applications list is empty and I receive an error when running update-viewer.

$ gpk-update-viewer

(gpk-update-viewer:2572): PackageKit-WARNING **: failed to get properties: Launch helper exited with unknown return code 127
Exiting as backend details could not be retrieved: Launch helper exited with unknown return code 127

Apparently, I have missed some configuration step.  Any idea what I need to do?

BTW, I have had this (v 3.0.3) running on a different computer with no issues.

Thanks,
Brian)

Last edited by bsquared (2011-12-23 20:08:48)


(c}

Offline

#20 2011-12-24 17:27:03

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: PackageKit for GNOME

for what it's worth, there's a KDE gui to packagekit as well, available through AUR:
https://aur.archlinux.org/packages.php?ID=48728

Thanks for your efforts, PirateJonno smile


Arch i686 on Phenom X4 | GTX760

Offline

#21 2011-12-27 01:18:01

bsquared
Member
Registered: 2011-06-27
Posts: 33

Re: PackageKit for GNOME

Works great after a system upgrade.  Thanks for the contribution.

bsquared wrote:

Hello,

I installed this today

$ sudo pacman -S gnome-settings-daemon-updates gnome-packagekit

The applications list is empty and I receive an error when running update-viewer.

$ gpk-update-viewer

(gpk-update-viewer:2572): PackageKit-WARNING **: failed to get properties: Launch helper exited with unknown return code 127
Exiting as backend details could not be retrieved: Launch helper exited with unknown return code 127

Apparently, I have missed some configuration step.  Any idea what I need to do?

BTW, I have had this (v 3.0.3) running on a different computer with no issues.

Thanks,
Brian)


(c}

Offline

#22 2012-02-16 01:09:56

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: PackageKit for GNOME

fijam wrote:

I have noticed that the progress bar when downloading a package doesn't update in steps but just jumps from 0% to 100% once it is downloaded. Is this a known problem or do I have something misconfigured?

I think I might have stumbled upon a way to fix this. Try changing the line 'make -s' in the PKGBUILD to

make -s CFLAGS='-D_FILE_OFFSET_BITS=64'

and rebuild.


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#23 2012-03-11 00:17:37

Canha
Member
Registered: 2011-12-16
Posts: 11

Re: PackageKit for GNOME

Just passing by to thank you for integrating this!

Offline

#24 2013-02-14 00:38:26

Leduck
Member
From: Brazil
Registered: 2011-04-25
Posts: 48
Website

Re: PackageKit for GNOME

Sorry to reopen this topic, but something has changed since the last message was posted, and I thought that it is better to reopen this than opening a new topic. The key org.gnome.settings-daemon.plugins.updates.force-get-updates-login no longer exists, someone is getting notifications even without this key?

Offline

#25 2013-06-07 00:37:58

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 201

Re: PackageKit for GNOME

This look great, but I can't figure out what command to run after installing. Does anyone know?

Offline

Board footer

Powered by FluxBB