0

I have qt project and deb package that is built using following command: dpkg-buildpackage -us -uc

After this action, my package is ready to install. But if I have my package installed and I want install the same or newer, it removes all files which were installed by this deb package. Only action that works is removing old package before installing newer using following command: dpkg --remove myqtapp

P.S. To install Deb package I use dpkg -i ...

  • Use newer branch of Debian for newer packages, e.g. testing. – Ipor Sircer Nov 29 '18 at 16:05
  • I guess you'll need to have a look at your own pre-/postinstall scripts and determine whether all the files you're distributing are actually put in sensible places ... – tink Nov 29 '18 at 16:40
0

dpkg --install package.deb should cleanly upgrade from an older version of a package to a newer one without issue. If it is complaining about a conflict, then the new package is not an upgrade but is instead an actual different package, and upgrading is (rightly) not performed. If you are not going to use apt repositories for package management, ensure you are obtaining the deb file from the same source as the older version and that it is provided as an upgrade to the prior package.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.