From owner-freebsd-questions@freebsd.org Fri Nov 20 22:18:25 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AF67A347F8 for ; Fri, 20 Nov 2015 22:18:25 +0000 (UTC) (envelope-from danglingpointer@outlook.com) Received: from BAY004-OMC4S22.hotmail.com (bay004-omc4s22.hotmail.com [65.54.190.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E77C21633 for ; Fri, 20 Nov 2015 22:18:24 +0000 (UTC) (envelope-from danglingpointer@outlook.com) Received: from BAY169-W97 ([65.54.190.201]) by BAY004-OMC4S22.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 20 Nov 2015 14:17:19 -0800 X-TMN: [3gzeVVMoyweTjVbsxQLOhdyGfkQL/EhU] X-Originating-Email: [danglingpointer@outlook.com] Message-ID: From: Dangling Pointer To: "freebsd-questions@freebsd.org" Subject: Unzip utility choice decision Date: Fri, 20 Nov 2015 22:17:19 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 20 Nov 2015 22:17:19.0545 (UTC) FILETIME=[38A5AA90:01D123E1] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2015 22:18:25 -0000 =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= =