Package management locked

When I run zypper dup I get this message :
System management is locked by the application with pid 3787 (/usr/sbin/packagekitd).
Close this application before trying again.

How do I do this?

There is some other process trying to install or checking the repos

Most likely you have Yast open or the updater is checking. Only one process at a time can install.

kill 3787

Run it as root and then try zypper dup.

How would I find out what pid 3787 is and what is the command to kill it.

The command is kill then the number of the process the PID

You will need to be root

the error tells you the process name also

/usr/sbin/packagekitd

Or you can get it with

ps -A

Thx - that is what I needed

I already mentioned in the above post.

pidof packagekitd

This will give the PID.
Then kill it by:

kill **PID**

If that did not kill it, you can try this to force it to kill:


kill -9 **PID**

PID = Get this from the above command for packagekitd

e.g.

ps -ef | grep 3787

read

man ps
man kill