FedoraThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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. :-)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.