On 2017/3/11 0:49, Steve Lorimer wrote:
> Why is there no tar command?
Because it isn't installed, apparently.

> How do I install tar?
Short answer:

     $ pacman -S tar

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Long answer:

1. Update the file database:

     $ pacman -Fy

2. Find which package contains `tar`, searching by
   1) plain text (this matches whole file names so `.exe` is required):

     $ pacman -Fs tar.exe
     msys/tar 1.29-1
         usr/bin/tar.exe

   2) regular expression (this matches substrings):

     $ pacman -Fxs 'tar\.exe'
     mingw32/mingw-w64-i686-gnupg 2.1.16-1
         mingw32/bin/gpgtar.exe
     mingw32/mingw-w64-i686-libarchive 3.2.2-4
         mingw32/bin/bsdtar.exe
     mingw64/mingw-w64-x86_64-gnupg 2.1.16-1
         mingw64/bin/gpgtar.exe
     mingw64/mingw-w64-x86_64-libarchive 3.2.2-4
         mingw64/bin/bsdtar.exe
     msys/bsdtar 3.2.2-2
         usr/bin/bsdtar.exe
     msys/pax-git 20140703.2.1.g469552a-1
         usr/bin/paxtar.exe
     msys/tar 1.29-1
         usr/bin/tar.exe

3) Install the package. The `msys/` part isn't part of the name.

    $ pacman -S tar # Installs `msys/tar` version `1.29-1`.

-- 
Best regards,
LH_Mouse


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to