Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2007 16:05:00 -0400
From:      Gerard Seibert <gerard@seibercom.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: what "port*" string can I crontab that will *work*?
Message-ID:  <20070312160500.173fe5cf@localhost>
In-Reply-To: <20070312194100.GA17033@thought.org>
References:  <20070312194100.GA17033@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_pXDiB3wrex8Lo=u0KI+KDZ8
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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

> 	Anybody have an automatic (/etc/crontab) method of keeping=20
> 	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=20
> 	-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.
>=20
> 	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.

--=20
Gerard

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

	Anton Chekov

--Sig_pXDiB3wrex8Lo=u0KI+KDZ8
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQFF9bJsFCqdq4D1ybYRAk1fAJ9UjmT1x7hW0beCcxpKOdCkSve8zgCg4b/w
HBC/NEcYAXyUGOnfxPwJGm8=
=rJ+g
-----END PGP SIGNATURE-----

--Sig_pXDiB3wrex8Lo=u0KI+KDZ8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070312160500.173fe5cf>