如果我没有/etc/init.d/postgresql
文件在包里,我能找到它吗?
发布于 2014-12-28 14:30:43
我以为它是Q中的一个错误,但是搜索packages.ubuntu.com会在任何可用的包中找到一个文件,不管它是否已经安装。
如果您想在已经安装的包中找到一个文件,您可能会发现这个dpkg
(等效于dpkg-query
)选项很有用:
-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
请参见:
man dpkg
页面:http://manpages.ubuntu.com/manpages/trusty/man1/dpkg.1.htmlman dpkg-query
页面:http://manpages.ubuntu.com/manpages/trusty/man1/dpkg-query.1.html发布于 2014-12-28 16:35:38
/etc/init.d/postgresql
由postgresql-common
提供,根据包索引的说法。
https://askubuntu.com/questions/566268
复制相似问题