161

I am trying to install svn and am running into issues. The command I am running is sudo apt-get install svn. When I run this, I get the error "Unable to locate package svn". Why is this? How do I fix it?

girardengo
  • 4,925
  • 1
  • 26
  • 31
coffee
  • 1,611
  • 2
  • 10
  • 3

3 Answers3

244

The package is called subversion (abbreviated svn). You've to install it by running:

sudo apt-get install subversion

This package contains the svnserve daemon too (not started by default). If you want to host a subversion server over HTTP, you must install apache2 and configure it accordingly.

matan h
  • 105
  • 3
Lekensteyn
  • 171,743
  • 65
  • 311
  • 401
  • 1
    Is there a client only package as well? Or you have to install the server as well. – Martin Jun 04 '14 at 11:13
  • 2
    @Martin The server binary (`svnserve`) is only 85 KiB, the administration tool `svnadmin` is 72KiB. Their manpages are some KiB. Just install the `subversion` package to get all subversion programs (`svnserve` "server", `svn` client (256KiB)). You do not need a server like Apache for the client functionality. – Lekensteyn Jun 04 '14 at 12:17
21

There is no package with the name of SVN . You may type this command on terminal.

sudo apt-get install subversion 

Then you can check it using svn command

svn co "type here your checkout URL without double quotes"

svn status 

svn commit ...........your file name 
muru
  • 193,181
  • 53
  • 473
  • 722
Ashish Saini
  • 541
  • 4
  • 7
6

apt-get is an amazing package manager, but often the names of packages aren't exactly named the way you would expect. (Obviously not the fault of apt-get) for example, downloading java isn't apt-get install java. as for your issue, the name of the svn package in apt-get is subversion.

apt-get install subversion

have fun with your subversion needs!