Set ports and portsnap in China for FreeBSD

 1.Install ports:
# portsnap fetch -s portsnap.cn.freebsd.org

2. Edit /etc/portsnap.conf
SERVERNAME=portsnap.tw.FreeBSD.org

3. Download portsnap
# portsnap fetch extract

Update
# portsnap update

4. Edit file /etc/make.conf and add configuration as follows:
FETCH_CMD=axel -n 30 -a # Open 30 threads to download
DISABLE_SIZE=yes
MASTER_SID_OVERRIDE?=http://mirrors.163.com/freebsd/ports/distfiles/


Comments

Popular posts from this blog

BdsDex: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-OABE-20A5-E582" from PciRoot(0x0)/Pci (0x2, 0x0)/Stat(0x0,0xFFFF,0x0) : Not Found

How To Install Nginx, MySQL and PHP (FEMP) Stack on FreeBSD 13.0

Install samba on FreeBSD(on VMware Workstation) to share files with Window.