免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2777 | 回复: 9
打印 上一主题 下一主题

[FreeBSD] pkgng 如箭在弦 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-07-20 22:02 |只看该作者 |倒序浏览
轉載一則 2012年7月12日 freebsd-ports-announce 公告。由 pkgng 領軍 Baptiste Daroussin 發表。當中透露會在 7 月 25 日把 ports tree CURRENT 正式轉為 pkgng repositories

Hi,

On behalf of the pkgng team I'm really pleased to announce pkg 1.0 RC1 (aka pkgng)

Only bug fixes will be accepted in the RC phase.

What is pkg
-----------
pkg is a new package manager for FreeBSD. It is designed as a replacement for
the pkg_* tools, and as a full featured binary package manager.

It provides a library that does all the work, and a frontend to be used by users

The ports tree is already able to transparently switch to pkgng by default by
adding WITH_PKGNG=yes to your make.conf

It provides a pkg2ng tool to help converting from an old installation to a new
one.

Test repositories are available on http://pkgbeta.freebsd.org/ (I try to update
them as fast as I can)

It will live forever in the ports tree (with a binary bootstrap in 9 and 10)

Why pkg?
--------
pkg_* tools have become hardly maintainable over the time, it lacks lots of
features most of people are expecting from a package manager:
  - binary upgrade
  - ability to search information about remote packages
  - real reverse dependency tracking
  - tracking leaves
  - many more.

Third party tools
-----------------

Tools supporting natively pkgng
  - ports-mgmt/portupgrade-devel (soon the main portupgrade will support)
  - ports-mgmt/pkg_cutleaves
  - ports-mgmt/poudriere
  - ports-mgmt/portdowngrade
  - ports-mgmt/tinderbox-devel (support can be improved)

