LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Keeps telling me YUM is running and aborts (https://www.linuxquestions.org/questions/linux-newbie-8/keeps-telling-me-yum-is-running-and-aborts-557595/)

Virtuality 05-29-2007 06:52 PM

Keeps telling me YUM is running and aborts
 
Where's the delete button on this forum??? Anyway I figured it out.
-----------
I guess it's still active in the processes... I tried 'kill yum' and it says it needs an ID.

Quote:

[root@localhost ~]# yum install gcc
Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.
Quote:

[root@localhost ~]# kill yum
bash: kill: yum: arguments must be process or job IDs

this213 05-30-2007 07:27 AM

So that everyone else knows: Many distros start a package update check when you log in, though the icon doesn't appear until just before the notification that say "so many packages are available for update...". While this is running, it's using yum and creates a lock file (usually at /var/run.yum.pid). Removing this file will allow you to use yum from the command line, though that's somewhat unsafe (in case you decide to hit the update dialog and start 2 concurrent updates).

To stop this from running automatically every time you log in (under Gnome anyway), System > Preferences > More > Sessions > Startup Programs and uncheck or disable it from there.

Also, to kill a process by name, you use "killall" as "kill" is used for process IDs (ps -A | grep puplet)


All times are GMT -5. The time now is 05:46 AM.