How to Install Subversion 1.6.17 on CentOS 5.5 Server

Subversion, an open-source version control system, is a crucial tool for managing files and tracking changes made to them. This guide will walk you through the process of installing Subversion 1.6.17 on a CentOS 5.5 server. This version was released on June 1, 2011. If you have Subversion 1.6.16 installed, you can easily upgrade to 1.6.17. However, it’s important to back up your repository before performing a manual upgrade, which involves uninstalling the old version and installing the new one.

Before we begin, you should have the Apache Httpd Web Server installed on your Linux system. If you haven’t done so yet, you can follow this guide on Apache.

Step-by-Step Guide to Install Subversion 1.6.17 on CentOS 5.5 Server

Step 1: Download the Subversion RPM Packages

First, you need to download the latest Subversion RPM packages. You can do this by running the following command in your server’s terminal:

wget http://opensource.wandisco.com/centos/5/RPMS/i386/mod_dav_svn-1.6.17-1.i386.rpm http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-1.6.17-1.i386.rpm http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-devel-1.6.17-1.i386.rpm http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-perl-1.6.17-1.i386.rpm http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-python-1.6.17-1.i386.rpm http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-tools-1.6.17-1.i386.rpm

This command will download six RPM packages from the Wandisco open-source repository. These packages include the main Subversion package, the mod_dav_svn module, and several Subversion development and utility packages.

--2011-07-09 22:43:25-- http://opensource.wandisco.com/centos/5/RPMS/i386/mod_dav_svn-1.6.17-1.i386.rpm
Resolving opensource.wandisco.com... 212.7.198.163
Connecting to opensource.wandisco.com|212.7.198.163|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 80073 (78K) [application/x-redhat-package-manager]
Saving to: `mod_dav_svn-1.6.17-1.i386.rpm'

100%[================================================>] 80,073 37.3K/s in 2.1s

2011-07-09 22:43:28 (37.3 KB/s) - `mod_dav_svn-1.6.17-1.i386.rpm' saved [80073/80073]

--2011-07-09 22:43:28-- http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-1.6.17-1.i386.rpm
Reusing existing connection to opensource.wandisco.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 2197278 (2.1M) [application/x-redhat-package-manager]
Saving to: `subversion-1.6.17-1.i386.rpm'

100%[================================================>] 2,197,278 9.69K/s in 2m 50s

2011-07-09 22:46:18 (12.6 KB/s) - `subversion-1.6.17-1.i386.rpm' saved [2197278/2197278]

--2011-07-09 22:46:18-- http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-devel-1.6.17-1.i386.rpm
Reusing existing connection to opensource.wandisco.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 3413350 (3.3M) [application/x-redhat-package-manager]
Saving to: `subversion-devel-1.6.17-1.i386.rpm'

100%[================================================>] 3,413,350 11.1K/s in 5m 18s

2011-07-09 22:51:37 (10.5 KB/s) - `subversion-devel-1.6.17-1.i386.rpm' saved [3413350/3413350]

--2011-07-09 22:51:37-- http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-perl-1.6.17-1.i386.rpm
Reusing existing connection to opensource.wandisco.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 1106258 (1.1M) [application/x-redhat-package-manager]
Saving to: `subversion-perl-1.6.17-1.i386.rpm'

100%[================================================>] 1,106,258 9.18K/s in 2m 4s

2011-07-09 22:53:42 (8.71 KB/s) - `subversion-perl-1.6.17-1.i386.rpm' saved [1106258/1106258]

--2011-07-09 22:53:42-- http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-python-1.6.17-1.i386.rpm
Reusing existing connection to opensource.wandisco.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 1289255 (1.2M) [application/x-redhat-package-manager]
Saving to: `subversion-python-1.6.17-1.i386.rpm'

100%[================================================>] 1,289,255 7.12K/s in 2m 26s

2011-07-09 22:56:08 (8.60 KB/s) - `subversion-python-1.6.17-1.i386.rpm' saved [1289255/1289255]

--2011-07-09 22:56:08-- http://opensource.wandisco.com/centos/5/RPMS/i386/subversion-tools-1.6.17-1.i386.rpm
Reusing existing connection to opensource.wandisco.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 392647 (383K) [application/x-redhat-package-manager]
Saving to: `subversion-tools-1.6.17-1.i386.rpm'

100%[================================================>] 392,647 14.4K/s in 34s

2011-07-09 22:56:43 (11.3 KB/s) - `subversion-tools-1.6.17-1.i386.rpm' saved [392647/392647]

FINISHED --2011-07-09 22:56:43--
Downloaded: 6 files, 8.1M in 13m 15s (10.4 KB/s)

Step 2: Install the Subversion RPM Packages

