Professional Web Applications Themes

regenerate Packages.gz - Debian

Gday, Is there a Debian tool that will help me regenerate Packages.gz from a pool of packages? I can use dpkg-scanpackages in a script but since i have woody and sid packages in the same pool directory, the latest version is written to Packages.gz Script goes something like PKGDIR=`find pool -type d -print | uniq` for PKG in ${PKGDIR}; do if [ -d "${PKG}" ]; then chmod a+r ${PKG} echo Making Packages.gz echo dpkg-scanpackages ${PKG} /dev/null | gzip -9c >> dists/stable/main/binary-i386/Packages.gz fi -- Rene Cunningham DCLabs Pty Ltd [url]http://www.dclabs.com.au[/url] ---------------------------------------- Netscape is not a newsreader, and probably never shall be. ...

  1. #1

    Default regenerate Packages.gz

    Gday,

    Is there a Debian tool that will help me regenerate Packages.gz from a
    pool of packages? I can use dpkg-scanpackages in a script but since i
    have woody and sid packages in the same pool directory, the latest
    version is written to Packages.gz

    Script goes something like

    PKGDIR=`find pool -type d -print | uniq`

    for PKG in ${PKGDIR}; do
    if [ -d "${PKG}" ]; then
    chmod a+r ${PKG}
    echo Making Packages.gz
    echo
    dpkg-scanpackages ${PKG} /dev/null | gzip -9c >>
    dists/stable/main/binary-i386/Packages.gz
    fi

    --

    Rene Cunningham
    DCLabs Pty Ltd
    [url]http://www.dclabs.com.au[/url]

    ----------------------------------------
    Netscape is not a newsreader, and probably never shall be.
    -- Tom Christiansen


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Rene Cunningham Guest

  2. #2

    Default Re: regenerate Packages.gz

    On Mon, 2003-07-28 at 23:58, Rene Cunningham wrote:
    > Gday,
    >
    > Is there a Debian tool that will help me regenerate Packages.gz from a
    > pool of packages? I can use dpkg-scanpackages in a script but since i
    > have woody and sid packages in the same pool directory, the latest
    > version is written to Packages.gz
    >
    > Script goes something like
    >
    > PKGDIR=`find pool -type d -print | uniq`
    >
    > for PKG in ${PKGDIR}; do
    > if [ -d "${PKG}" ]; then
    > chmod a+r ${PKG}
    > echo Making Packages.gz
    > echo
    > dpkg-scanpackages ${PKG} /dev/null | gzip -9c >>
    > dists/stable/main/binary-i386/Packages.gz
    > fi
    >
    apt-move is a significant piece I'd say. Here is the Package
    Description:
    apt-move is used to move a collection of Debian package files into a
    proper archive hierarchy as is used in the official Debian archive. It
    is intended as a tool to help manage the apt-get(8) file cache, but
    could be configured to work with any collection of Debian packages.

    Running apt-move periodically will assist in managing the resulting
    partial mirror by optionally removing obsolete packages, and creating
    valid local Packages.gz files. It can also build a partial or complete
    local mirror of a Debian binary distribution (including an
    ``installed-packages only'' mirror).

    Also once you install it make sure you do a "man apt-move" WOW!

    Hope this helps.
    --
    greg, [email]greggregfolkert.net[/email]
    REMEMBER ED CURRY! [url]http://www.iwethey.org/ed_curry[/url]


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Greg Folkert Guest

  3. #3

    Default reverse phone lookup

    [URL=http://www.reversephonelookup.com/]reverse phone lookup[/URL]
    johnmkaljc Guest

Similar Threads

  1. Packages and AS2
    By cadement in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: March 3rd, 11:19 PM
  2. [PHP-DEV] RPM packages of PHP 4.3.4
    By Morten Poulsen in forum PHP Development
    Replies: 0
    Last Post: November 4th, 11:17 AM
  3. packages
    By Claus DŁnnebacke in forum AIX
    Replies: 1
    Last Post: September 11th, 08:36 AM
  4. New packages
    By Antony Gelberg in forum Debian
    Replies: 3
    Last Post: July 24th, 11:50 AM
  5. Sunfreeware packages
    By Tony Curtis in forum Sun Solaris
    Replies: 1
    Last Post: July 10th, 11:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139