Re: explanation of yum.cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Message: 10
> Date: Sun, 14 Aug 2005 10:56:39 -0500
> From: akonstam@xxxxxxxxxxx
> Subject: explanation of yum.cron
> To: Fedora-List <fedora-list@xxxxxxxxxx>
> Message-ID: <20050814155639.GA3636@xxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=us-ascii
> 
> Would someone save me from my mental anguish. In earlier Fedoras the yum.cron
> was  straightforward but in FC4 it seems to me someone exceeded
> themselves in cleverness in creating a yum.cron such that  I can't
> understand what it will do:
> Can some one help?
> yum.cron
> #!/bin/sh
> 
> if [ -f /var/lock/subsys/yum ]; then
>         /usr/bin/yum -R 120 -e 0 -d 0 -y update yum

>From the manpage, the above runs yum to update itself with minimum error
and debug levels (to be quiet) and to execute sometime within 120
minutes of executing the command.  Makes sense that you want the latest
yum before you update.  And it also makes sense that you want to
randomize hits to your yum repos, which the -R 120 will try to do.

> 	        /usr/bin/yum -R 10 -e 0 -d 0 -y shell /etc/yum/yum-daily.yum

This then runs yum to run again, accepting the default yes answers (-y)
and to do this at some random time within ten minutes of executing the
command. Again it's quiet.

I tried this at the command line.

yum -y shell

opens up a new shell inside yum.  Try it, it's cool.  From there you get
a secondary prompt ">" at which you can issue yum commands like update
and ts run.  That sounds pretty cool for doing a lot of yum stuff at
once (like searches)
The last, exit, exits the shell and the command.  I can't see what this
does that 

	/usr/bin/yum -R 10 -e 0 -d 0 -y update

wouldn't do.  My only guess is that somehow it's faster than loading yum
each time you want to do a yum command.  But I can't find anything that
tells me what 'ts run' does inside yum.

Maybe it's an undocumented feature in yum?

Erik




> 		fi
> 		
> Ok noting happens if /var/lock/subsys/yum does not exist and in
> my installation it did not initially exist so I created it with a touch command.
> 
> The next line updates the yum command itself but the -R 120 seems
> excessive and mysterious,
> 
> Now we come to the last line. Where does the value of shell come from
> and what is it doing there? One guesses it will cause yum to process
> the commands in /etc/yum/yum-daily.yum which are:
> update
> ts run
> exit
> 
> I can almost see update being there but what do ts run and exit do in
> this environment?
> 
> Is there anyone else that is as mystified as I am? Could this cron file
> be made anymore obscure? I think not.
> -- 
> 
> =======================================================================
> When all else fails, EAT!!!
> -------------------------------------------
> Aaron Konstam
> Computer Science
> Trinity University
> telephone: (210)-999-7484
> 
> 
> 
> ------------------------------
> 
> Message: 11
> Date: Sun, 14 Aug 2005 11:37:33 -0400
> From: "H. S." <greatexcalibur@xxxxxxxxx>
> Subject: Re: installed kernel.2.6.12 srpm, how do I remove all of it
> To: fedora-list@xxxxxxxxxx
> Message-ID: <ddnofv$i1p$2@xxxxxxxxxxxxx>
> Content-Type: text/plain; charset=us-ascii
> 
> Apparently, _Paul Howarth_, on 14/08/05 08:30,typed:
> > On Sun, 2005-08-14 at 07:19 -0500, Jeff Vian wrote:
> > 
> >>That would not mess with the database at all.  However, it would leave
> >>the package listed as installed.
> >>
> >>Try
> >>rpm -qa kernel\*
> >>
> >>then identify the source package that was installed in step 1 above and
> >>do 
> >>  rpm -e kernel-XXX     
> >>where kernel-XXX is the source package you installed.
> > 
> > 
> > Installing an SRPM does not affect the RPM database at all. That
> > includes the list of installed packages. There will be no kernel-XXX
> > package to remove as a result of installing a kernel-XXX.src.rpm.
> > 
> > Paul.
> 
> 
> Yes, there is no src package installed.
> 
> Thanks for the helpful post clarifying my doubts, really appreciate it.
> 
> regards,
> ->HS
> 
> -- 
> Please remove the underscores ( the '_' symbols) from my email address
> to obtain the correct one. Apologies, but the fudging is to remove spam.
> 
> 
> 
> ------------------------------
> 
> Message: 12
> Date: Sun, 14 Aug 2005 11:03:14 -0500
> From: akonstam@xxxxxxxxxxx
> Subject: Re: System log program in FC4?
> To: lsomike@xxxxxxxxxx,	For users of Fedora Core releases
> 	<fedora-list@xxxxxxxxxx>
> Cc: Fedora-List <fedora-list@xxxxxxxxxx>
> Message-ID: <20050814160314.GB3636@xxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=us-ascii
> 
> On Sun, Aug 14, 2005 at 07:27:33AM -0500, Mike Klinke wrote:
> > On Sunday 14 August 2005 05:59, akonstam@xxxxxxxxxxx wrote:
> >  
> > > >
> > > > system-logviewer-0.9.7-1.src.rpm
> > > >
> > > > --
> > >
> > > But why it was dropped has not been fully explained. Also notice
> > > that the one in FC3 is a later version than the one you got by
> > > googling. It is a  mystery which really should be explained to us
> > > grunts in the field by the decision makers out in Fedora-land.
> > > --
> > 
> > 
> > https://www.redhat.com/archives/fedora-test-list/2005-June/msg00448.html
> > 
> > ( no clue what the last two words in Rahul's reply mean )
> > 
> > 
> > http://people.redhat.com/clumens/system-logviewer/
> > 
> > 
> > Regards, Mike Klinke
> > 
> I have sen those statements before but they explain very little. If a
> new one is not ready and it has been not ready for more than 6 months
> leave the old one works leave it in until the new one arrives.
> 
> =======================================================================
> Gordon's first law:
> 	If a research project is not worth doing, it is not worth doing well.
> -------------------------------------------
> Aaron Konstam
> Computer Science
> Trinity University
> telephone: (210)-999-7484
> 
> 
> 
> ------------------------------
> 
> Message: 13
> Date: Sun, 14 Aug 2005 08:47:48 -0700 (PDT)
> From: Leon Pu <leon_xf_pu@xxxxxxxxxxxx>
> Subject: [FC4] Cannot up2date
> 	openoffice.org-calc-1.9.117-3.1.0.fc4.i386.rpm
> To: Fedora Usenet <fedora-list@xxxxxxxxxx>
> Message-ID: <20050814154749.1107.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=iso-8859-1
> 
> Hi all,
> 
> I cannot up2date openoffice.org-calc-1.9.117-3.1.0.fc4.i386.rpm. The
> progress of retrieving package openoffice.org-calc always stops in
> 6037/6739 KB.
> 
> I have tried several times during recent three weeks, but every time it
> stops in the same progress.
> 
> Did anybody meet the problem before?
> 
> 
> Best regards,
> Leon
> 
> 
> 		
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 
> 
> 
> 
> 
> ------------------------------
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> http://www.redhat.com/mailman/listinfo/fedora-list
> 
> End of fedora-list Digest, Vol 18, Issue 137
> ********************************************


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux