keeping freebsd uptodate - doubt

Karol Kwiatkowski freebsd at
Wed Feb 2 05:44:17 PST 2005

saravanan ganapathy wrote:
> Hai ,
> I have installed 5.3 release and want to keep my
> system uptodate with the security patches. 
> Based on many guides, I have arranged as a doc. Pls
> confirm me whether my steps are ok
> 1) Install portupgrade
> 2) Sync ports 
>      Ports-supfile contains as 
>     *default
>     *default base=/var/db
>     *default prefix=/usr
>     *default release=cvs tag=.
>     *default delete use-rel-suffix
>     ports-all


> ( or should I change tag=RELENG_5_3 )

No, "tag=." is exactly what is needed for updating ports.

>   cvsup -g -L 2 /root/ports-supfile


> 3) portsdb -Uu

>From 'man portsdb':
>      -U
>      --updateindex  Update or create the ports index file called INDEX.

from 'man ports':
>     fetchindex       Fetch the INDEX file from the FreeBSD cluster.

Generating INDEX with 'portsdb -U' can take a while. Alternatively,
you could run 'cd /usr/ports && make fetchindex' which will download
that file for you.

so point 3) could be like:

3-a) cd /usr/ports
3-b) make fetchindex
3-c) portsdb -u

This is *much* faster but, of course, there's nothing wrong with
'portsdb -Uu'.

> 4) portversion -v

'portversion -v | grep -v "=" ' is what I use.

> Any other steps to do?

Above procedure updates (only) your ports tree and installed ports.
Subscribe to freebsd-announce and keep your system up-to-date.

> What 'make fetchindex' will do?

See above (point 3).



Karol Kwiatkowski  <freebsd at orchid dot homeunix dot org>

More information about the freebsd-questions mailing list