LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2005, 03:14 PM   #1
dbruso
LQ Newbie
 
Registered: Aug 2004
Location: California
Distribution: Fedora Core 5
Posts: 21

Rep: Reputation: 15
using cron to run yum - fc3


I have a real newbie question. I want to use cron to fire off yum on a scheduled basis and update my FC 3 installation. I created the crontab below for root:

00 3 * * 5 /etc/yum -y update

What I expected would happen is that yum would be launched every Friday at 3 am and update my installation without user input (-y). When I look in /var/log/cron, I see that cron has run my command.

root@saruman log]# cat cron.1 |grep yum
Feb 25 03:00:01 saruman crond[18559]: (root) CMD (/etc/yum -y update)

However, when I look in yum.log I do not see where yum updated my system.

Any suggestions as to what I'm doing wrong?

Thanks.
 
Old 03-02-2005, 12:15 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
A silly question, but do you know that there were any updates for your installed rpms? The log won't list anything if there was nothing to be done.

Oh, as an aside, you might want to consider using "upgrade" instead of "update." That shoul catch new releases as well as new updates for you.
 
Old 03-02-2005, 12:20 PM   #3
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Yum in cron

On my system (RH9 right now) yum is "/usr/bin/yum", not "/etc/yum".
 
Old 03-02-2005, 12:43 PM   #4
dbruso
LQ Newbie
 
Registered: Aug 2004
Location: California
Distribution: Fedora Core 5
Posts: 21

Original Poster
Rep: Reputation: 15
Doh!

The executable for yum is indeed in /usr/bin. I'm confusing the conf files that I store in /etc with the program that uses them.

Told you I was a newbie.

Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
InstallXine with yum in fc3 WhiskeyTangoFoxtrot Linux - Software 0 11-20-2005 02:59 PM
problems with yum in FC3 nissimnabar Linux - Newbie 1 07-10-2005 10:56 AM
yum errors in fc3 nyk Linux - Software 1 01-14-2005 09:01 AM
Yum very slow on FC3 ewschone Fedora 3 01-12-2005 12:50 PM
FC3 yum issue... Vid Linux - Software 6 12-27-2004 11:41 PM


All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration