You have debian, kubuntu, ubuntu or knoppix and need to find the contents of an installed package.
To find the contents of an installed package and show all the files you can use the following command dpkg with the parameter -L. e.g.
dpkg -L mysql
dpkg -L apt
To show all the files postgres writes to etc you can use the following. We first find all the postgres packages we use:
ls02:/etc# dpkg -l|grep postgres
ii postgresql 8.3.9-0lenny1 object-relational SQL database (supported version)
ii postgresql-8.3 8.3.9-0lenny1 object-relational SQL database, version 8.3 server
ii postgresql-client-8.3 8.3.9-0lenny1 front-end programs for PostgreSQL 8.3
ii postgresql-client-common 94lenny1 manager for multiple PostgreSQL client versions
ii postgresql-common 94lenny1 PostgreSQL database-cluster manager
ii postgresql-contrib-8.3 8.3.9-0lenny1 additional facilities for PostgreSQL
now we use:
dpkg -L postgesql-8.3|grep etc
ls02:/etc# dpkg -L postgresql-8.3|grep etc
Now you do this for the other packages postges installed.
Disclaimer:The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
About the Author
Author: Wim Peeters - Keskon GmbH & Co. KG
Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.