In a foolhardy and stupid attempt to solve space issues on my desktop machine, I on purpose deleted Spotify from
/opt before realizing that I could remove it using the package manager. After deleting the folder I tried to purge Spotify using aptitude but deleting the files in
/opt had broken the package manager because of the expected but missing directories and files.
I managed to solve this problem by manually changing aptitudes files, purge Spotify and reinstall using aptitude without having to reinstall the whole system. Now I am worried that there is still "something" left that might not be OK after I manually made changes although everything seems to be fine.
Questions: Are there any databases or flat files being held by aptitude or dpkg where I can run a consistency check against it and the installed packages to see that they correlate and are OK?
Does the mentioned software (dpkg, aptitude, apt-*) have mechanisms to do this for me? I can not see any in the manuals but thought I would ask here in case someone know a way.