Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-01-2005, 03:14 PM   #1
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?

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

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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
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
LQ Newbie
Registered: Aug 2004
Location: California
Distribution: Fedora Core 5
Posts: 21

Original Poster
Rep: Reputation: 15

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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 PM.

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