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.
About the Author
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 in different European countries and different European languages. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform where he is one of the most important contributors and the main developer.