1 / 26

Package & Ports

Package & Ports. CSIE 基爾 @ NCU 網路開源社 Updated: 12232013. About Me. Kir NCU CSIE NCU Computer Center Network Management Host Management Systems Engineering. 課程. 相關學分: OS 等級 : 中 背景知識: FreeBSD 基本操作 課程目標 : 學會用各種方法裝套件. Basic. Package installation. Port Package Traditional method.

umay
Download Presentation

Package & Ports

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Package & Ports CSIE 基爾 @NCU網路開源社 Updated: 12232013

  2. About Me • Kir • NCU CSIE • NCU Computer Center • Network Management • Host Management • Systems Engineering

  3. 課程 • 相關學分:OS • 等級:中 • 背景知識:FreeBSD基本操作 • 課程目標: • 學會用各種方法裝套件

  4. Basic

  5. Package installation • Port • Package • Traditional method

  6. Port • Source file

  7. Package 跟用windows抓軟體很像。 • Binary file

  8. Compare

  9. Port

  10. Two config file 不加入亦可。 • Portsnap指令用到的設定檔:/etc/portsnap.conf • Make指令用到的設定檔:/etc/make.conf SERVERNAME=portsnap.FreeBSD.org SERVERNAME=portsnap.tw.FreeBSD.org SERVERNAME=portsnap.webamp.cc MASTER_SITE_BACKUP?= \ ftp://freebsd.csie.ncu.edu.tw/distfiles/${DIST_SUBDIR}/ \ ftp://freebsd.csie.nctu.edu.tw/pub/distfiles/${DIST_SUBDIR}/ MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}

  11. Update Port Tree 測機更新過,不需要做了。 • Before you use port… • 指令:portsnapfetch extract • 指令:portsnap fetch update • 更新日誌:/usr/ports/UPDATING

  12. port放的位置 • /etc/ports/[類別]/[套件名稱]/

  13. make • 指令:(與Makefile同個目錄底下) • make configure (正常情況可以省略這個步驟) • make install • make clean • Make deinstall 定義@Makefile

  14. Package Conflict 沒遇過他,別說你碰過freebsd!

  15. whereis • 指令:whereis [套件名]

  16. /var/db/ports • 存放安裝過的port紀錄

  17. Package

  18. pkg_add • 指令:pkg_add –r [目標套件名稱] • -r = remote fetch

  19. pkg_delete • 指令:pkg_delete [目標套件名稱]

  20. pkg_info • 直接輸入:顯示安裝的所有套件

  21. /var/db/pkg • 存放安裝過的pkg紀錄

  22. Traditional method

  23. fetch • fetch[下載網址]

  24. tar 壓縮 • 壓縮指令:tar –zcf [壓縮檔名].tar.gz [欲壓縮檔案OR目錄]

  25. tar 解壓縮 • 解壓縮指令:tar –zxvf [壓縮檔案][目標位置]

  26. ~Merry Christmas~

More Related