How to Install SVN on Xserve
Apache Subversion, or SVN, is an open-source software versioning and a revision control system. In simple words, SVN is a tool that keeps track of all the different versions of your source files. Xserve is an enterprise server product manufactured by Apple. Installing and setting up SVN on an Xserve server is not a difficult task. Note that Xserve servers come with the Mac OS X preinstalled.
Instructions
-
-
1
Open a Web browser and navigate to the official CollabNet website to download SVN for Mac OS X. Click on the "Download" button in the "Universal Subversion 1.6.17 Binaries for Lion (Mac OS X 10.7)" section. Save the installer on your hard disk drive.
-
2
Run the installer and follow the instructions on your screen to install Subversion. The installation does not add any new files in the application directory because the program does not have a graphical user interface. The command line commands are installed in "/usr/local/bin."
-
-
3
Go to the "Applications" menu, navigate to "Utilities" and click on the "Terminal" tool to open it. Type "pico .bash_profile" and press "Enter" to create a ".bash_profile" file and open it in the Pico text editor.
-
4
Type "export PATH=/opt/subversion/bin/:$PATH" (without quotes) in the editor, press the "Ctrl" and "X" keys simultaneously, save the file by pressing the "Y" key and press "Enter" to confirm.
-
5
Type ". .bash_profile" in the Terminal and press "Enter" to make it read the file. Note that there must be a space between the two periods.
-
6
Type "svnadmin create SVNrep" in the Terminal and press "Enter" to create a new repository named "SVNrep" in the home directory. You must create a repository to use SVN.
-
7
Run the following commands in the Terminal to create a folder named "test" and a "test.txt" file inside the test folder:
mkdir test
touch test/test.txt -
8
Import the project into the repository using the command:
svn import test file:///Users/username/SVNrep/test -m "Initial import"
Replace "Initial import" with the changes you make to the repository. Each version of the repository is called a revision in SVN. If you import a second version of the test project, you will receive a "Committed revision 2" message.
-
1
References
Resources
- Photo Credit Hemera Technologies/AbleStock.com/Getty Images