Jonathan Henson
Jonathan Henson

Reputation: 8206

Combine Debian packages with libraries installed from source

On my linux (Ubuntu 11.04) development machine. I often need to install libraries from source. This always causes problems for me because the package manager doesn't consider packages installed from source when it checks dependencies. This makes the package manager worthless to me since once I install one set of libs from source (especially if they are vital to the gnome environment i.e. gstreamer), I can never use it again without screwing up my entire distro with mixed dependencies. It seems to me that it would be relatively simple to check the dependencies with pkg-config without having to worry with the deb database. I don't mind writing a little code here. Does anyone have any ideas?

Upvotes: 1

Views: 387

Answers (3)

Dario Seidl
Dario Seidl

Reputation: 4640

Another option would be checkinstall. It creates a .deb package containing dependency information, but also you will be able to uninstall it via package management.

Upvotes: 2

hmakholm left over Monica
hmakholm left over Monica

Reputation: 23342

Alternatively, you should look into the equivs package, which is made exactly for the purpose of creating empty .debs that will make apt/dpkg think a certain package is installed when it isn't.

Upvotes: 7

hmakholm left over Monica
hmakholm left over Monica

Reputation: 23342

Grab the source package from Debian unstable and build a .deb from that using the developer tools. If you need an even newer upstream version, you can apply the .diff.gz part of the Debian source to an upstream tarball and get a build infrastructure that has good chances of working. If if doesn't, I'm sure the package maintainer would appreciate patches to make it work with the new upstream version.

Upvotes: 3

Related Questions