Can python-debian install a .deb package?

Sergei Poselenov sposelenov at emcraft.com
Wed Sep 15 08:15:34 UTC 2010


Hi James,


On Tue, 14 Sep 2010 11:17:23 -0400
James Westby <jw+debian at jameswestby.net> wrote:

> On Tue, 14 Sep 2010 17:30:39 +0400, Sergei Poselenov
> <sposelenov at emcraft.com> wrote:
> > Hello,
> > 
> > We are looking for portable solution for a installer of a
> > Debian-package-based distribution.
> > The installer should be able to work on different Linux (not only
> > on Debian- and Fedora-based, and even on the FreeBSD) system to
> > install a set of the .deb packages to an arbitrary directory.
> > 
> > We are considering the Python scripts for this installer. Can the
> > python-debian binding help us to perform installation of the Debian
> > packages?
> 
> I'm not sure there is anything in python-debian, but python-apt has
> things that I believe can help with this.
> 
> http://apt.alioth.debian.org/python-apt-doc/library/apt.debfile.html
> 

It definitely can, however, python-apt depends on the libapt libraries
- the solution will not be portable.

Thanks,
Sergei
> Thanks,
> 
> James




More information about the pkg-python-debian-discuss mailing list