teach pkg about rpm's?

Baptiste Daroussin bapt at freebsd.org
Fri Apr 8 21:09:35 UTC 2016


On Thu, Apr 07, 2016 at 10:32:44AM -0700, Chuck Tuffli wrote:
> On Wed, Apr 6, 2016 at 11:36 PM, Baptiste Daroussin <bapt at freebsd.org> wrote:
> > On Sun, Apr 03, 2016 at 06:17:16AM -0700, Chuck Tuffli wrote:
> >> Hi
> >>
> >> Has adding the ability to install RPM's via pkg been discussed before?
> >> Does it make sense to add this or is it better to leave this
> >> functionality to something like archivers/rpm4? If so, I have some
> >> time and the motivation to implement this and would appreciate any
> >> guidance / pointers that people would be willing to share.
> >>
> >
> > It has been discussed, there was even some summer of code about it.
> >
> > It is a feature we would like to see in (but specially crafter) as it would
> > allow to remove most of the linux ports from the ports tree and we could tell
> > the users to simply add a special linux.conf repoconfiguration pointing to a yum
> > repository to handle the /compat
> 
> Can you elaborate on how you'd like to see this work or point me to a
> write up? From what I've found, there were two GSoC approaches:
> convert Linux RPM/DEBs to the pkg format or, more recently, directly
> supporting the DEB format. If the latter is the preferred approach,
> does libarchive need to be taught about the various Linux package
> layouts?
> 
There was a first summer of code at the early time of pkg, to make it learn
about deb/rpm the goal was to make sure that we are kind of at a level of parity
feature wise.

The second was about really implementing the support for apt/yum and deb/rpm so
that pkg can directly use a remote repository out of box.

The second is what we really need.

The goal about the second is (let's say about yum first):
- Have pkg understand the yum repository format so that if fetches the metadata
  and create a "regular" pkg repo just flagged "yum"

- having a config entry for the 'yum' repo that says "all packages installed
  from the repo will have the files installed prefixed by '/compat/linux'

- Be able to extract the metadata from the package format: from rpm for example
  and map it to the internal 'struct pkg' so that the current pkg solver can be
  used.

- nothing to be done on libarchive front as libarchive can already extract
  natively rpm files and for .deb packages this is just a 'ar' file containing a
  tar.[gx]z control for metadata and data for files meaning that libarchive can
  be use natively

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20160408/d9ecef96/attachment.sig>


More information about the freebsd-pkg mailing list