FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Mar 2006
    Location
    Champaign, IL
    Age
    34
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    yum auto update?

    Is there a way to make yum update by itself? I have looked around and havent been able to find an answer. Also, do I really need a virus scanner on linux? I am new to the penguin and if I do need one, what do you suggest?

  2. #2
    jbannon Guest
    Use either yum update-on-boot or the version to update automatically from crontab. Update on boot is available in the extras repository.

    On the virus scanner side, you don't really need one but it would be advisable to take a belt-and-braces approach and install clamav. Another tool you might want to consider is a security checked like rkhunter. However, provided you haven't disabled the firewall and Selinux it should be OK.

  3. #3
    Join Date
    Mar 2006
    Location
    Champaign, IL
    Age
    34
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you give me some instructions on how to do this? Sorry, but I am still trying to get use to Linux (which is awesome by the way). Oh and I will try clamav
    Last edited by urmom9388; 28th May 2006 at 04:10 AM. Reason: forgot something

  4. #4
    Seve's Avatar
    Seve is offline Retired Community Manager
    Join Date
    Oct 2004
    Location
    The GTA, Ontario, Canada
    Age
    68
    Posts
    12,371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by urmom9388
    can you give me some instructions on how to do this? Sorry, but I am still trying to get use to Linux (which is awesome by the way). Oh and I will try clamav
    Hello:
    I know that you can enable Yum to run once daily in your /System/Administration/Server Settings/Services .. which will run as long as your machine is up.
    To change the time it runs etc, then you will have to edit the cron files as jbannon described.
    You can read more here:http://fedora.redhat.com/docs/yum/sn...matic-updating
    Seve
    Last edited by Seve; 28th May 2006 at 04:27 AM. Reason: add a link
    Registered Linux User: #384977
    .................................................. ............
    See the Links below for more Help and those much wanted extras ... :)


  5. #5
    jbannon Guest
    Quote Originally Posted by urmom9388
    can you give me some instructions on how to do this? Sorry, but I am still trying to get use to Linux (which is awesome by the way). Oh and I will try clamav
    I'm assuming you're running Gnome (the default desktop) and have installed the default tools.

    If you go into Desktop -> Administration -> Services you will see a list of available services for your machine, one of which will be called "yum". This is the crontab version that updates so long as your machine is turned on. To enable it choose "Runlevel All" from the Edit Runlevels menu and put a tick in all 3 boxes and click the start button. Save the settings and exit.

    If, like me, you turn your machine off when it's not in use (electricity is damned expensive and I don't want to contribute to pollution more than I can help) then you need to install yum-updateonboot from the extras repository. You will be able to find this in the software installer app called Pirut on your menu. Once installed, you just repeat the same process except that you choose the update on boot service. This will slow down your boot time a fair bit, but it will update every time you switch on the machine.

    P.S. IMHO that Pirut is useless so I'd recommend getting rid of it ('yum remove pirut') and replacing it with Yumex ('yum install yumex') as yumex is much better - you can see what yu're installing, you get a list of all the files installed and their locations as well as the changelogs.

  6. #6
    Join Date
    Mar 2006
    Location
    Champaign, IL
    Age
    34
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well there's two problems there for me, I am running kde (I have gnome installed), and second I would prefer to setup yum to update at a certain time of day since I only reboot if my pc crashes. Sorry for the trouble.

  7. #7
    Join Date
    Mar 2006
    Location
    Champaign, IL
    Age
    34
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I think the link was what I needed.

  8. #8
    arun_kc Guest
    1
    I tried to do this
    To enable it choose "Runlevel All" from the Edit Runlevels menu
    and no need to put a tick in all 3 boxes
    since all background services are selected to run level all
    should i go ahead and save runlevel all for all background processes or select only yumand click the start button. Save the settings and exit.pls advise me
    2.
    How to do this
    where to do this
    I am new to this
    ('yum remove pirut') and replacing it with Yumex ('yum install yumex') as yumex is much better

  9. #9
    arun_kc Guest
    Quote Originally Posted by Seve
    Hello:
    I know that you can enable Yum to run once daily in your /System/Administration/Server Settings/Services .. which will run as long as your machine is up.
    To change the time it runs etc, then you will have to edit the cron files as jbannon described.
    You can read more here:http://fedora.redhat.com/docs/yum/sn...matic-updating
    Seve
    1
    I tried to do this
    To enable it choose "Runlevel All" from the Edit Runlevels menu
    and no need to put a tick in all 3 boxes
    since all background services are selected to run level all
    should i go ahead and save runlevel all for all background processes or select only yumand click the start button. Save the settings and exit.pls advise me
    2.
    How to do this
    where to do this
    I am new to this
    ('yum remove pirut') and replacing it with Yumex ('yum install yumex') as yumex is much better
    Reply With Quote

  10. #10
    bob's Avatar
    bob is offline Administrator -- On Leave
    Join Date
    Jul 2004
    Location
    Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
    Age
    81
    Posts
    25,251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Linux & Beer - That TOTALLY Computes!
    Registered Linux User #362651


    Don't use any of my solutions on working computers or near small children.

  11. #11
    Join Date
    Jun 2005
    Location
    Christchurch, New Zealand (originally for Switzerland)
    Age
    41
    Posts
    722
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    yum cron script

    Hallo all

    To run daily automatic online system update i use a self written script:

    /etc/cron.daily/update.system.cron
    #!/bin/bash

    # check if yum all ready is running.
    if [ -e /var/run/yum.pid ]
    then

    # log it
    echo "# run yum.cron locked $(date)" >> /var/log/yum.update.system.cron
    echo "--------------------------------" >> /var/log/yum.cron

    else

    # log it
    echo "# run yum.update.system.cron clean ... $(date)" >> /var/log/yum.cron
    # save the fastestmirror-plugin speed list.
    mv /var/cache/yum/timedhosts.txt /var/cache/yum/.timedhosts.old
    # tidy up yum's mess ;-)
    yum -e 0 -d 0 clean all
    # revcover fastestmirror-plugin speed list.
    mv /var/cache/yum/.timedhosts.old /var/cache/yum/timedhosts.txt
    # log it
    echo "# run yum.update.system.cron yum ..... $(date)" >> /var/log/yum.cron

    # update yum it self and log it
    yum -R 3 -y upgrade yum >> /var/log/yum.cron
    # log the end of the task
    echo "# run yum.update.system.cron upgrade . $(date)" >> /var/log/yum.cron

    # update the system and log all messages.
    yum -R 3 -y upgrade >> /var/log/yum.cron
    # log the end of the task
    echo "# run yum.update.system.cron done .... $(date)" >> /var/log/yum.cron

    # set an end line in the logfile
    echo "--------------------------------" >> /var/log/yum.cron

    fi
    You will need to stop and turn off yum-updatesd. Look in system-config-services.

    This script have done the update on 5 workstations since 3 years. No problems.
    It work's in the background and does not need any interaction of a user. You can control the success the daily update in the logfile: /var/log/yum.cron
    Last edited by tho.mei; 24th December 2007 at 07:20 PM.
    tho.mei

Similar Threads

  1. Auto update
    By shovan@hantu in forum Using Fedora
    Replies: 3
    Last Post: 18th February 2009, 06:25 AM
  2. fc7 auto update
    By dynason in forum Using Fedora
    Replies: 1
    Last Post: 28th September 2007, 04:19 AM
  3. YUM auto update
    By mha in forum Using Fedora
    Replies: 2
    Last Post: 25th June 2005, 04:58 PM
  4. Auto Update
    By Tracer in forum Linux Chat
    Replies: 3
    Last Post: 18th July 2004, 05:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •