From owner-freebsd-questions@freebsd.org Sat Jul 25 20:24:00 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A50836F0C5 for ; Sat, 25 Jul 2020 20:24:00 +0000 (UTC) (envelope-from lonnie@outstep.com) Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BDcwZ6tm5z4cSv for ; Sat, 25 Jul 2020 20:23:58 +0000 (UTC) (envelope-from lonnie@outstep.com) Received: by mail-il1-x142.google.com with SMTP id j9so6599493ilc.11 for ; Sat, 25 Jul 2020 13:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outstep-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Nc8iqco+msNsVArcQzxN0itznngKDPWvzndvM5/L49k=; b=Vh18T38EmuXljnzfsqJXBRK74GSILgHosP0xQ6Amb7Q+dolJNcbPoDLnNEwLYc4xRe D4ldAyDWiY/ZUwFPftZnBZZuymBZCz3u4TqM0VZaRXmnO01uzUlnMbP/sBMqwK0t70Dz zcQkgwIpcDlDMGs5AHl5iLzwySVLWLKvg8QUbhUjYb31/VfEDfRWZXcKsaQPo0YslTGJ Qk2HQiivvFjoEtCW6ZWP6gJgmiiFW/ePOfGOe0xuQSST/dFgAlVOekqkMlU9z+yIlAhE cT2laL4xIbnuyW3XiPHpi1v3vnpI+aIcW+VKZQ5tD+KznYTRLmQwlsTX68iYnD0Tw8sl Ml2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Nc8iqco+msNsVArcQzxN0itznngKDPWvzndvM5/L49k=; b=PEq/tuIZeP2E5aQT2DnwcQgSo5miEjvCOiLNXz9n0qsFeA/VKv5V62U1XDVw6mE7QD tfIFm1g0ikimGBwiOUFZVLR1vd908Uqkvf0TtBynNU3pBC+gcItssZvjpOBHRJVBiMoj z7dO162FDQxIkDHYJU5vdTYTyw34aNMPJ/aqNpjCpf8PkeUDV7jnRAVbNK5J++UN6xQ/ fzE/MxtonuvCmJ1YoURJkpYNw7AYo24nu4Nw0ozRyoa2HZrnReGEaXRukDY8VaFUT4jK MrqBI1x20b0ld0FAySzyCZgsh9D/dJ8h4vhQKtV/k6ZrLdsvRLkQDj3gzFOn1cQdKptD l2/w== X-Gm-Message-State: AOAM532+btqtljtET0QZDOFB4FLyNveva7Kt98etXC5OUDdm/qcpusLg vmukC8Ik2YA6IM7OBH1oN6ELTOiGl8CE6EJGwP/rX6zIesU= X-Google-Smtp-Source: ABdhPJyZctF167UF41u3SmUu9rspcE6ptkgeqOqm5yqnZ+X43nLeiPlOcH9exCUtmzcBdXgdVuL27h2f7/3wrwioDM4= X-Received: by 2002:a05:6e02:1246:: with SMTP id j6mr15815528ilq.216.1595708637464; Sat, 25 Jul 2020 13:23:57 -0700 (PDT) MIME-Version: 1.0 References: <20200725203801.9a4965b8.freebsd@edvax.de> In-Reply-To: <20200725203801.9a4965b8.freebsd@edvax.de> From: Lonnie Cumberland Date: Sat, 25 Jul 2020 16:23:46 -0400 Message-ID: Subject: Re: tbz file from pkg To: Polytropon Cc: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 4BDcwZ6tm5z4cSv X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outstep-com.20150623.gappssmtp.com header.s=20150623 header.b=Vh18T38E; dmarc=fail reason="No valid SPF, DKIM not aligned (relaxed)" header.from=outstep.com (policy=none); spf=softfail (mx1.freebsd.org: 2607:f8b0:4864:20::142 is neither permitted nor denied by domain of lonnie@outstep.com) smtp.mailfrom=lonnie@outstep.com X-Spamd-Result: default: False [-2.91 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.986]; R_DKIM_ALLOW(-0.20)[outstep-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.02)[-1.021]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; R_SPF_SOFTFAIL(0.00)[~all]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[outstep-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::142:from]; NEURAL_HAM_SHORT(-0.70)[-0.705]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[outstep.com : No valid SPF, DKIM not aligned (relaxed), none] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2020 20:24:00 -0000 Thanks All, Since the pkg command returns txz (tar+xz) compressed files during a fetch, I am going to try to come up with a shell script that will loop through all of the txz files in a folder and convert each one to a tbz (tar+bzip2) compressed file. I think that might be helpful to others as well. Cheers On Sat, Jul 25, 2020 at 2:38 PM Polytropon wrote: > On Sat, 25 Jul 2020 13:25:19 -0400, Lonnie Cumberland wrote: > > In working with the "pkg fetch .." command, I notice that the coles come > > back with the ".txz" extension. > > > > In my reading on FreeBSD, it seems that the common extension is a ".tbz" > > Those extensions mean different things. > > > > > So then, I am wondering how to either have "pkg fetch" return ".tbz" > files > > or perhaps there is a way to convert the ".txz" files. > > > > Any insight on this? > > The extensions usually identify what 't' that is is a tar > archive, and "xz" indicates the kind of compression. There > are many: > > ----- filename extensions ----- ------- compression -------- > short long alternate meaning tar option > ------------------------------------------------------------ > .tar tar > .tgz .tar.gz tar + GNU zip -z > .tbz .tar.bz .tar.bz2 tar + bzip -j > .txz .tar.xz tar + xz -J > > BSD tar supports them all, it can conveniently combine the > uncompression and extraction operations. > > Also see "man 1 xz" and "man 1 bzip2" for details, as well > as "man 1 tar", of course. :-) > > In order to convert a .txz to a .tbz archive, you can use > the tools mentioned above to uncompress and recompress the > content. Note that there are various options that can affect > the compression level. > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... >