LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-11-2007, 10:21 PM   #1
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Rep: Reputation: 15
Enable logging in yum-updatesd needed


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
Code:
[main]
# 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
 
Old 01-12-2007, 12:38 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Did you check this Fedora Document: http://fedora.redhat.com/docs/yum/en/
 
Old 01-12-2007, 12:57 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
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.
 
Old 01-12-2007, 09:01 AM   #4
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Original Poster
Rep: Reputation: 15
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.
 
Old 01-15-2007, 09:22 PM   #5
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Original Poster
Rep: Reputation: 15
I tried the following...

emit_via = /var/log/yum.log
Result: updates were not logged

emit_via = syslog /var/log/yum.log
Result: updates were not logged

emit_via = syslog/var/log/yum.log
Result: updates were not performed

emit_via = email
Result: updates were not logged

My next step is to report a bug to bugzilla.redhat.com and follow up with the bug ID here.
 
Old 01-16-2007, 03:07 AM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
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.
 
Old 01-16-2007, 08:37 AM   #7
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Original Poster
Rep: Reputation: 15
https://bugzilla.redhat.com/bugzilla....cgi?id=222835
 
Old 01-26-2007, 11:52 AM   #8
toracat
LQ Newbie
 
Registered: Nov 2003
Location: California, US
Distribution: RHEL/Scientific Linux/CentOS
Posts: 6

Rep: Reputation: 2
Thanks for reporting the bug. I am having the same problem. If I run yum manually, it gets written to /var/log/yum.log. Do you see this also?

Akemi
 
Old 01-27-2007, 09:37 AM   #9
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Original Poster
Rep: Reputation: 15
Yes, I am seeing that manual updates to packages using Yum are logged to /var/log/yum.log, and I have added a comment to the bug to make this more clear.
 
Old 01-27-2007, 03:49 PM   #10
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
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.
 
  


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
Hanging on yum-updatesd rfleming Fedora - Installation 7 01-09-2007 03:19 PM
Enable detailed cron logging? OneBinary Debian 1 01-02-2006 05:56 PM
Howto to enable logging in Knoppix 3.8? bigrigdriver Linux - Software 5 10-05-2005 09:38 PM
how do I enable logging in iptables for FC2? alizard Linux - Security 5 03-06-2005 05:18 AM
Do you enable full sendmail logging? hbt Linux - Software 1 12-19-2004 03:06 PM


All times are GMT -5. The time now is 02:55 AM.

Main Menu
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