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

Aspiring Daemon

Reaction score: 231
Messages: 678

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

Daemon

Reaction score: 1,567
Messages: 1,399

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!😆
 

scottro

Daemon

Reaction score: 910
Messages: 2,061

Or use gitup which is much smaller, and used just to pull sources and ports. First check your /usr/local/etc/gitup.conf set the release to what you wish (the default, last I checked was 11.4) and then just type
gitup release
 

Alain De Vos

Son of Beastie

Reaction score: 803
Messages: 2,610

I do a
Code:
git clone -o freebsd -b releng/13.0  https://git.FreeBSD.org/src.git    /usr/src

Followed by a regular
Code:
cd /usr/src
git pull --rebase
 
Top