FedoraThis forum is for the discussion of the Fedora Project.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
When yum-updatesd updates packages, it does not log to /var/log/yum.log. If I were to update using Yum through command line, changes to system packages are logged to /var/log/yum.log. What do I need to change in my configuration file for yum-updatesd in order for yum-updatesd to log package updates/changes to /var/log/yum.log?
Thanks in advance.
Contents of /etc/yum/yum-updatesd.conf
# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600
# how to send notifications (valid: dbus, email, syslog)
emit_via = syslog
syslog_facility = DAEMON
syslog_level = NOTICE
# automatically install updates
do_update = yes
# automatically download updates
do_download = yes
# automatically download deps of updates
do_download_deps = yes
I did not enable automatic updates but as my handle suggests (Junior Hacker), I'm not afraid to try things.
For instance, did you try using the e-mail notification by switching emit_via = syslog to emit_via = email, I know you would prefer the log method because that's what I would prefer. So you have to tell it where to write to, I would try.... emit_via = syslog/var/log/yum.log or emit_via = syslog /var/log/yum.log or add another entry like so: syslog_log = /var/log/yum.log or syslog_file = /var/log/yum.log. I know it would be tough to get an instant results to see if any of these would work as most of your updates are probably done already, but there appears to be new ones every day.
Did you google your query?
If you have a line like so: logfile=/var/log/yum.log in /etc/yum.conf, one would think it would write to that file.
If you were to use "emit_via = email" it would probably write to /var/spool/mail/ or put it in your inbox.
Mine has "emit_via - dbus (not that it matters as it is not enabled)
Last edited by Junior Hacker; 01-12-2007 at 01:09 AM.
I have checked the "Fedora Document", but it does not mention yum-updatesd. yum-updatesd is the new automatic update software in FC6 replacing the cron scheduled yum updates. According to the universe (from Google), no one has mentioned about logging in yum-updatesd. Even Yum's mailing list does not have a topic about logging in yum-updatesd.
I will try your suggestions for /etc/yum/yum-updatesd.conf. I will post with my results of the testing. Thanks.
Probably the best move at this point for you, I have a second copy of Fedora on my large multi-boot drive, it would be easier for me to test a few things as that is what that second copy is for, I don't have to worry about screwing it up as I also have an image of the partition and can wipe it out and re-load a copy of a fresh install in less than ten minutes making it painless to screw it up trying stuff.
I have more ideas and if I ever catch up...I'll dabble in the area, I'm on dial up, that's why I don't enable automatic updates, that cuts into my little bandwith, I just do updates over night when not using the box.
Which reminds me, Fedora's constantly pumping them out.
Did you know that after the first updates are applied an alphabetical list of all installed packages is created in /var/log called "rpmpkgs", this list also gets updated once a week if changes are made. Although it is not exactly what you would like to see (what updates, and when), it can possibly give some of that info.