Update Magento to specific version (not latest)

会有一股神秘感。 提交于 2019-12-22 12:45:10

问题


I want to update a Magento 1.4.2.0 to 1.6.x.y. instead of the latest version 1.7.x.y

There are many articles on how to update a Magento installation to the latest version, but that´s not what I want. There are some forum threads where people are asking how to update to a specific version, but those all don´t sport a solution.

It seems like it is only possible to unpack the tar.gz of the specific version, but it is not possible to use the command line tool, i.e.

./mage config-set preferred_state stable
./mage upgrade-all --force

Is there a way to use the command line tool to update to a specific version?


回答1:


Two different ways of handling this, 1) Manually...

From my experience, what you end up doing is scrapping Magento Connect (which often is the source of all evil, when you've had it do partial upgrades two or three times in a row), downloading the whole package from the download archive (you have all the versions available from there on the Release Archives tab), unzipping them to a directory and then either on the server, copying them into your Magento root directory or from a remote workstation, ftp/scp uploading them to the server Magento root directory.

If you're serious about running Magento, you will have a development server that you do this to several times to find out where all the upgrade breakages are so you can weed out busted templates, detect forgotten core modifications, curse third party modules that don't survive, etc. It's really important to do this if you're depending on that e-commerce site for your income as intense suckage occurs when you aren't ready and sink the live site.

If you've modularized all your module overrides, created your own skin folders and custom template or used a well written template from a developer, it truly is just simply dumping the new version files on top of the old version files and overwriting everything (only after disabling all Magento caching and the compiler if you were using it and manually deleting all var/cache--? folders).

If, however, you've modified any of the files you are overwriting, you are in a world of hurt because you didn't do things properly.

Also, you have to deal with upgrading third party modules to work with the new version.

Then before committing the live site, backup all Magento application files and do a database dump.

2) Or use the command line tool as follows...

Since the original question was, "can you use the command line tool?" yes you can. Once you have the file saved from the download archive, use the following:

./mage install-file /home/login-name/path-to-download-file/magento-1.5.x.x.tgz

I've also used this on various module packages to inspect the contents. The mage command has a download only, download the package file, inspect the contents. If you like what it does, install it.



来源:https://stackoverflow.com/questions/17083556/update-magento-to-specific-version-not-latest

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!