How i install the source code in FreeBSD?

SuperuserRoot

New Member

Reaction score: 1
Messages: 4

I installed on my pc, FreeBSD 12.2 with xfce, when I type in the command
Code:
cd / usr / src / release
the message appears saying that the release directory does not exist, when I entered the file manager the src folder was empty, as do I download the source code?
 

wolffnx

Well-Known Member

Reaction score: 122
Messages: 482

I installed on my pc, FreeBSD 12.2 with xfce, when I type in the command
Code:
cd / usr / src / release
the message appears saying that the release directory does not exist, when I entered the file manager the src folder was empty, as do I download the source code?
you are using that cd sintax? or just for the example?
 

vigole

Aspiring Daemon

Reaction score: 783
Messages: 770

ls /usr/src
? If you have it, then you have it. If you don't:

mkdir /usr/src
pkg install security/ca_root_nss
svnlite checkout https://svn.freebsd.org/base/releng/12.2 /usr/src

Update:
svnlite update /usr/src

Clean-up (after failure: disconnected/interrupt):
svnlite cleanup /usr/src

Status:
svnlite status /usr/src

Info
svnlite info /usr/src

[EDIT] Correcting a mistake: unlock => cleanup
 
OP
S

SuperuserRoot

New Member

Reaction score: 1
Messages: 4

ls /usr/src
? If you have it, then you have it. If you don't:

mkdir /usr/src
pkg install security/ca_root_nss
svnlite checkout https://svn.freebsd.org/base/releng/12.2 /usr/src

Update:
svnlite update /usr/src

Unlock (after disconnected/interrupt):
svnlite unlock /usr/src

Status:
svnlite status /usr/src

Info
svnlite info /usr/src
It work!😆
 
Top