how to completely remove <app> after apt-get install <app>;apt-get source <app>;apt-get build-dep <app>
I have read quit a few of the other posts here & other forums re use of apt-get, and understand that:
i. if I only install an application binary, that binary as well as the package is removed by apt-get remove <app>
ii. if that application had dependencies on other packages that were also therefore automatically installed, the orphaned dependency packages can be removed with apt-get autoremove.
iii. if I install the application sources, and sources of the dependency packages with apt-get source <app>; apt-get build-dep <app>, then neither i. or ii. above apply; the apt-get [auto]remove only removes the package reference(s) in the local apt data base & maybe the actual .deb file(s).uer
This seems to be happening on a Lubuntu 12.10 system; source and executable files are left behind; and dpkg-query -S <left_over_file> reveals that it is not 'owned' by any package known to dpkg.
Easy enough to delete the 'top level' application files, as they are all in a convenient directory of the user who installed the package sources initially ..
QUESTION is; how about all the header files etc related to the dependency packages that seem to be left in /usr/include ?
Is the only way to make a note of the dependent packages at install time, then look for corresponding directories in /usr/include; verify with dpkg-query -S that they are not 'owned' by any other still-installed package, and delete manually ??
thanks..
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- N1ck 7h0m4d4k15
- Solved:
- Last query:
- Last reply: