Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2015 22:17:19 +0000
From:      Dangling Pointer <danglingpointer@outlook.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Unzip utility choice decision
Message-ID:  <BAY169-W9776556FEBDA58E22FA457A71A0@phx.gbl>

next in thread | raw e-mail | index | archive | help
=0A=
=0A=
=0A=
Hi=2C
The unzip utility which comes OOTB is different than the one which installs=
 with `pkg install unzip`. The latter one is the real unzip utility which a=
ccepts -uoq switches together. The former one complains "unzip: -n=2C -o an=
d -u are contradictory".
Without being able to -uoq causes a race with two unzips attempting to over=
write the same file at the same time. -u prevents existing files from being=
 overwritten if they haven't been updated and allows us to run any number o=
f unzips in parallel.
After installing FreeBSD=2C I have to rename "/usr/bin/unzip" to "/usr/bin/=
unzip2" followed by "pkg install unzip" and then "ln -s /usr/local/bin/unzi=
p /usr/bin/unzip".
If the licensing permits=2C please consider replacing the default unzip uti=
lity with the one available in ports. This way it is convenient to write a =
cross-platform build/install scripts for software without additional checks=
.
Thanks.
=0A=
 		 	   		  =



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY169-W9776556FEBDA58E22FA457A71A0>