I have quite a messy installation on hand, that i would like to clean up.

the original installation has been updated and the package information in Magento Connect don't mirror the actual content of the installation. I now want to remove some extensions.

The obsolete extension files that need to be removed are stored in the package.xml file that comes with the extension, so my thought was to put this file into /var/package and remove the extension via Magento Connect.

Problem is, that Magento Connect doesn't recognize *.xml files I put there. I know that the information displayed in MC are stored in /downloader/cache.cfg. When I delete this file, the list of installed packages in MC is empty.

Is there a way to rebuild this list from the *.xml files stored in /var/package?

1 Answer 1


This should be possible via the command line:

./mage clear-cache
./mage mage-setup .
./mage sync --force
./mage sync-pear --force
  • almost. ./mage sync --force stopps with: sync: Channel 'connect.magentocommerce.com/community' doesn't exist
    – perler
    Aug 27, 2014 at 15:32
  • ok, this seems to happen when processing Mage_All_Latest- screencast.com/t/o6XsDYSHM
    – perler
    Aug 27, 2014 at 17:15
  • Sounds strange. Did you note the dot after mage-setup? You could also try to manually add the channel via ./mage channel-add http://connect20.magentocommerce.com/community. And maybe try to replace the problematic package file with the original one.
    – Simon
    Aug 27, 2014 at 21:35
  • 1
    it was a problem in an .xml file of an extension, I tried to simply copy a package.xml file into /var/package which oviously doesn't work this way..
    – perler
    Aug 27, 2014 at 22:23
  • Yeah, you always have to rename it in order to conform to the naming scheme of all the files.
    – Simon
    Aug 28, 2014 at 5:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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