freebsd unzip ports

I just use gunzip as tool for unzip an .zip file at ubuntu 10.04 when I try same utility at freebsd.

Now I want to try something new with utility called unzip.

Try to call it ( it might be installed)

# unzip
unzip: Command not found.

Not found, try to find installation file.

# whereis unzip

unzip: /usr/ports/archivers/unzip
# cd  /usr/ports/archivers/unzip && make install


===>  Vulnerability check disabled, database not found

Use INSTALL_AS_INFOUNZIP=yes to install Info Unzip as /usr/local/bin/info-unzip

=> unzip60.tar.gz doesn’t seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://heanet.dl.sourceforge.net/project/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/.
unzip60.tar.gz                                100% of 1344 kB 9220  Bps 00m00s
===>  Extracting for unzip-6.0
=> MD5 Checksum OK for unzip60.tar.gz.
=> SHA256 Checksum OK for unzip60.tar.gz.
===>  Patching for unzip-6.0
===>  Applying FreeBSD patches for unzip-6.0
===>  Configuring for unzip-6.0
……………………………………………..

…………………………………………………….

……………………………………………………………..

===>   Generating temporary packing list
===>  Checking if archivers/unzip already installed
install  -s -o root -g wheel -m 555 /usr/ports/archivers/unzip/work/unzip60/unzip /usr/local/bin/unzip
install  -s -o root -g wheel -m 555 /usr/ports/archivers/unzip/work/unzip60/funzip /usr/local/bin
install  -s -o root -g wheel -m 555 /usr/ports/archivers/unzip/work/unzip60/unzipsfx /usr/local/bin
/bin/ln -sf unzip /usr/local/bin/zipinfo
install  -o root -g wheel -m 555 /usr/ports/archivers/unzip/work/unzip60/unix/zipgrep /usr/local/bin
install  -o root -g wheel -m 444 /usr/ports/archivers/unzip/work/unzip60/man/unzip.1 /usr/local/man/man1/unzip.1
install  -o root -g wheel -m 444 /usr/ports/archivers/unzip/work/unzip60/man/funzip.1 /usr/local/man/man1
install  -o root -g wheel -m 444 /usr/ports/archivers/unzip/work/unzip60/man/unzipsfx.1 /usr/local/man/man1
install  -o root -g wheel -m 444 /usr/ports/archivers/unzip/work/unzip60/man/zipgrep.1 /usr/local/man/man1

install  -o root -g wheel -m 444 /usr/ports/archivers/unzip/work/unzip60/man/zipinfo.1 /usr/local/man/man1
install  -o root -g wheel -m 444 /usr/ports/archivers/unzip/work/unzip60/README /usr/local/share/doc/unzip
install  -o root -g wheel -m 444 /usr/ports/archivers/unzip/work/unzip60/WHERE /usr/local/share/doc/unzip
===>   Compressing manual pages for unzip-6.0
===>   Registering installation for unzip-6.0
#

Refresh

#rehash

# unzip

UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir;
file[.zip] may be a wildcard.  -Z => ZipInfo mode (“unzip -Z” for usage).

-p  extract files to pipe, no messages     -l  list files (short format)
-f  freshen existing files, create none    -t  test compressed archive data
-u  update files, create if necessary      -z  display archive comment only
-v  list verbosely/show version info       -T  timestamp archive to latest
-x  exclude files that follow (in xlist)   -d  extract files into exdir
modifiers:
-n  never overwrite existing files         -q  quiet mode (-qq => quieter)
-o  overwrite files WITHOUT prompting      -a  auto-convert any text files
-j  junk paths (do not make directories)   -aa treat ALL files as text
-U  use escapes for all non-ASCII Unicode  -UU ignore any Unicode fields
-C  match filenames case-insensitively     -L  make (some) names lowercase
-X  restore UID/GID info                   -V  retain VMS version numbers
-K  keep setuid/setgid/tacky permissions   -M  pipe through “more” pager
See “unzip -hh” or unzip.txt for more help.  Examples:
unzip data1 -x joe   => extract all files except joe from zipfile data1.zip
unzip -p foo | more  => send contents of foo.zip via pipe into program more
unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer

Done.

just use unzip finename.zip to open the file.

I love FreeBSD ports!