On 21.07.21 19:21, Alvaro Herrera wrote:
On 2021-Jul-21, Peter Eisentraut wrote:
On 21.07.21 01:45, Alvaro Herrera wrote:
<screen>
-<userinput>gunzip postgresql-&version;.tar.gz</userinput>
-<userinput>tar xf postgresql-&version;.tar</userinput>
+<userinput>tar xfa postgresql-&version;.tar.gz</userinput>
</screen>
The "a" option only applies when creating a tar archive ("c" command). So
adding it here does nothing.
Oh, so the current `tar x` knows to uncompress the file without any
additional options? I've been pointlessly adding 'z', 'j', 'a' for years ...
That means we can remove the `gunzip` line and replace it with nothing.
Unless you want to assume GNU tar, the gunzip is still necessary.