Search code examples
debianpackaging

How to make a package remove another (older) package?


I wrote a C++ program and then created a package. Every thing went normally with the installing and what not. But now I have another version of the program, an update. Is there a way to create a package with this new version that deletes the old one, or do I have to remove the old version manually and then install the new version?


Solution

  • You have to declare a Replaces relationship with your previous version, take a look here