Re: explanation of yum.cron

From: Erik Hemdal (ehemdal_at_townisp.com)
Date: 08/15/05

  • Next message: Alex Janssen: "Re: madwifi - Makefile.inc:122: *** KERNELCONF: /lib/modules/2.6.12-1.1372_FC3/build/.config does not exist.. Stop."
    To: fedora-list@redhat.com
    Date: Sun, 14 Aug 2005 22:18:21 -0400
    
    

    > Message: 10
    > Date: Sun, 14 Aug 2005 10:56:39 -0500
    > From: akonstam@trinity.edu
    > Subject: explanation of yum.cron
    > To: Fedora-List <fedora-list@redhat.com>
    > Message-ID: <20050814155639.GA3636@Moof.cs.trinity.edu>
    > 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@yahoo.com>
    > Subject: Re: installed kernel.2.6.12 srpm, how do I remove all of it
    > To: fedora-list@redhat.com
    > Message-ID: <ddnofv$i1p$2@sea.gmane.org>
    > 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@trinity.edu
    > Subject: Re: System log program in FC4?
    > To: lsomike@futzin.com, For users of Fedora Core releases
    > <fedora-list@redhat.com>
    > Cc: Fedora-List <fedora-list@redhat.com>
    > Message-ID: <20050814160314.GB3636@Moof.cs.trinity.edu>
    > 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@trinity.edu 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@yahoo.com.cn>
    > Subject: [FC4] Cannot up2date
    > openoffice.org-calc-1.9.117-3.1.0.fc4.i386.rpm
    > To: Fedora Usenet <fedora-list@redhat.com>
    > Message-ID: <20050814154749.1107.qmail@web15703.mail.cnb.yahoo.com>
    > 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@redhat.com
    > http://www.redhat.com/mailman/listinfo/fedora-list
    >
    > End of fedora-list Digest, Vol 18, Issue 137
    > ********************************************

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Alex Janssen: "Re: madwifi - Makefile.inc:122: *** KERNELCONF: /lib/modules/2.6.12-1.1372_FC3/build/.config does not exist.. Stop."

    Relevant Pages

    • Re: explanation of yum.cron + a little frustration.
      ... > a> I asume the last line in the script does a yum update. ... To be fair to Aaron, who is a pretty helpful guy in these parts, the man ... pages do not describe what 'shell' does. ... I only figured it out by typing the command ...
      (Fedora)
    • Re: Feeling Feisty
      ... I keep hearing about how friendly the Ubuntu camp is - particularly ... the SUSE camp. ... can't imagine life with going back to something like apt-get or yum. ... It is against my religion to be using command line tools. ...
      (alt.2600)
    • Re: [opensuse] keeping a server up to date
      ... fedora), but in fedora what i want to accommplish is a simple as: ... yum -y install ... how can i accomplish these tasks, as simply, in suse? ... tips, links to definitive command ...
      (SuSE)
    • Re: F8 is a problem
      ... The first command has been posted before. ... command, manually importing the GPG key, is not needed because Yum ... a little clear help does not hurt anyone... ...
      (Fedora)
    • yum rpm removal afte yum localinstall *.rpm
      ... Followed info on the Fedora site to make my own java-1.5.0.05 rpms with yum and then use the command to ... So I have removed Tomcat with yum. ... Now how do I remove the list of java-1.5.0.05 rpms with yum. ...
      (Fedora)