I created (via CMake but that is not important) a debian package which contains my application: my_app.deb
which has a dependency on a 3rd party package in standard Debian repository (located in /etc/apt/sources.list
)
dpkg-deb -I ./my_app.deb...Depends: some-libDescription: my application...
When I call sudo apt install ./my_app.deb
it gets installed nicely along automatic installation (via the Internet) of some-lib
. However, when i remove my application, some-lib
is not included in autoremove mechanism:
sudo apt remove my-app
(works)
sudo apt autoremove
(doesn't work, some-lib
remains installed)
Question: how to include dependencies of a local debian package to autoremove mechanism so they can be automatically removed afterwards?
Note: please feel free migrate this question elsewhere if it doesnt belong to SO, but I would like to get some help! Thanks!