有用于shell脚本的软件包管理系统吗?


8

是否有一个系统级封装(认为npmcpan对于shell脚本等)?具体来说,在Ubuntu上?

Answers:


4

https://github.com/bpkg/bpkg/可以安装:

curl -Lo- "https://raw.githubusercontent.com/bpkg/bpkg/master/setup.sh" | bash

并允许您安装以下软件包:

bpkg install term -g

软件包只是Git存储库中的package.json顶级。


1
值得注意的是,这不仅限于Ubuntu。该软件包管理器还将与OS X和其他Linux发行版一起使用。
davidcondrey

@davidcondrey yup,POSIX长寿:-)
Ciro Santilli冠状病毒审查六四事件法轮功

2

据我所知,尚无此类用于shell脚本的打包/共享工具...我认为,因为不仅有一种脚本语言(您可能想到过bash,但还存在其他shell),而且因为该任务是一个shell脚本必须完成的工作通常非常具体。

实际上,您可以将一组gnu工具(sed,awk,grep等)视为一组基本(或更复杂)的工具,这些工具以deb软件包的形式分发...

不过,您可以在网上找到一些示例,例如此博客文章中的列表...



By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.