Drupal SVN Repo

Build a Subversion repository to hold multiple versions of Drupal core, modules and themes for building your Drupal-powered websites.

cd /tmp
mkdir drupal
cd drupal
mkdir 7.x
mkdir 7.x/core 7.x/modules 7.x/themes 7.x/core/current

Create the Subversion project:

svnadmin create /var/svn/drupal
svn import /tmp/drupal file:///var/svn/drupal -m "Initial import of Drupal repo."
find /var/svn/drupal -type f -exec chmod 660 {} \;
find /var/svn/drupal -type d -exec chmod 2770 {} \;
chown -R nobody.nobody /var/svn/drupal

Create the Trac project:

cd /var/trac
trac-admin drupal initenv

Adjust the file permissions:

chown -R nobody:nobody drupal

Add a Drupal core release to the repo
At this point, we will intentionally populate the Drupal core section of our repo with an outdated version so that we can demonstrate how to update it afterwards.
Download a tarball of Drupal 7.18:

cd /tmp
wget http://ftp.drupal.org/files/projects/drupal-7.18.tar.gz
tar
zxf drupal-7.18.tar.gz
rm -f drupal-7.18.tar.gz

Load the release into the repo as current:

svn_load_dirs.pl http://mysvnrepo.com/svn/drupal/7.x/core current /tmp/drupal-7.18 -t drupal-7.18

Update the Drupal core


Add the new version of Drupal to your repo
Download the new tarball:
cd /tmp
wget http://ftp.drupal.org/files/projects/drupal-7.18.tar.gz
tar zxvf drupal-7.18.tar.gz
rm drupal-7.18.tar.gz

Load the release into the repo as current:

svn_load_dirs.pl http://mysvnrepo.com/svn/drupal/7.x/core current /tmp/drupal-7.18 -t drupal-7.18

Recent Updates

  • 3 months 3 weeks ago
  • 3 months 3 weeks ago
  • 3 months 3 weeks ago
    php 8.x
  • 3 months 3 weeks ago
    10.6.7
  • 3 months 4 weeks ago
    Drop Centos 5/6 stuff