This rpm discussion is based on my installation of RH 8.0:
The __db.00? files appear to be database files that the
rpm command accesses for most operations, including the one in
/etc/cron.daily/rpm. That script updates /var/log/rpmpkgs but does not modify the db files. Something appears to have modified these db files when I booted (based on timestamp), but I can't figure out what. You can look at the script with
less or any text editor. Mine consists of the single line:
Code:
rpm -qa --qf %{name}-%{version}-%{release}.%{arch}.rpm\n' 2>&1 \
| sort > /var/log/rpmpkgs
RH 8.0 (and probably whatever you are using) executes the daily/weekly/monthly scripts from both /etc/anacrontab and /etc/crontab. The first runs when you first boot and takes care of anything that was missed while the computer was off. The second runs during normal operation. If for some reason these are not already in crontab, you can certainly add them. However, if you remove them from anacrontab, when you boot, they won't get run until their next scheduled times in crontab.
I believe your second crontab line has some typos, but otherwise what you have listed is the correct format for crontab files for indivual users (including root), created with the
crontab -e command. The /etc/crontab file uses a slightly different format:
Code:
0 19 * * * root run-parts /etc/cron.daily
30 19 * * 0 root run-parts /etc/cron.weekly
0 20 1 * * root run-parts /etc/cron.monthly
where the sixth field (in my example, root) shows which user the command is executed as.