<p><a href="https://github.com/pmatilai" class="user-mention">@pmatilai</a> , Thank you for giving me the valuable comments. At that time, I thought that we could handle  the pbzip2 command with *.tar.pbz2 file extension because the pbzip2 software uses the existing bzip2's library in order to be compatible with bzip2.  For example,  using *.tar.pbz2 for multi-core environment (pbzip2), using *.tar.bz2 for traditional bzip2.</p>
<p>As another appropriate way, How about we try to replace traditional bzip2  with pbzip2 software from now on because the pbzip2 software is fully compatible with bzip2 v1.0.2 or newer?  However, I am not sure if now is a suitable time to replace bzip2 with pbzip2 because two packages have different options as following:</p>
<pre><code>invain@u1604:~$ bzip2 --help
bzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.

   usage: bzip2 [flags and input files in any order]

   -h --help           print this message
   -d --decompress     force decompression
   -z --compress       force compression
   -k --keep           keep (don't delete) input files
   -f --force          overwrite existing output files
   -t --test           test compressed file integrity
   -c --stdout         output to standard out
   -q --quiet          suppress noncritical error messages
   -v --verbose        be verbose (a 2nd -v gives more)
   -L --license        display software version & license
   -V --version        display software version & license
   -s --small          use less memory (at most 2500k)
   -1 .. -9            set block size to 100k .. 900k
   --fast              alias for -1
   --best              alias for -9

   If invoked as `bzip2', default action is to compress.
              as `bunzip2',  default action is to decompress.
              as `bzcat', default action is to decompress to stdout.

   If no file names are given, bzip2 compresses or decompresses
   from standard input to standard output.  You can combine
   short flags, so `-v -4' means the same as -v4 or -4v, &c.

invain@u1604:~$
invain@u1604:~$
invain@u1604:~$ pbzip2 --help
Parallel BZIP2 v1.1.9     - by: Jeff Gilchrist [http://compression.ca]
[Apr. 13, 2014]               (uses libbzip2 by Julian Seward)
Major contributions: Yavor Nikolov <nikolov.javor+pbzip2@gmail.com>

Usage: pbzip2 [-1 .. -9] [-b#cdfhklm#p#qrS#tVz] <filename> <filename2> <filenameN>
 -1 .. -9        set BWT block size to 100k .. 900k (default 900k)
 -b#             Block size in 100k steps (default 9 = 900k)
 -c,--stdout     Output to standard out (stdout)
 -d,--decompress Decompress file
 -f,--force      Overwrite existing output file
 -h,--help       Print this help message
 -k,--keep       Keep input file, don't delete
 -l,--loadavg    Load average determines max number processors to use
 -m#             Maximum memory usage in 1MB steps (default 100 = 100MB)
 -p#             Number of processors to use (default: autodetect [4])
 -q,--quiet      Quiet mode (default)
 -r,--read       Read entire input file into RAM and split between processors
 -S#             Child thread stack size in 1KB steps (default stack size if unspecified)
 -t,--test       Test compressed file integrity
 -v,--verbose    Verbose mode
 -V,--version    Display version info for pbzip2 then exit
 -z,--compress   Compress file (default)
 --ignore-trailing-garbage=# Ignore trailing garbage flag (1 - ignored; 0 - forbidden)

If no file names are given, pbzip2 compresses or decompresses from standard input to standard output.

Example: pbzip2 -b15vk myfile.tar
Example: pbzip2 -p4 -r -5 myfile.tar second*.txt
Example: tar cf myfile.tar.bz2 --use-compress-prog=pbzip2 dir_to_compress/
Example: pbzip2 -d -m500 myfile.tar.bz2
Example: pbzip2 -dc myfile.tar.bz2 | tar x
Example: pbzip2 -c < myfile.txt > myfile.txt.bz2

invain@u1604:~$
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/117#issuecomment-271286787">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ANb807ESGurbbCkHRJx5Dg3P-p1lyN4Eks5rQjkwgaJpZM4LcWeI">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb80-yRLbe5YAwLhkvI-LY4KVKPk_SRks5rQjkwgaJpZM4LcWeI.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/rpm-software-management/rpm/pull/117#issuecomment-271286787"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/rpm-software-management/rpm","title":"rpm-software-management/rpm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/rpm-software-management/rpm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@leemgs in #117: @pmatilai , Thank you for giving me the valuable comments. At that time, I thought that we could handle  the pbzip2 command with *.tar.pbz2 file extension because the pbzip2 software uses the existing bzip2's library in order to be compatible with bzip2.  For example,  using *.tar.pbz2 for multi-core environment (pbzip2), using *.tar.bz2 for traditional bzip2. \r\n\r\nAs another appropriate way, How about we try to replace traditional bzip2  with pbzip2 software from now on because the pbzip2 software is fully compatible with bzip2 v1.0.2 or newer?  However, I am not sure if now is a suitable time to replace bzip2 with pbzip2 because two packages have different options as following: \r\n\r\n```\r\ninvain@u1604:~$ bzip2 --help\r\nbzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.\r\n\r\n   usage: bzip2 [flags and input files in any order]\r\n\r\n   -h --help           print this message\r\n   -d --decompress     force decompression\r\n   -z --compress       force compression\r\n   -k --keep           keep (don't delete) input files\r\n   -f --force          overwrite existing output files\r\n   -t --test           test compressed file integrity\r\n   -c --stdout         output to standard out\r\n   -q --quiet          suppress noncritical error messages\r\n   -v --verbose        be verbose (a 2nd -v gives more)\r\n   -L --license        display software version \u0026 license\r\n   -V --version        display software version \u0026 license\r\n   -s --small          use less memory (at most 2500k)\r\n   -1 .. -9            set block size to 100k .. 900k\r\n   --fast              alias for -1\r\n   --best              alias for -9\r\n\r\n   If invoked as `bzip2', default action is to compress.\r\n              as `bunzip2',  default action is to decompress.\r\n              as `bzcat', default action is to decompress to stdout.\r\n\r\n   If no file names are given, bzip2 compresses or decompresses\r\n   from standard input to standard output.  You can combine\r\n   short flags, so `-v -4' means the same as -v4 or -4v, \u0026c.\r\n\r\ninvain@u1604:~$\r\ninvain@u1604:~$\r\ninvain@u1604:~$ pbzip2 --help\r\nParallel BZIP2 v1.1.9     - by: Jeff Gilchrist [http://compression.ca]\r\n[Apr. 13, 2014]               (uses libbzip2 by Julian Seward)\r\nMajor contributions: Yavor Nikolov \u003cnikolov.javor+pbzip2@gmail.com\u003e\r\n\r\nUsage: pbzip2 [-1 .. -9] [-b#cdfhklm#p#qrS#tVz] \u003cfilename\u003e \u003cfilename2\u003e \u003cfilenameN\u003e\r\n -1 .. -9        set BWT block size to 100k .. 900k (default 900k)\r\n -b#             Block size in 100k steps (default 9 = 900k)\r\n -c,--stdout     Output to standard out (stdout)\r\n -d,--decompress Decompress file\r\n -f,--force      Overwrite existing output file\r\n -h,--help       Print this help message\r\n -k,--keep       Keep input file, don't delete\r\n -l,--loadavg    Load average determines max number processors to use\r\n -m#             Maximum memory usage in 1MB steps (default 100 = 100MB)\r\n -p#             Number of processors to use (default: autodetect [4])\r\n -q,--quiet      Quiet mode (default)\r\n -r,--read       Read entire input file into RAM and split between processors\r\n -S#             Child thread stack size in 1KB steps (default stack size if unspecified)\r\n -t,--test       Test compressed file integrity\r\n -v,--verbose    Verbose mode\r\n -V,--version    Display version info for pbzip2 then exit\r\n -z,--compress   Compress file (default)\r\n --ignore-trailing-garbage=# Ignore trailing garbage flag (1 - ignored; 0 - forbidden)\r\n\r\nIf no file names are given, pbzip2 compresses or decompresses from standard input to standard output.\r\n\r\nExample: pbzip2 -b15vk myfile.tar\r\nExample: pbzip2 -p4 -r -5 myfile.tar second*.txt\r\nExample: tar cf myfile.tar.bz2 --use-compress-prog=pbzip2 dir_to_compress/\r\nExample: pbzip2 -d -m500 myfile.tar.bz2\r\nExample: pbzip2 -dc myfile.tar.bz2 | tar x\r\nExample: pbzip2 -c \u003c myfile.txt \u003e myfile.txt.bz2\r\n\r\ninvain@u1604:~$\r\n```\r\n"}],"action":{"name":"View Pull Request","url":"https://github.com/rpm-software-management/rpm/pull/117#issuecomment-271286787"}}}</script>