what "port*" string can I crontab that will *work*?

Gerard Seibert gerard at seibercom.net
Mon Mar 12 20:05:05 UTC 2007


On Mon, 12 Mar 2007 11:41:00 -0800
Gary Kline <kline at tao.thought.org> wrote:

> 	Anybody have an automatic (/etc/crontab) method of keeping 
> 	ports current?  I'm almost done upgrading my 5 systems to
> 	6.2  (to be able to grab valid packages) and tried portupgrade
> 	with several variants of flags/switches.  portuprade with 
> 	-rpfP wound up  recycling my packages most of the time.  [?]
> 	I've starting to think that there may be no way of doing this
> 	automatically.  portmanager -b -u -l may be better:: dunno.
> 
> 	thanks for some insights here,

Actually, I use something like that. I created a script that runs both
portsnap and portmanager.


#!/bin/sh
/usr/sbin/portsnap cron update
/usr/local/bin/portmanager -u -l -p

I call this script from CRON once a week. It seems to work quite well.
If you have a MAILTO in CRON, it will even give you a print out of what
transpired. You can just send output to /dev/null of course.

Do make sure you have the latest version of 'portmanager' installed. It
was recently updated. You cannot update it using itself. You must use
the 'make install && make clean' method. If you are not familiar with
'portsnap', just read the manual.

-- 
Gerard

If you are afraid of loneliness, don't marry.

	Anton Chekov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070312/0c814de4/signature.pgp


More information about the freebsd-questions mailing list