Home » Questions » Computers [ Ask a new question ]

Using dpkg to install packages from a local directory

Using dpkg to install packages from a local directory

I'm refining our installer. The way it works is all our components are made into .deb files. The installer merely calls dpkg on all of them at once, along with their dependencies. This works great...as long as you install onto Ubuntu Linux 8.04.1. When installing in Ubuntu 8.04.3, for instance, the version of libc6-dev that might be installed is greater. But dpkg still seems to install our version of libc6-dev, despite the fact that a higher version is already installed. As you might expect, this causes problems.

Asked by: Guest | Views: 368
Total answers/comments: 1
Guest [Entry]

The cleanest solution would seem to be to put all your packages in a local repository, like a package CD, and add a file in /etc/apt/sources.list.d to include the repository. Then it should be a simple matter of doing aptitude update; aptitude install <packages> to automatically get exactly the correct packages installed.