Bug 719438 - no way to disable package kit system wide
Summary: no way to disable package kit system wide
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 15
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-06 20:23 UTC by Mohammed Arafa
Modified: 2011-07-07 15:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-07 15:01:32 UTC
Type: ---


Attachments (Terms of Use)

Description Mohammed Arafa 2011-07-06 20:23:24 UTC
Description of problem:

i own a box with 5 users sharing it. after upgrading to fedora 15 i discovered that package kit is enabled and running for each user. to disable it i had to log in to each and every user's account (pls. allow me to log into your account. why?!) and disable package kit.

now, this is only 1 box with only 5 users. i shudder to think about a system admin in a larger environment.

you may be wondering why i need to do this. well every user that logged in would connect to the internet and download the yum repo cache. so if the 5 users logged in twice in one day,thats 10 downloads not including the 1 in the crontab at 3am. thats overkill. 

furthermore, i have been using my mobile's data plan to connect to the internet. so the user experience was affected. i kept getting complaints of "the machine is slow". 

and most important can you imagine the data bill i will be paying? 

Version-Release number of selected component (if applicable):


How reproducible:
every time

Steps to Reproduce:
1.install fedora 15
2.log in
3.watch packagekit download
  
Actual results:
experience slow user experience and expensive internet 

Expected results:
normal good user experience

Additional info:
not a good fedora user experience. did this really pass the UI guys?

Comment 1 Mohammed Arafa 2011-07-06 20:25:18 UTC
there really should be some command we can do like
pkcon -disable=system

Comment 2 Richard Hughes 2011-07-06 22:21:38 UTC
(In reply to comment #0)
> i own a box with 5 users sharing it. after upgrading to fedora 15 i discovered
> that package kit is enabled and running for each user.

You mean you had the tiny session process running that controls PackageKit. packagekitd is a system process.

> you may be wondering why i need to do this. well every user that logged in
> would connect to the internet and download the yum repo cache. so if the 5
> users logged in twice in one day,thats 10 downloads not including the 1 in the
> crontab at 3am. thats overkill. 

Err no, that's not how it works at all. packagekitd is a system process so the updates only get downloaded once for all users.

> furthermore, i have been using my mobile's data plan to connect to the
> internet. so the user experience was affected. i kept getting complaints of
> "the machine is slow". 

Downloading updates over mobile broadband is disabled by default, you actually have to check a box to enable it.

> and most important can you imagine the data bill i will be paying? 

Which is why it's disabled by default.

> Version-Release number of selected component (if applicable):
> 
> Actual results:
> experience slow user experience and expensive internet 
> Expected results:
> normal good user experience
> Additional info:
> not a good fedora user experience. did this really pass the UI guys?

I'm ignoring the sarcasm...

(In reply to comment #1)
> there really should be some command we can do like
> pkcon -disable=system

Please read /etc/PackageKit/PackageKit.conf -- I can't actually see a bugreport here.

Thanks,

Richard.

Comment 3 Mohammed Arafa 2011-07-07 14:47:39 UTC
yes the tiny session process. if its a system process how do i turn off the daemon? what is it called?

downloads once? not what i experienced.

broadband disabled by default. maybe. but i was using a usb0 connection which is a tethered connection.

and no sarcasm. i am serious. did you guys actually talk to the users?

i read /etc/PackageKit/PackageKit.conf and maybe i missed somethign but i dont see how to switch it off from over there. plus there was no man page.

in summary, how do i disable packagekit service systemwide?

thanks

Comment 4 Mohammed Arafa 2011-07-07 14:54:23 UTC
opening because the core issue was not answered

Comment 5 Richard Hughes 2011-07-07 15:01:32 UTC
(In reply to comment #3)
> yes the tiny session process. if its a system process how do i turn off the
> daemon? what is it called?

The daemon is just called packagekitd. If you disable the session clients from starting (using gnome-session-properties) then the daemon never gets started.

> downloads once? not what i experienced.

Can you provide more details? The session clients have no capacity to download anything themselves.

> broadband disabled by default. maybe. but i was using a usb0 connection which
> is a tethered connection.

Did you configure it using NetworkManager or some home-grown script?

> and no sarcasm. i am serious. did you guys actually talk to the users?

Err yes. And designers.

> in summary, how do i disable packagekit service systemwide?

You don't need to. Just stop the session clients from running (by disabling them in gnome-session-properties) and the daemon will never be run.

I don't actually see why you want to disable PackageKit at all, and this certainly isn't the place for a discussion. Closing.

Comment 6 Mohammed Arafa 2011-07-07 15:18:03 UTC
ahh - i dont use gnome - its not installed even. so i have no way to disable package kit system wide with a single command from the command line? is that an oversight or by design?

more details? ok. i got off my pc to let my wife use it, she logs in, packagekit begins downloads, she gets off to let my kid use the pc, packagekit downloads.

usb0 is configure by NetworkManager. i had no interaction with it. its part of NM itself

i want to disable PackageKit because
a) i have a schedule cron job that does the update when nobody is using the pc at 3am (currently times out coz my mobile is not tethered forever to my pc)
b) i dont want my kid installing a codec or whatever. thats why i am there. similar situation should exist in an sme environment with a sysadmin

pls. provide an alternative forum for discussion

thank you


Note You need to log in before you can comment on or make changes to this bug.