How to install a tar.gz from console.

Matthew Graybosch matthew at starbreaker.net
Sat Jul 26 14:57:47 PDT 2003


On Saturday 26 July 2003 05:49 pm, Michael L. Squires wrote:
> > How do u install tar.gz packages from terminal.
>
> cd <install-directory>
> tar xvfz <tar.gz directory>/<file-name>.tar.gz
>
> or am I missing something?

Are you trying to install a software package with a name like 
foobar.tgz? You have to use the pkg_add tool.

If you just want to unzip it, then tar xzvf $archive will do, or tar 
xjvf $archive if it's compressed with bzip2 (*.tar.bz2) instead of 
gzip (*.tar.gz) 

Does this help?

-- 
Matthew Graybosch
http://www.starbreaker.net
"I am become root, shatterer of kernels."



More information about the freebsd-questions mailing list