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?![]()
![]()
![]()
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?![]()
![]()
![]()
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.
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
Hello:Originally Posted by urmom9388
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 ... :)
I'm assuming you're running Gnome (the default desktop) and have installed the default tools.Originally Posted by urmom9388
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.
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.
Thanks, I think the link was what I needed.
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
1Originally Posted by Seve
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
Linux & Beer - That TOTALLY Computes!![]()
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
Hallo all
To run daily automatic online system update i use a self written script:
/etc/cron.daily/update.system.cron
You will need to stop and turn off yum-updatesd. Look in system-config-services.#!/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
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