If I haven't got /etc/init.d/postgresql file in what package could I find it?
Asked
Active
Viewed 1,245 times
2
2 Answers
3
/etc/init.d/postgresql is provided by postgresql-common, according to the packages index.
muru
- 207,228
2
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.
Maybe try dpkg -S postgresql
See:
- Ubuntu server guide on dpkg: https://help.ubuntu.com/lts/serverguide/dpkg.html
man dpkgpage: http://manpages.ubuntu.com/manpages/trusty/man1/dpkg.1.htmlman dpkg-querypage: http://manpages.ubuntu.com/manpages/trusty/man1/dpkg-query.1.html
Xen2050
- 8,943