Marco Moock <
[email protected]> originally asked:
I would like to ask if it is possible to configure periodic in a way
that notifies me of ne updates via pkg and freebsd-update.
Is there a way to do that (and only that, not daily mails about
normal operations)?
to which I replied:
"freebsd-update cron"? It emails you if updates were found.
[well, at least it claims to do so; I haven't tried it, and, of course,
the daily /usr/local/etc/periodic/security/405.pkg-base-audit run tests
the base system, too.]
Marco Moock <
[email protected]> continued:
Crontab has such a line:
@daily root freebsd-update cron
[I'm assuming you mean /etc/crontab.]
I haven't received any message yet, mail to root works and the
periodic reports are delivered.
The last update was 8/8, if that matters. If you updated then, you
wouldn't have seen anything since.
... I'm not sure why you would want to upgrade a package merely
because a newer one has appeared.
I normally keep my system on the latest versions of packages.
Is there a reason against that?
For minor versions / patches, probably not. For major version changes, sometimes.
For packages that install version-dependent files (under, for example, /usr/local/share/$program/$version or $program-$version), pkg install of version N+1 can uninstall version N's files. If $program is running
when that upgrade happens, it can suddenly find its library files gone. Depending on the application, having to save all the work you're in the
middle of, exit (losing all your "undo" history), restart, and restore
state may be inconvenient.
Another case (very rare, but it happened once), was when the latest
version of a library was broken and I needed to work around pkg's
insistence on installing the newer version.
If you truly want to keep everything up to the latest version, I'd say
just run "pkg upgrade" by hand from time to time.
Blindly upgrading automatically seems risky to me, even if it's doable.
New versions sometimes have new dependencies, causing additional
packages to be installed. If a newly installed package is unmaintained
and has security issues, you probably want to know (though pkg audit
will alert you next time it runs).
The other problem is that pkg upgrade asks for confirmation before doing
the upgrade, and I don't see a pkg command line way of saying Yes. You
might have to do some shell hackery, but simply providing "y<CR>" on
stdin fails in the "new version of pkg detected, it must be installed
first" case.
So, as I said, I think it'd be better and safer to do that manually from
time to time.
Just my opinion. I'm much more in the "If it ain't broke, don't fix
it." camp.
-WBE
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)