Re: Re: Yum unable to install while yum-updatesd running

Matt Hyclak <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On Tue, Dec 11, 2007 at 08:49:01AM -0700, Donald Murray, P.Eng. enlightened us:
> > On Tue, 2007-12-11 at 08:36 -0700, Donald Murray, P.Eng. wrote:
> > > On Dec 5, 2007 11:37 AM, Donald Murray, P.Eng. <[email protected]> wrote:
> > > > Back in the old days, when periodic yum updates where a cron-job,
> > > > I was able to issue 'yum install ...' or 'yum update ...' commands
> > > > with impunity.
> > > >
> > > > I'm running CentOS 5.1 and seeing the following:
> > > > [root@dmurray ~]# yum install perl-Date-Manip
> > > > Loading "installonlyn" plugin
> > > > Existing lock /var/run/yum.pid: another copy is running. Aborting.
> > > > [root@dmurray ~]# echo $( cat /var/run/yum.pid )
> > > > 16744
> > > > [root@dmurray ~]# service yum-updatesd status
> > > > yum-updatesd (pid 16744) is running...
> > > > [root@dmurray ~]# rpm -q yum yum-updatesd
> > > > yum-3.0.5-1.el5.centos.5
> > > > yum-updatesd-3.0.5-1.el5.centos.5
> > > > [root@dmurray ~]#
> > > >
> > > > If I merely _restart_ yum-updatesd, I can then immediately
> > > > do a 'yum ...' command as desired.
> > > >
> > > > What's the idiomatic way to update or install via yum, while
> > > > yum-updatesd is running?
> > > >
> > > > Thanks!
> > > >
> > >
> > > Does anyone have any suggestions for me? Is there something
> > > I should change in my yum-updatesd.conf?
> > >
> > > dmurray@dmurray:/home/dmurray 0> grep -v "^#" /etc/yum/yum-updatesd.conf
> > > [main]
> > > run_interval = 3600
> > > updaterefresh = 600
> > > emit_via = dbus
> > > dbus_listener = yes
> > > do_update = yes
> > > do_download = yes
> > > do_download_deps = yes
> > >
> > >
> > > I'm considering punting yum-updatesd and using a cron job
> > > instead.
> >
> > until rhel/centos 5.2 comes out that is probably not a bad idea.
> >
> > -sv
> >
> >
> > _______________________________________________
> > Yum mailing list
> > [email protected]
> > https://lists.dulug.duke.edu/mailman/listinfo/yum
> >
> 
> Thanks Seth. We'll switch to cron for now.

CentOS 5 has a yum-cron package that replicates the old behavior.

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.