Tools supporting pkgng via a patch (I hope it will be reviewed/integrated soon)
  - ports-mgmt/portmaster (https://github.com/pkgng/pkgng/b ... ch-portmaster-pkgng)

Tools being worked on (or I heard people are interested) :
  - salt support (in version 0.10) http://salt.readthedocs.org/en/v ... les.freebsdpkg.html
  - cfengine support
  - puppet support: (https://github.com/xaque208/puppet-pkgng)
  - ruby bindings: (https://github.com/baloo/libpkg-ruby/)
  - PackageKit

Links
-----
  - http://wiki.freebsd.org/PkgPrimer
  - http://wiki.freebsd.org/pkgng

Please report bugs in the github issue tracker:
  - http://github.com/pkgng/pkgng

Schedule
--------

The plan is to switch the ports tree to pkgng on CURRENT by default on July 25th
No dates are planned yet for other branches.

Note that there will be a NO_PKGNG knob for some time (undefined yet) for people
not will to switch on July 25th

Please also note that some ports won't work with pkgng right now, because pkgng
is more strict than pkg_install on purpose.
The major one is: nvidia drivers, because pkgng does not allow to overwrite a file
owned by another package, and we will not accept any hacks for that in pkgng.

Road to next version
--------------------

The road to the next version is already open and lots of work will happen, list
of ideas:
  - remote repositories will be able to display update messages
  - optionnal remote files repository to be able to search which packages to
    install if you want a known binary
  - real solver,
  - better support for multi repository
  - provides/requires support
  - stabilisation of the library API
  - reduce as much as possible scripting in packages to allow cross installation
  - many more

regards,
Bapt

论坛徽章:
89
水瓶座
日期:2014-04-01 08:53:31天蝎座
日期:2014-04-01 08:53:53天秤座
日期:2014-04-01 08:54:02射手座
日期:2014-04-01 08:54:15子鼠
日期:2014-04-01 08:55:35辰龙
日期:2014-04-01 08:56:36未羊
日期:2014-04-01 08:56:27戌狗
日期:2014-04-01 08:56:13亥猪
日期:2014-04-01 08:56:02亥猪
日期:2014-04-08 08:38:58程序设计版块每日发帖之星
日期:2016-01-05 06:20:00程序设计版块每日发帖之星
日期:2016-01-07 06:20:00
2 [报告]
发表于 2012-07-20 22:58 |只看该作者

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期:2015-05-04 22:32:03处女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午马
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56狮子座
日期:2013-09-08 08:37:52
3 [报告]
发表于 2012-07-21 07:55 |只看该作者
感谢分享 ^_^

论坛徽章:
4
白羊座
日期:2013-09-24 23:01:09技术图书徽章
日期:2013-10-25 07:33:452015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之江苏
日期:2016-12-22 10:45:16
4 [报告]
发表于 2012-07-21 08:44 |只看该作者
看不懂:wink:

论坛徽章:
0
5 [报告]
发表于 2012-10-01 09:56 |只看该作者
对于python2,python3共存,pkgng是如何处理的?
  1. [root@freebsd ~]# pkg search python32| awk '{print $1}' | xargs pkg install -y
  2. Updating repository catalogue
  3. Repository catalogue is up-to-date, no need to fetch fresh copy
  4. The following packages will be installed:

  5.         Installing python32: 3.2.3_1

  6. The installation will require 68 MB more space

  7. 0 B to be downloaded
  8. Checking integrity...pkg: WARNING: locally installed python27-2.7.3_3 conflicts on /usr/local/bin/2to3 with:
  9.         - python32-3.2.3_1

  10. pkg: WARNING: locally installed python27-2.7.3_3 conflicts on /usr/local/bin/python with:
  11.         - python32-3.2.3_1

  12. pkg: WARNING: locally installed python27-2.7.3_3 conflicts on /usr/local/bin/python-config with:
  13.         - python32-3.2.3_1

  14. pkg: WARNING: locally installed python27-2.7.3_3 conflicts on /usr/local/bin/python-shared with:
  15.         - python32-3.2.3_1

  16. pkg: WARNING: locally installed python27-2.7.3_3 conflicts on /usr/local/bin/python-shared-config with:
  17.         - python32-3.2.3_1
复制代码

论坛徽章:
0
6 [报告]
发表于 2012-10-01 09:58 |只看该作者
还发现一个bug


  1. [root@freebsd ~]# pkg search python32| awk '{print $1}' | xargs pkg install
  2. Updating repository catalogue
  3. Repository catalogue is up-to-date, no need to fetch fresh copy
  4. The following packages will be installed:

  5.         Installing python32: 3.2.3_1

  6. The installation will require 68 MB more space

  7. 0 B to be downloaded

  8. Proceed with installing packages [y/N]: [root@freebsd ~]#
复制代码

论坛徽章:
0
7 [报告]
发表于 2012-10-01 10:57 |只看该作者
本帖最后由 zeissoctopus 于 2012-10-01 10:58 编辑
wolf_london 发表于 2012-10-01 09:58
还发现一个bug


不是 bug,因為 pkg 是一個互動介面(它打開 tty 問你 yes or no) 有以下二個方法化解:

方法一,使用 xargs 時加上 -o 參數,變成:
  1. pkg search python32| awk '{print $1}' | xargs -o pkg install
复制代码


方法二,更改 /usr/local/etc/pkg.conf,加入一句 ASSUME_ALWAYS_YES: YES,強制 pkg 不再詢問你 yes 或 no
  1. ASSUME_ALWAYS_YES: YES
复制代码

更動完 pkg.conf ,你便可以使用 xargs 時不需要再加 -o 參數了
  1. pkg search python32| awk '{print $1}' | xargs pkg install
复制代码

评分

参与人数 1可用积分 +5 收起 理由
ulovko + 5 很给力!

查看全部评分

论坛徽章:
0
8 [报告]
发表于 2012-10-01 11:03 |只看该作者
wolf_london 发表于 2012-10-01 09:56
对于python2,python3共存,pkgng是如何处理的?


你在 /etc/make.conf 設定好 PYTHON_DEFAULT_VERSION 環境變數未?請參考 /usr/ports/Mk/bsd.python.mk 內的說明

论坛徽章:
0
9 [报告]
发表于 2012-10-05 21:48 |只看该作者
回复 7# zeissoctopus

明白了!
   

论坛徽章:
0
10 [报告]
发表于 2012-10-05 21:50 |只看该作者
回复 8# zeissoctopus


    我这边也设置了,还是同样的问题.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP