SVN as a “Package Management” Tool

Posted in: Development

Steve O’Grady and I have a recurring debate about package management systems and which approach is best for users. Somewhere during the discussion I realized that over the last year or two, I’ve actually begun using Subversion as a package management system. Pretty much every open source web application I use on a production server is an SVN checkout.

It makes installing security updates a snap - just ssh into my server and “svn up” for the app that needs an update.

Steve and I even agree on this one. ;)

Popularity: 6% [?]

Posted April 6th, 2007 @ 6:07 AM

5 Replies

  1. Roger adds this Comment:

    Sounds great :)

    April 9th, 2007 at 6:04 pm

  2. Joe Hildebrand adds this Comment:

    For added points, use SVN as a meta-package tool. Create a local svn repository, check out the root. Next create a file called “externals” that looks like this:

    django http://code.djangopr[...]django/trunk

    with one line per project you want to track. Next, create a bash script with something like this in it:

    svn propset svn:externals . -F externals

    Check both the script and your externals file in. Now, the magic. “svn up”. This will checkout all of the projects you want to track. When you want to update all of the projects, just “svn up” again.

    April 12th, 2007 at 3:21 pm

  3. Alex adds this Comment:

    Yep. For example, I’ve got WordPress as svn external for my alexking.org SVN repo and PHP Tag Engine as an svn external for Tasks Pro™ and Tasks™. I’ve linked to a great svn externals tutorial on phptagengine.com.

    April 12th, 2007 at 3:47 pm

  4. Package management for web apps? - Eugen Pyvovarov adds this Pingback:

    […] -  деякі люди пропонують використовувати систему контролю версій для цих […]

    February 24th, 2008 at 4:16 pm

  5. tecosystems » Utter Crap?: Matt Asay and The Linux Desktop Q&A (and Video) adds this Pingback:

    […] the application installation process on Linux as superior to that found on Macs or PCs - though I debate the subject regularly with friends on other […]

    March 1st, 2008 at 4:09 pm

Add a Comment

Please note: Use of a non-personal web site or blog in the field below and/or comments that are off-topic, personal attacks, or support requests will likely be removed at my discretion.

Note: This post is over a year old. You may want to check later in this blog to see if there is new information relevant to your comment.

Around the web » « Best Defense: History or Technology?

About This Site

This is the personal web site of Alex King, an independent developer based in Denver, Colorado USA. More...


Crowd Favorite

Crowd Favorite is my software and web development business.

We build web applications, design and develop custom WordPress themes and plugins, and build custom sites using WordPress as a CMS.


I also have a tumblog that aggregates my online content from other services (Twitter, Flickr, del.icio.us. etc.).

Ads