10

Issue

Some main commands not found in MSYS2 after update-core.

Environment

  • Windows 8.1 64bit
  • msys2-x86_64-20150916

Detail

I introduced MSYS2 to my computer and performed update-core. However, after the update, when I type pacman or update-core, the terminal says bash: pacman: command not found. I rebooted MSYS2 and tried the same process but the result was the same. I re-installed MSYS2 and tried the same process but the result was the same. I'd like to get things right but don't know how.

Any suggestion would be appreciated. Thanks.

dixhom
  • 2,419
  • 4
  • 20
  • 36
  • 1
    note the low number of followers for the msys* and mingw* tags here on S.O. You may be better help on the MSYS mailing lists. MSYS2 seems to be ontopic also. I use http://mingw.5.n7.nabble.com/MinGW-MSYS-f26539.html when I have a mingw/msys problem and find it very easy to use. Good luck. – shellter Jan 15 '16 at 23:04
  • 4
    What happens if you type `/usr/bin/pacman`? What about `ls /usr/bin` ? What about `echo $PATH`? Is there anything unusual at all in the output of the update-core script? – David Grayson Jan 16 '16 at 00:33
  • 2
    The MSYS2 mailing list is here: https://sourceforge.net/p/msys2/mailman/msys2-users/ ; MSYS is different from MSYS2. – David Grayson Jan 16 '16 at 00:34
  • 1
    @DavidGrayson : Thanks for the good ideas and clarification on resources. Hopefully there is a better interface to browsing that group that sourceforge (IHMO ;-) ) . Good luck to all. – shellter Jan 16 '16 at 02:03
  • Thanks everyone for comments. – dixhom Jan 16 '16 at 05:02
  • 2
    > David Grayson `ls /usr/bin` gave me a list of various commands. `/usr/bin/pacman` yielded `error: no operation specified (use -h for help)`. Wow, it worked! Then I added `D:\msys64\usr` to PATH variable and everything seems to work fine now. Thank you! – dixhom Jan 16 '16 at 05:11
  • 2
    FYI `update-core` was deprecated sometime in early 2016. Only need to run `pacman -Su` in future. – roblogic Apr 18 '16 at 01:56

3 Answers3

7

update-core is deprecated; its functionality is now handled by pacman; run pacman -Syuu.

Adriaan Joubert
  • 185
  • 1
  • 4
  • 15
2

Had the problem twice with two different Win10 VMs in a matter of days. For me, the manifestation was "diff: command not found". No obvious change in $PATH. C:\msys64\usr\bin no longer has diff in it.

1

For me running: pacman -S openssh solved it (found it here)

hashark
  • 331
  • 5
  • 18