[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing packages from source with apt

On Mon, 10 Nov 2003 12:42:02 +0100,
Vincent Lefevre wrote:
> What is the best way to compile and install packages from source with
> apt?
> I don't want to use "dpkg -i" once the packages are built (as suggested
> in the how-to) since dpkg doesn't check dependencies and may break the
> system (it did in the past...).

You might try creating your own apt archive.  An apt archive is just a
directory (or subdirectories) full of debs.  To make them visible
to apt you create an index file called Packages (or gzipped to
Packages.gz) using a command like "dpkg-scanpackages . /dev/null >
Packages".  Your apt source might then look like:

  deb file:/my-apt-archive/ ./

Put this file:// source before any http:// sources and apt will
look at this before attempting to download from the Net.

Reply to: