Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Been following a tutorial but it installs dev version of Magento2. How can I install the stable version 2.1.x ?

cd /var/ww/html/

git clone https://github.com/magento/magento2.git

cd magento2

composer install

share|improve this question

You can switch to the 2.1 branch after cloning the repository.

git checkout 2.1
share|improve this answer

Checkout to the correct branch first. git checkout 2.1

Edit: you can also checkout to a specific tag. git tags will reveal what's available.

You may also want to look at installing from composer directly. I prefer it that way myself but you do need to sign up to Magento and get your authentication keys (which are like a username and password to download Magento 2) this way so it can be a bit of a pain to get going the first time.

You use a command like this: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition YOUR_FOLDER_NAME

share|improve this answer
    
Does it also not use tags? Could this OP not use a tag such as '2.1.*"? – camdixon 10 hours ago
    
@camdixon I was just wondering the same thing. I am on a mobile looking at the repo now but there's no mention of tags. Running git tags will show if there are. – Andy Myers 10 hours ago
    
they are there actually. 2.1.1 and 2.1.2 exist as tags – camdixon 10 hours ago
    
@camdixon does github.com hide tags on its mobile site? – Andy Myers 10 hours ago
    
Looks like it yes, I could not find on my phone when I just searched. – camdixon 10 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.