Ubuntu – foolproof and easy way of determining which debs meant for ubuntu will install on debian

debdebianmigration

I have used ubuntu for a long time, and have collected a lot of Ubuntu .deb packages which I may need for future installs. Most of these are grabbed from outdated or obsolete PPAs or from outside official sources.

I have a old system lying around, too old to run Ubuntu, and I am mulling installing Debian Squeeze with LDXE or something to convert it into a file/print server.

I know it is possible to install Ubuntu debs on Debian, but some will simply not install because of dependencies. Is there a easy way to install Ubuntu debs on Debian? How can I determine which will safely install and which have the potential to break the system? Is there a script for this?

Best Answer

Dependencies are stored in the .deb. Try to install it dpkg --dry-run -i file.deb. It will preview what is missing. If you are lucky, it will be only missing dependencies and no conflicts. In this case, really install the package:

dpkg -i file.deb
apt-get install -f
Related Question