Removed `rm` command in cygwin

cygwin;package-managementrm

Having the need to use a bash shell on a Windows computer (I'll spare you the details), I installed Cygwin, and a friend as a joke ran rm /usr/bin/rm on the terminal, and surprisingly nothing much happened other than rm being removed.

Is there any way to get back the rm program on Cygwin, or for that matter any distribution of Linux? As far as I know, there isn't any rm package on Red Hat or Debian systems I can reinstall.

Best Answer

rm is part of coreutils. So re-install that.

Cygwin doesn't have a fully-featured package manager, but you should be able to rerun setup*.exe (i.e. the original installer - it remembers your packages) to re-select coreutils.

Related Question