In Git for Windows Bash, how to install get-apt and sudo and all those basic commands?
Update
With WSL, It's now possible to run a complete Linux system, like Ubuntu, inside Windows. and one can install everything, including Node and Git there in the WSL Linux. Just like Sarah Cooley pointed in the other answer from her.
Pre-WSL Answer
If you want Node.js and npm on Windows, you can download them from nodejs.org, apt-get
is for Linux (Debian based). Here's a guide.
And Git for Windows is a Windows based Git distribution, it's a separate project from Node.js, and it provides a limited set of linux-like CLI tools compiled natively for Windows.
If you setup PATH
correctly, you can indeed run node commands in the Bash shell of Git for Windows.
Git Bash | bash: sudo: command not found (and others)
As stated by @tkausl, Git Bash does not come with such commands.
I've also found a similar post on Stack Overflow, the top answer stating the same.
sudo/conda/pip/PATH not found on Git Bash
You'll probably want to just run the regular windows installer (from the python site - https://www.python.org/downloads/) and then add the appropriate folder with the python
and pip
binaries to your $PATH system variable.
There are package managers like https://community.chocolatey.org/packages for windows, but as you can see they do not come as standard on windows.
Git Bash Command on Windows, yarn command not found
You probably just did not install yarn yet.
Have a look at the yarn installation for Windows here:
https://yarnpkg.com/lang/en/docs/install/
Command not found on GIT bash
That line should be a part of your Vagrantfile
. You should not run that line in your terminal.
See here for an example of how I've used that line in my Vagrantfile
.
How to add man and zip to git bash installation on Windows
2016: The zip
command can be installed from GoW (Gnu On Windows). man
is not provided (too big).
It is to note, however, that if you only want to add the zip
command from GoW, still the whole GoW system has to be downloaded and installed. Then you can delete the other commands from the bin
directory, however make sure to keep the needed dlls in the directory.
Update 2021: tar/zip are by default installed on Windows 10.
7-zip based solutions are available below.
How to install sudo and mpicc in windows?
sudo is a linux command for running a program as administrator. It can not be used in windows.
If you are using windows but need to use linux only programs i sugest trying out wsl.
apt is also a program that does not work in windows. It is a program used for installing and updating programs in debian based linux distributions.
Related Topics
Socket Programming Send() Return Value
Apache/Httpd /Var/Www/HTML/ .Cgi Scripts Throw 500 Internal Server Error
Removing File from Folder in Linux
Calculator in Assembly Language - Linux X86 & Nasm - Division
What Is a Good Interface for a Linux Device Driver for a Co-Processing Peripheral
What Is The Downside of Updating Arm Ttbr(Translate Table Base Register)
How to Make Libusb Library Visible to Another Program
How to Remove Everything Else in a Folder Except Filea
Using Curl with Commands in Go
How to Execute a Command in a Bash Script and Then Focus The Appearing Window
Sending Snmp2 Trap Message from Linux Command Lne
Catch Signal in Bash But Don't Finish Currently Running Command
Tail Logback Log Files with Log Level Coloring in Linux Server
Expect Utility Is Not Working When Executing from Jenkins
Why Can't I Install Any Packages with Ghc 7.8.4 on Raspberry Pi