Browse Source

port: add Chinese translation

wizarot 6 years ago
parent
commit
a395a42d43
1 changed files with 27 additions and 0 deletions
  1. 27 0
      pages.zh/osx/port.md

+ 27 - 0
pages.zh/osx/port.md

@@ -0,0 +1,27 @@
+# port
+
+> MacOS包管理器软件(类似brew).
+
+- 搜索包:
+
+`port search {{搜索的包名}}`
+
+- 安装软件包:
+
+`sudo port install {{报名}}`
+
+- 列出已安装的软件包:
+
+`port installed`
+
+- 更新 port 自身,并获取可用包的最新列表:
+
+`sudo port selfupdate`
+
+- 升级过时的软件包:
+
+`sudo port upgrade outdated`
+
+- 删除已安装的软件包的旧版本:
+
+`sudo port uninstall inactive`