How do I update modules?

Events happening in the community are now at Drupal community events on www.drupal.org.
CraftyDevon's picture

Hello
I was wondering how I update the modules included in the O.P package? I notice some of them (cck) don't even appear in the Modules folder; where are they?

Also, will it mess with configurations if we just delete the mod and re-install it?

Thanks
Devon

Comments

modules are in /sites/all/modules

stattler's picture

As usual, 3rd party modules are in /sites/all/modules. CCK is also in there. As of today, all the modules are updated except the Calais module. Regarding update, all you need is to overwrite the existing module, and run drupal update.php file. Here are the steps of updating Calais module:

Suppose you are in /home/updater folder.

  1. wget http://ftp.drupal.org/files/projects/opencalais-6.x-3.4.tar.gz (this will download the latest Calais Module)
  2. tar zxf opencalais-6.x-3.4.tar.gz (this will extract the module)
  3. cp -r -f opencalais /drupalroot/sites/all/modules/ (this will overwrite the /sites/all/modules/opencalais with /home/updater/opencalais
  4. Browse http://www.yoursite.com/update.php and follow the instructions on the screen

That's it :)

WARNING:
As usual, you should backup your database and files before applying any update.

Drush

febbraro's picture

If you use drush it is even easier.

You can just go to your drupal root and drush -u 1 update. This will update all out of date modules and run update.php. Like @stattalk said though, ALWAYS backup your code and database.

Thanks!

CraftyDevon's picture

Thanks Guys,
Loving O.P.!

Devon

drush for Drupal core?

stattler's picture

Just wondering if drush will update Drupal core as well?

@stattalk, don't think so.

irakli's picture

@stattalk, don't think so. Drush is extensible, so in theory anything can be added, but I have not seen a plugin for core update.

.............................................
http://twitter.com/inadarei

How 2 update drupal core without drush?

digitaltechnocrat's picture

How do you update the drupal core module without using drush? (with just the web interface and FTP). what steps do u take? It says i need 2 update 2 Dupal 6.15 [says security update required]

I follow the following

stattler's picture

I follow the following steps.
1. backup existing database
2. backup existing drupal root (folder drupal is installed)
3. download the latest drupal tar file, then untar (unzip it using the web interface if you have that facility). Once you extract it, you will get a folder called openpublish.
4. Remove the sites folder from openpublish.
5. Now upload all the files and folders in openpublish to your drupal root folder. this will replace all files and folders in your drupal root.

That's it!

Yeap, you basically download

irakli's picture

Yeap, you basically download new Drupal, remove sites folder and replace it with the "sites" folder from existing OpenPublish installation. Backing everything up along the way, like stattalk suggested is always a great idea.

.............................................
http://twitter.com/inadarei

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: