Decoupling Drupal 7 from Ubuntu/Debian package management I'd like to decouple my Drupal 7 installation from the OS package management.

This is because Ubuntu's current LTS version (14.04) has Drupal 7.26, imported from the Debian packages at the time of release - it's now fixed at that version and they won't move to a later one.

Some security fixes have been backported, but not necessarily all. This is mostly due to policy issues with regards to software versions within the Ubuntu project, so the best solution is to reinstall my Drupal instance so that it's not under the control of the package management system.

I've been looking for information on this for a few days now, and can't find much of use.

I have the Backup and Migrate module, so can use that. I also have drush installed (albeit, ironically, via package management).

I can't get drush to update Drupal at all. My experience here (remembering back to Drupal 6) is that the Ubuntu package management has set some kind of flag that means Drupal doesn't check for updates for itself, only for modules &amp; themes. "sudo drush up drupal" results in "specified project not found" for the drupal project.

Drush is updating modules and themes OK, just not core - so I believe I can probably install via drush.

My current plan is this:


Perform a backup (drush bam-backup)
Stop apache (service apache2 stop)
Remove the packaged version of Drupal (apt-get remove drupal7)
Install Drupal (drush dl drupal)
Restart apache (service apache2 start)
Restore the backup (drush bam-restore)


Does this look OK? Will I need to do anything between steps 4 &amp; 6 (like set up the website system again)? Or am I approaching this the wrong way entirely?
If the site were mine I would first test the database against a new installation before I destroyed the old site.

I have never used the bam module so I do not know a lot about that.  What I would do is dump the DB (drush sql-dump > site.tld.data.sql or something like that).  Restore that backup to a new database and install the latest release of Drupal 7 and attach that to the restored database.  With the new code base you will need to run drush updb to get all the SQL updates to your older database.  The issue you are really going to face is modules.  How have you installed modules for your existing site?  Manually?  If you have just copy your sites/all/modules (or wherever they may be) to the test Drupal instance.

Of course you could do all of this locally on a dev machine without touching your site if you have that setup (Linux Desktop?).

After I got a warm fuzzy with the database being OK to run on a manually installed Drupal you could then attack your site and replicate the process.  Again I am unfamiliar with the BAM module.