After downloading the packages, you can install them using the RPM package manager. Run the following command to install the packages:

rpm -Uvh mod_dav_svn-1.6.17-1.i386.rpm subversion-tools-1.6.17-1.i386.rpm subversion-python-1.6.17-1.i386.rpm subversion-perl-1.6.17-1.i386.rpm subversion-devel-1.6.17-1.i386.rpm subversion-1.6.17-1.i386.rpm

This command will install all the downloaded packages on your server. The ‘-Uvh’ option tells RPM to upgrade the packages, print hash marks (‘#’) as the installation progresses (the ‘v’ stands for ‘verbose’), and display the status of the installation (the ‘h’ stands for ‘hash’).

[root@server ~]# rpm -Uvh mod_dav_svn-1.6.17-1.i386.rpm subversion-tools-1.6.17-1.i386.rpm subversion-python-1.6.17-1.i386.rpm subversion-perl-1.6.17-1.i386.rpm subversion-devel-1.6.17-1.i386.rpm subversion-1.6.17-1.i386.rpm
warning: mod_dav_svn-1.6.17-1.i386.rpm: Header V4 DSA signature: NOKEY, key ID 3bbf077a
Preparing... ########################################### [100%]
1:subversion ########################################### [ 17%]
2:subversion-devel ########################################### [ 33%]
3:subversion-perl ########################################### [ 50%]
4:mod_dav_svn ########################################### [ 67%]
5:subversion-tools ########################################### [ 83%]
6:subversion-python ########################################### [100%]

Step 3: Verify the Subversion Installation

After installing the packages, you should verify that Subversion has been installed correctly. You can do this by checking the version of Subversion installed on your server. Run the following command to check the Subversion version:

svn --version

This commandwill display the version of Subversion installed on your server. If the installation was successful, the output should display ‘svn, version 1.6.17’.

[root@server ~]# svn --version
svn, version 1.6.17
   compiled Jan 15 2011, 23:26:01

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

Commands Mentioned

  • wget – This command is used to download files from the internet. In this context, it is used to download the RPM packages for Subversion.
  • rpm -Uvh – This command is used to install or upgrade packages on your server. The ‘-Uvh’ option tells RPM to upgrade the packages, print hash marks as the installation progresses, and display the status of the installation.
  • svn –version – This command is used to check the version of Subversion installed on your server.
See also  How to Fix "/svnserver/svn/testrepo/db/txn-current-lock': Permission denied"

Conclusion

Installing Subversion on a CentOS 5.5 server involves downloading the necessary RPM packages, installing them, and verifying the installation. This process allows you to take advantage of Subversion’s powerful version control capabilities, making it easier to manage files and track changes. Remember to back up your repository before performing a manual upgrade to prevent data loss.

By following this guide, you can ensure that you have the latest version of Subversion installed on your server. This will allow you to manage your files more effectively and collaborate with others more efficiently.

See also  How to Fix "Warning: RPMDB altered outside of yum" Error on Linux Fedora 16 Server

Whether you’re running a top-tier web server, an Apache, Nginx, or LiteSpeed server, or hosting on a dedicated, VPS, cloud, or shared server, understanding how to install and upgrade essential tools like Subversion is a crucial skill for any webmaster or website administrator.

By mastering these skills, you can ensure that your server is always equipped with the latest tools, helping you to manage your files more effectively and keep your website running smoothly.

FAQ

  1. What is Subversion and why is it important?

    Subversion is an open-source version control system. It is important because it manages files and tracks changes made to them, allowing developers to keep track of their work and collaborate more effectively.

  2. What does the ‘rpm -Uvh’ command do?

    The ‘rpm -Uvh’ command is used to install or upgrade packages on your server. The ‘-Uvh’ option tells RPM to upgrade the packages, print hash marks as the installation progresses, and display the status of the installation.

  3. How can I verify the installation of Subversion?

    You can verify the installation of Subversion by checking the version installed on your server. This can be done by running the ‘svn –version’ command in the terminal.

  4. What is the purpose of the ‘wget’ command in this context?

    In this context, the ‘wget’ command is used to download the RPM packages for Subversion from the internet.

  5. What should I do before upgrading to a new version of Subversion?

    Before upgrading to a new version of Subversion, it’s important to back up your repository. This ensures that you don’t lose any data if something goes wrong during the upgrade process.

Comments

1 Comment

  • Avatar Subversion Download says:

    Subversion is a great way to maintain backed up copies of your files and directories across networks. If you are looking for something like this in your business, a subversion download is highly recommended for you. Just follow simple instructions you can find anywhere, or ask a professional.

Leave a Reply

Your email address will not be published. Required fields are marked *