首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >哪个包提供Postgresql init init?

哪个包提供Postgresql init init?
EN

Ask Ubuntu用户
提问于 2014-12-28 14:08:23
回答 2查看 1.2K关注 0票数 2

如果我没有/etc/init.d/postgresql文件在包里,我能找到它吗?

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2014-12-28 14:30:43

我以为它是Q中的一个错误,但是搜索packages.ubuntu.com会在任何可用的包中找到一个文件,不管它是否已经安装。

如果您想在已经安装的包中找到一个文件,您可能会发现这个dpkg (等效于dpkg-query)选项很有用:

代码语言:javascript
运行
复制
   -S, --search filename-search-pattern...
          Search  for packages that own files corresponding to the given pattern.
          Standard shell wildchars can be used in the pattern.  This command will
          not  list  extra  files created by maintainer scripts, nor will it list
          alternatives.

也许可以试试dpkg -S postgresql

请参见:

  • 关于dpkg的Ubuntu服务器指南:https://help.ubuntu.com/lts/serverguide/dpkg.html
  • man dpkg页面:http://manpages.ubuntu.com/manpages/trusty/man1/dpkg.1.html
  • man dpkg-query页面:http://manpages.ubuntu.com/manpages/trusty/man1/dpkg-query.1.html
票数 2
EN

Ask Ubuntu用户

发布于 2014-12-28 16:35:38

/etc/init.d/postgresqlpostgresql-common提供,根据包索引的说法。

票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/566268

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档