regenerate Packages.gz

Ask a Question related to Debian, Design and Development.

  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-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Rene Cunningham Guest

  2. Similar Questions and Discussions

    1. Packages and AS2
      In order to reference one class in a package path from another you'll need to add the root directory of the project to the global classpath - yes I...
    2. [PHP-DEV] RPM packages of PHP 4.3.4
      Hi, I have build RPM packages of PHP 4.3.4 wit a lot of modules. The packages are - as my previous packages - based on Troels Arvin's work. ...
    3. packages
      Hi, after installing an sw-package, i get no no output about the sw in 'lslpp -L'. If I do a 'lslpp -w /path/to/one/of/the/files', it shows the...
    4. Reinstall all packages
      On Wednesday 06 August 2003 10:30, Philipp Leusmann wrote: If you can get aptitude to run, get the cursor over the "Installed Packages" category...
    5. New packages
      Hi all, I've found a rather useful little app that doesn't appear to be in the distribution yet. How can I go about getting it in there? I have...
  3. #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]greg@gregfolkert.net[/email]
    REMEMBER ED CURRY! [url]http://www.iwethey.org/ed_curry[/url]


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

  4. #3

    Default reverse phone lookup

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

Posting Permissions

  • You may not post new threads
  • You may 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