FreeBSD 包管理工具:Pkg

jopen 10年前

Pkg 是 FreeBSD 下一代的打包管理工具,准备替代当前的 pkg_info/pkg_create/pkg_add 工具,可以本地打包,也提供远程打包,主要是为了方便远程二进制包升级。

name: foo  version: 1.0  origin: category/foo  comment: this is foo package  arch: i386  www: http://www.foo.org  maintainer: foo@bar.org  prefix: /usr/local  licenselogic: or  licenses: [MIT, MPL]  flatsize: 482120  users: [USER1, USER2]  groups: [GROUP1, GROUP2]  options: { OPT1: off, OPT2: on }  desc: |-    This is the descrpition    Of foo       A component of bar  categories: [bar, plop]  deps:    libiconv: {origin: converters/libiconv, version: 1.13.1_2}    perl: {origin: lang/perl5.12, version: 5.12.4 }  files:    /usr/local/bin/foo: 'sha256sum'    /usr/local/bin/i_am_a_link: '-'    /usr/local/share/foo-1.0/foo.txt: 'sha256sum'  dirs:  - /usr/local/share/foo-1.0  scripts:    post-install: |-      #!/bin/sh      echo post-install    pre-install: |-      #!/bin/sh      echo pre-install

项目主页:http://www.open-open.com/lib/view/home/1406461457941