读书人

保管理软件

发布时间: 2013-03-06 16:20:31 作者: rapoo

包管理软件
常见的各类包管理软件对比

包管理分类
操作系统包管理 如: yum (RHL), apt-get(ubuntu), homebrew(mac)语言级别 如: npm(nodejs), gem(ruby),pip(python), bower(javascript), maven(java)

总结
包管理几乎都有list, install, uninstall, update|upgrade, search 等功能语言级别时, 因涉及到应用, 会分 local与global, 会有工程配置如package.jsonmaven比较特殊, 不支持install, 需要手工配置pom.xml (需要不少插件)

一些列表
name list install uninstall update search initapt-get apt-cache install uninstall upgrade apt-cache search yum brew list install uninstall upgrade search npm local -g --save prune update /regexp package.jsongem --local local cleanup update --remote Gemfile (bundle init)pip freeze install uninstall ---- search bower list -g --save cache-clean update search component.json

其它: macports(mac),easy_install(python),nuget(vs),grunt,gradle(java),pear(php),cpan(perl)


心得
yum, apt-get, npm, gem 几乎是官方的, 但mac, python还是选择性较多install 并保存至 .json 配置时, 使用 --save参数, 但gem,python不清楚,待补充有些update是更新版本信息的, upgrade才是升级所有组件组件的依赖版本冲突如何办, npm的方法确实不错




各种镜像:
http://ruby.taobao.org/
http://gems.rubyforge.org/
http://gems.github.com/

读书人网 >开源软件

热点推荐