티스토리 뷰

Operating System/FreeBSD

Portsnap

do9dark 2015. 7. 12. 12:01

- Portsnap 구성 방법

Portsnap is a system written by Colin Percival for secure distribution of compressed, digitally signed snapshots of the FreeBSD ports tree. The distribution follows the client–server model and uses the transport protocol HTTP (pipelined HTTP).


The base system of FreeBSD includes Portsnap. This is a fast and user-friendly tool for retrieving the Ports Collection and is the recommended choice for most users. This utility connects to a FreeBSD site, verifies the secure key, and downloads a new copy of the Ports Collection. The key is used to verify the integrity of all downloaded files.


1. To download a compressed snapshot of the Ports Collection into /var/db/portsnap:

# portsnap fetch


2. When running Portsnap for the first time, extract the snapshot into /usr/ports:

# portsnap extract


3. After the first use of Portsnap has been completed as shown above, /usr/ports can be updated as needed by running:

# portsnap fetch

# portsnap update


When using fetch, the extract or the update operation may be run consecutively, like so:

# portsnap fetch update



- Portsnap 사용 방법

1. 설치할 대상 검색(Search)

# whereis vim-lite


2. 설치하는 방법(Installing Ports)

# cd /usr/ports/editors/vim-lite/

# make install clean

# make -DBATCH install clean

(-DBATCH 옵션 설정 시, 옵션을 물어보지 않고 기본값으로 설치)


3. 제거하는 방법(Removing Installed Ports)

# cd /usr/ports/editors/vim-lite/

# make deinstall



[+]Reference: https://www.freebsd.org/doc/handbook/ports-using.html

'Operating System > FreeBSD' 카테고리의 다른 글

tmux 설치 및 설정  (0) 2015.10.18
FAMP - Installing Apache, MySQL, PHP on FreeBSD  (0) 2015.07.22
python27, py-pip 설치 및 설정  (0) 2015.07.22
bash 설치 및 설정  (0) 2015.07.22
vim-tiny 설치 및 설정  (0) 2015.07.12
FTP 설정  (0) 2015.07.05
USER 관리  (0) 2015.07.05
날짜/시간 설정  (0) 2015.07.02
Network 및 Hostname 설정  (0) 2015.07.02
Raspberry Pi 2에 FreeBSD 11 설치하기  (0) 2015.06.30
댓글
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
링크
공지사항
Total
Today
Yesterday