VPS 및 전용 서버(호스팅 컨트롤 센터) 도움말

How to Install and Use SVN on CentOS 6

Subversion or SVN is a name for Apache Subversion, an extremely popular version control system (VCS). SVN free or open source software and is licensed through Apache. SVN is a common component for software and website development. SVN can also be used to control software when there are many collaborators so that changes aren't lost.

DIFFICULTY Basic - 1 | Medium - 2 | Advanced - 3
RELATED PRODUCTS CentOS-based VPS or Dedicated Server


For these commands to work, you will need to be logged in as the root user. To install SVN and its dependencies, we will use yum.

$ yum -y install subversion , mod_dav_svn

After this installs, you will be able to use subversion on your system.

The following commands will convert a ./my-test-directory/ containing files into a working copy of a newly-created repository:

$ mkdir $HOME/my-test-directory
$ mkdir -p $HOME/.svnrepos/
$ svnadmin create ~/.svnrepos/my-test-repos
$ svn mkdir -m "Create directory structure." file://$HOME/.svnrepos/my-test-repos/trunk file://
$HOME/.svnrepos/my-test-repos/branches file://$HOME/.svnrepos/my-test-repos/tags

Committed revision 1.

$ cd ~/my-test-directory
$ svn checkout file://$HOME/.svnrepos/my-test-repos/trunk ./

Checked out revision 1.

$ svn add --force ./
$ svn commit -m "Initial import"
$ svn up

At revision 1.

Congratulations, if you made it this far then you have successfully installed SVN and created your very first repository.

이 글이 도움되었나요?
피드백을 보내주셔서 감사합니다. 고객 서비스 담당자에게 문의하시려면 지원 전화 번호 또는 위의 채팅 옵션을 이용하시기 바랍니다.
도와드릴 수 있어 기쁩니다! 더 도와 드릴 것이 있나요?
그것 유감스럽습니다. 혼동이 되었던 사항 또는 솔루션이 고객님의 문제를 해결하지 못했던 원인을 알려주세요.