Subversion Linux

Subversion Client

The Subversion client contains the commands to interface with local and server repositories.

To install any application on Ubuntu, root permissions are required for the current user or you need to login as root.

How to check if Subversion is installed on Ubuntu and install it if not

Usually Linux systems install by default a version control system, but this depends on the Linux distribution.
To check if Subversion is installed on your machine, there are some very simple steps to follow:

Using the terminal

Check installation

1

Open a terminal

2

Type the following command:

svn —version

3

If subversion is installed on your machine, then you should see listed some information about svn client.
E.g.
svn_check_terminal_OK.png

4

If subversion is not installed on your machine, then an error will be displayed.
svn_check_terminal_NOK.png

Install subversion

Since we have determined that the Subversion program is not installed under Ubuntu using the Terminal, then we could install it as follows:

1

Open a terminal or use the terminal from steps before.

2

Type the command:

sudo apt-get install subversion

3

You might be asked for your password. Type it and hit Enter.

4

It is possible that a list of packages will need to be installed for Subversion to work, they will be listed, then the message "Do you want to continue [Y/n]", type y then Enter to agree with.

Using a visual program - Synaptic Package Manager

Check installation

2

After the program opens, a "Quick filer" window should be docked into the top area.
Type here the word "subversion", a list of packages should be listed below, while typing.

3

If subversion is installed, then it should have a green filled bullet, if not, the checkbox should be empty.

subversion_check_synaptic_NOK.png
Click image to enlarge.

Install subversion

After we have determined that the subversion program is not installed into the system… by following the steps mentioned above…

1

Click on "subversion" checkbox and choose "Mark for installation"

2

Click on "Apply" button on left of the "Quick filter" docked window.
A summary window should appear listing the changes needed for this package to be installed.

subversion_install_synaptic.png
Click image to enlarge.

Click on "Apply".
Wait for the downloads and install to finish.
The subversion package now should have a green bullet before.

3

Like other programs that are using subversion, MPLAB X also needs to use Subversion from the command line, so checking the installation from a Terminal would be advisable.
Please see topic - "Using the terminal -> Check installation"

4

Done !