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.

5

After packages are downloaded from internet, they will be installed on your system.
The install process should be finished when the command prompt line is free (blinking cursor near $ sign).

svn_install_terminal.png
Click image to enlarge.

6

Check the installation as mentioned in the "Check installation" steps.

7

Done !

Using a visual program - Synaptic Package Manager

Check installation

1

Open the Synaptic Package Manager from the X Start Menu -> System -> Synaptic Package Manager
You will be prompted to enter the password, please do so - remember, your user should have root permissions

synaptic_enter_password.png
Click image to enlarge.

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 !

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.