| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-11-2007, 10:21 PM
|
#1
|
|
Member
Registered: May 2006
Location: Waterloo, Canada
Distribution: Fedora 8
Posts: 35
Rep:
|
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
|
|
|
|
01-12-2007, 12:38 AM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
|
|
|
|
01-12-2007, 12:57 AM
|
#3
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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.
|
|
|
|
01-12-2007, 09:01 AM
|
#4
|
|
Member
Registered: May 2006
Location: Waterloo, Canada
Distribution: Fedora 8
Posts: 35
Original Poster
Rep:
|
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.
|
|
|
|
01-15-2007, 09:22 PM
|
#5
|
|
Member
Registered: May 2006
Location: Waterloo, Canada
Distribution: Fedora 8
Posts: 35
Original Poster
Rep:
|
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.
|
|
|
|
01-16-2007, 03:07 AM
|
#6
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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.
|
|
|
|
01-16-2007, 08:37 AM
|
#7
|
|
Member
Registered: May 2006
Location: Waterloo, Canada
Distribution: Fedora 8
Posts: 35
Original Poster
Rep:
|
|
|
|
|
01-26-2007, 11:52 AM
|
#8
|
|
LQ Newbie
Registered: Nov 2003
Location: California, US
Distribution: RHEL/Scientific Linux/CentOS
Posts: 6
Rep:
|
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
|
|
|
|
01-27-2007, 09:37 AM
|
#9
|
|
Member
Registered: May 2006
Location: Waterloo, Canada
Distribution: Fedora 8
Posts: 35
Original Poster
Rep:
|
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.
|
|
|
|
01-27-2007, 03:49 PM
|
#10
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:31 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|