From owner-freebsd-hackers Wed Apr 15 15:25:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA01885 for freebsd-hackers-outgoing; Wed, 15 Apr 1998 15:25:34 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gatekeeper.alcatel.com.au (gatekeeper.alcatel.com.au [203.17.66.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA01867 for ; Wed, 15 Apr 1998 22:25:19 GMT (envelope-from Peter.Jeremy@alcatel.com.au) Received: from mfg1.cim.alcatel.com.au ([139.188.23.1]) by gatekeeper.alcatel.com.au (PMDF V5.1-7 #U2695) with ESMTP id <01IVXIDWK6MO000Q8B@gatekeeper.alcatel.com.au> for freebsd-hackers@FreeBSD.ORG; Thu, 16 Apr 1998 08:24:41 +1000 Received: from cbd.alcatel.com.au by cim.alcatel.com.au (PMDF V5.1-10 #U2695) with ESMTP id <01IVXIDRZ7CGDDYG2L@cim.alcatel.com.au> for freebsd-hackers@FreeBSD.ORG; Thu, 16 Apr 1998 08:24:35 +1000 Received: from gsms01.alcatel.com.au by cbd.alcatel.com.au (PMDF V5.1-7 #U2695) with ESMTP id <01IVXIDQCHYOAZTSM1@cbd.alcatel.com.au> for freebsd-hackers@FreeBSD.ORG; Thu, 16 Apr 1998 08:24:33 +1100 Received: (from jeremyp@localhost) by gsms01.alcatel.com.au (8.8.8/8.7.3) id IAA03296 for freebsd-hackers@FreeBSD.ORG; Thu, 16 Apr 1998 08:24:31 +1000 (EST) Date: Thu, 16 Apr 1998 08:24:31 +1000 (EST) From: Peter Jeremy Subject: Package management (was Re: Come on guys, close a PR or two, will ya ?) To: freebsd-hackers@FreeBSD.ORG Message-id: <199804152224.IAA03296@gsms01.alcatel.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 15 Apr 1998 19:30:15 +0200 (CEST), Marino Ladavac wrote: >I could take a look at it if you don't mind SystemV packaging style. Some disadvantages of the SysV package style (or at least Sun's implementation thereof): 1) There's no provision for compressing the package. This is fairly essential for Internet-based distribution. 2) The `datastream' format can only be understood by the package management tools - whilst the guts are a cpio (yuk) archive, there's a header that needs to be stripped off before cpio can understand it. If we're thinking about replacing the existing package management tools, we'd be better off defining exactly what we want the tools to do, before porting the package management tools from another OS. My suggestions for the requirements (in order): 1) Menu-driven interface (in addition to the command line interface). The current pkg_manage is probably OK as a UI, but is incredibly slow (because of the amount of package unpacking it does). 2) Able to retrieve packages via FTP (and through firewalls using at least SOCKS and FTP-over-HTTP proxies) 3) Transparent support for compressed packages. 4) Package dependency management (preferably automatic - ie pkgadd will automatically extract any prerequisite packages - with appropriate messages and able to be disabled). 5) Ability to upgrade a package (ie replace an older version with a newer one) without having to explicitly delete the old version (which implies deleting all its dependencies) first. This may mean the ability to specify prerequisites as `exactly this version' (which may be a substring of the actual version) or `this version or later'. 6) Package contents and description can be determined quickly (ie without unpacking the entire package) 7) Package validation (eg using MD5 checksums) both as the package is being installed, and of installed packages (to check for bitrot). 8) Package contents can be extracted using normal tools (eg tar, gzip) if necessary (this may be mutually exclusive with 6 above). 9) Packages can be installed without requiring a staging area equal in size to the unpacked package. Unfortunately, at this stage, I don't have the spare time to actually implement suitable tools. Peter -- Peter Jeremy (VK2PJ) peter.jeremy@alcatel.com.au Alcatel Australia Limited 41 Mandible St Phone: +61 2 9690 5019 ALEXANDRIA NSW 2015 Fax: +61 2 9690 5247 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message