将Magento升级到特定版本(不是最新版本)
我知道我可以使用以下命令升级到最新版本:
I know that I can upgrade to the latest version with the following command:
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
是否可以设置一个不同的包名称而不是Mage_All_Latest.我也尝试过通过./mage install-file进行安装,但出现错误,表明该文件无效.
Is there a way to set a different package name instead of Mage_All_Latest. I have tried also to install via ./mage install-file but I got an error that the file was not valid.
Mage安装用于安装软件包,因此不起作用.
Mage install is used to install packages, so this does not work.
./mage install-file /path/to/full/mage/release
./mage安装似乎没有版本参数,因此我相信您需要分别安装每个软件包.
There does not seem to be a version argument for ./mage install, so I believe you need install each package separately.
您可以从以下位置下载软件包归档文件: http://ext.topmage.com/.
You can download package archives from here: http://ext.topmage.com/.
查找您的版本 http://ext.topmage.com/extensions/8a/a0/Mage_All_Latest/
打开package.xml文件,查看需要哪些软件包依赖项.
Open the package.xml file and see what package dependencies are required.
例如
<package>
<name>Mage_Core_Modules</name>
<channel>community</channel>
<min>1.9.2.2</min>
<max>1.9.2.2</max>
</package>
然后从本地的某个地方的 http://ext.topmage.com/下载每个版本的软件包.您的系统,例如/usr/local/src
Then download each package for your version from http://ext.topmage.com/ somewhere locally on your system e.g. /usr/local/src
然后为每个程序包运行以下程序.
Then run the following for each package.
$ ./mage install-file /usr/local/src/Mage_Core_Modules-1.9.2.2.tgz --force
我还必须删除./pkginfo/Mage_All_Latest.txt并修改./downloader/lib/Mage/Connect/Validator.php,以防止文件已经存在"错误.
I also had to delete ./pkginfo/Mage_All_Latest.txt and hack ./downloader/lib/Mage/Connect/Validator.php to prevent file 'already exists' error.