Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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...

share|improve this question
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 Ali Sep 7 '13 at 8:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.