Wednesday, 17 October 2007

Ultimate trust of FreeBSD port system...

Do you trust your system configuration and the port system, then give the following commands a try. I have to warn you, I am not responsible for any problems caused and a proper sysadmin first tries this at a sandbox (or at home ;-) )


#install latest ports
$sudo portsnap fetch
#spot out of date ports
$sudo pkg_version -vIL=
#check whether install all ports goes fine
$sudo portupgrade -na
#stop all relevant ports, apache in my case
$sudo /usr/local/etc/rc.d/apache22 stop
#install them all
$sudo portupgrade -a
#restart any service updated, in my case apache (mind the out of date list)
$sudo /usr/local/etc/rc.d/apache22 start

When talking about FreeBSD ports you might also want to checkout the handbook about portsnap to install a small cron line to report outdated ports everyday

While installing port monitoring tools you also need portaudit to have critical port vulnerabilities reported to you

No comments:

Post a Comment