ports database

perryh at pluto.rain.com perryh at pluto.rain.com
Sat Aug 28 23:01:06 UTC 2010


Polytropon <freebsd at edvax.de> wrote:

> >     tar -cf ports.tar /usr/port
>
> It should be, better suited:
>
> 	# cd /usr
> 	# tar cf ports.tar ports
>
> So one could do "tar xf ports.tar" in the target machine's /usr
> ...

Better put the created tarfile somewhere other than in the directory
that is being tarred :)
and it might as well be compressed, something like:

# cd /usr
# tar cf - ports | gzip > /var/tmp/ports.tgz


More information about the freebsd-questions mailing list