Custom .deb does not install all files
Solution 1:
I figured out what the problem was.
I tested my .deb
file via cycles of the following two commands:
sudo dpkg -i fman.deb
-
sudo dpkg -r fman
(equivalently,sudo apt-get remove fman
)
I found out that ... -r
excludes config files. To also delete config files, one must use sudo dpkg -P fman
.
During my testing, I must have manually deleted /etc/apt/sources.list.d/fman.list
at some point. But dpkg
(/apt
) still remembered that it had installed that file, so it didn't re-install it the next time I did dpkg -i
(equivalently, apt-get install
).
The solution was therefore to call sudo dpkg -P fman
. The next time I then did dpkg -i fman.deb
the fman.list
file was created as expected.