I assumed it was a typo in the Q, but searching the packages.ubuntu.com would find a file in any available package, whether it's installed or not.
If you wanted to find a file in a package that's already installed, you might find this dpkg (equivalent to dpkg-query) option useful:
-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.
/etc/init.d/postgresql
is provided bypostgresql-common
, according to the packages index.I assumed it was a typo in the Q, but searching the packages.ubuntu.com would find a file in any available package, whether it's installed or not.
If you wanted to find a file in a package that's already installed, you might find this
dpkg
(equivalent todpkg-query
) option useful:Maybe try
dpkg -S postgresql
See:
man dpkg
page: http://manpages.ubuntu.com/manpages/trusty/man1/dpkg.1.htmlman dpkg-query
page: http://manpages.ubuntu.com/manpages/trusty/man1/dpkg-query.1.html