LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 11-25-2003, 08:25 AM   #1
inon^
LQ Newbie
 
Registered: Oct 2003
Location: AB, Canada
Distribution: Ubuntu 12.04
Posts: 27

Rep: Reputation: 15
YUM as service


Hello all,

I installed YUM and as a service. This service runs nightly and YUM checks the distro. The question is, how to know what params this Yum command is using. I downloaded Yum from the duke edu's website.

Also, where the logs are located, if any. I did a 'rpm -ql yum' to find the filelisting, but could not find any log files anywhere.

Thanks.
 
Old 11-25-2003, 09:53 AM   #2
jwb
Member
 
Registered: Nov 2003
Location: NC, USA
Distribution: Fedora, Red Hat, Mandrake
Posts: 38

Rep: Reputation: 15
With most things, you can check the configuration file to see where things are placed. Do

ls -l /etc/yum.conf

which is the most likely place for your yum.conf file (should be the default). Mine has this up near the top (among other things):

cachedir=/var/cache/yum
logfile=/var/log/yum.log

Yours is *probably* the same..... check it first.

I use a little different approach, as I don't like running an update without reviewing it first to see if I really want or need it. I have this in my user crontab:

0 6 * * * /usr/bin/yum list updates > /home/myusername/Desktop/yum-updates

Yum will run, check and see what updates are available, and results will be written to that file. I just review it each morning. You can do something like that with up2date also, just do

up2date -l

in place of the yum command, and either adjust the file name it writes to, or have it append to the file instead of overwriting it.

I like this better as it lets me check on the updates before installing them.

Taking this a step further, you could write a brief script in Perl to do the same commands, and then send a daily e-mail report. Add to that some checks on diskspace, error and security checks and so forth, and you have a customized report for your machine. :-)
 
Old 11-25-2003, 02:42 PM   #3
inon^
LQ Newbie
 
Registered: Oct 2003
Location: AB, Canada
Distribution: Ubuntu 12.04
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you, that's a lot of help.

I figured out that the cron.daily under /etc has the cron file and also figured out the command it's running.

I am also planning on doing something similar you suggested.
 
Old 11-25-2003, 03:04 PM   #4
jwb
Member
 
Registered: Nov 2003
Location: NC, USA
Distribution: Fedora, Red Hat, Mandrake
Posts: 38

Rep: Reputation: 15
Quote:
Originally posted by inon^
Thank you, that's a lot of help.

I figured out that the cron.daily under /etc has the cron file and also figured out the command it's running.

I am also planning on doing something similar you suggested.
Don't edit the cronfile directly! :-)

If you're familiar with editing the crontab, please accept my apologies for "lecturing".

However, if you do need to edit your user crontab and you aren't familiar with it, I'd suggest this tutorial (http://weather.ou.edu/~billston/crontab/). There are plenty of others- this was the second one I found when I Googled "crontab tutorial" (I didn't like the first as much).

Anyway, read that tutorial and see if it makes sense.

Also, "Linux Administration: A Beginner's Guide" by Steve Shah (ISBN# 0072225629) is an *excellent* book that you will find very useful. It covers topics in a way that helps you understand what is going on, but is thourogh enough to serve experienced Linux administrators, too. I keep it on my desk.
 
  


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
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-03-2010 12:42 AM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 03:34 AM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 03:28 AM
Fast Yum Mirror Settings For Yum ( RH9 ) fortezza Red Hat 1 06-11-2004 05:24 PM
/sbin/service is empty every weekend and changed to service.1 LineS Linux - General 0 05-24-2004 03:08 AM


All times are GMT -5. The time now is 09:27 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration