:: Re: [DNG] Installing local .deb fil…
Pàgina inicial
Delete this message
Reply to this message
Autor: Ralph Ronnquist
Data:  
A: dng
Assumpte: Re: [DNG] Installing local .deb files with dependencies
On Thu, Jul 27, 2023 at 01:14:23PM +0200, Antony Stone wrote:
> Hi.
>
> I'm playing with FreeSwitch and trying to get it to do something it currently
> doesn't, therefore I need to modify the source code and recompile.
>
> I've downloaded the source Debian package and I can build it (so far without
> modifications, just to check I'm building something that works the same as the
> standard release).
>
> However, this then results in 347 .deb binary packages being left in a
> directory on my local machine.
>
> Looking on a machine where I've done a "standard" installation of the binary
> package/s, I find that around 120 have been installed (based on the
> dependencies starting from the "freeswitch-meta-all" package, which is what I
> told apt to do).
>
> So, to install the .deb files I now have on my local machine, "dpkg -i" will
> install whatever I tell it to, with no consideration about dependencies.
>
> "apt" will install packages with their dependencies but (as far as I know) not
> from files on the local machine - only from some properly-structured repository
> listed in sources.list
>
> So, does anyone know what tool I can use to install "freeswitch-meta-all" and
> its required dependencies, when those .debs now exist in a directory on my
> local machine?
>
>
> Thanks,


Slightly more verbose: use a soruces.list line like:

deb [trusted=yes] file:/home/ralph/src/devuan/builds ./

You then need to ha a "Packages.gz" file in that directory with the
control blocks for each of the .deb packages; something like the
following:
----------
for P in *.deb ; do
ar p $P control.tar.xz | tar xOJf - ./control
echo
done | gzip > Packages.gz
----------

Ralph.

>
>
> Antony.
>
> --
> My life is going completely according to plan.
>
> I do sometimes wish it had been *my* plan, though.
>
>                                                    Please reply to the list;
>                                                          please *don't* CC me.
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng