I know the basics of creating a Debian package. But I wish to create one that marks other packages for removal as it is installed.

Under the Debian folder of the package at the control file, I tried to put the packages that I desire to be removed under the Conflicts or Breaks field, but with no success. apt-get refuses to install my package and does not remove the packages either under conflicts or breaks...

What I'm missing? Couldn't find the appropriate directions under the Debian manuals...

I haven't created a Debian package before, but you should read this debian.org/doc/debian-policy/ch-relationships.html (7.3 and 7.4). From what I've gathered, it seems that Conflicts and Breaks are intended to make apt-get refuse to install, unless that other package is removed or "deconfigured". I think aptitude's behavior to this might be different though; I think it could try to remove those Conflicts.
–
Alaa AliSep 7 '13 at 8:29