Re: Find complete set of debs
Adrian von Bidder <[EMAIL PROTECTED]> writes: > Hi! > > [please cc: me. Thank you.] > > How can I (more or less efficiently - I do have a script but it's very crude > and probably buggy) download all .debs (and for bonus points the source > pkgs, too) that belong to some .deb that I have (same src package, same > version)? > > cheers > -- vbi > > > > > -- >> So does the bible contain invariant sections? > It sure does: > $ bible rev22:18-19 > -- Drew Parsons, in a GFDL debate If you just need to fetch them one or ocasionally: http://svn.debian.org/wsvn/pkg-ia32-libs/trunk/ia32-libs/fetch-and-build?op=file&rev=0&sc=0 Edit the list of DEBS and run 'BUILD=0 ./fetch-and-build'. The debs will end up in 'pkgs' and the source in 'srcs'. It will sanity check that all debs and source match versions at the end for extra points. If you need something for a cron job I suggest a partial mirror with reprepro: apt-get install reprepro --- conf/distributions --- Origin: Debian Label: Debian Suite: stable Codename: etch Version: 4.0 Architectures: source i386 amd64 Components: main local UDebComponents: main Description: Debian etch Update: - debian SignWith: yes DscIndices: Sources Release . .gz DebIndices: Packages Release . .gz UDebIndices: Packages . .gz --- conf/updates --- Name: debian Architectures: source i386 amd64 Components: main contrib non-free main/debian-installer Method: http://ftp.de.debian.org/debian ListHook: conf/filter-debian.sh --- conf/filter-debian.sh --- #!/bin/sh BINSRC='^acl$|^adduser$' SRCVER='^acl |^adduser ' ( zcat "$1" | grep-dctrl -P -e "$BINSRC" zcat "$1" | grep-dctrl -F Source -e "$BINSRC" zcat "$1" | grep-dctrl -F Source -e "$SRCVER" ) > "$2" exit 0 With that config an "reprepro -V update" will fetch you the latest debs build from the sources and sources for acl and adduser and make them availbale as repository for apt. MfG Goswin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Find complete set of debs
On Fri, Sep 07, 2007 at 11:06:50AM +0200, Adrian von Bidder wrote: > On Friday 07 September 2007 09.48:36 Adeodato Simó wrote: > > * Adrian von Bidder [Fri, 07 Sep 2007 07:49:19 +0200]: > > > No, all the other .deb packages that come from the same source pkg as > > > the one I have. (But usually I only want i386 and all architectures.) > > > > > > Time to properly learn grep-dctrl, I guess, that's one tool I've > > > completely neglected so far. I guess it should provide the info if > > > invoked the right way. > > > > I guess the hard bit is the "same version" bit. Do you mean like > > downloading from snapshot.debian.net and stuff? Or is it assumed that > > versions you pass to the script will be present in the mirror's pull > > (i.e. stable or testing packages, or up to date unstable versions). > > The problem occurs right after I've installed some software, so all the > necessary data is still available in current testing/unstable/wherever. apt-get --download-only install \ $(apt-cache showsrc $PKG | grep Binary: | cut -d':' -f2 | tr -d ',') -- Peter Mathiasson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Find complete set of debs
On Friday 07 September 2007 09.48:36 Adeodato Simó wrote: > * Adrian von Bidder [Fri, 07 Sep 2007 07:49:19 +0200]: > > No, all the other .deb packages that come from the same source pkg as > > the one I have. (But usually I only want i386 and all architectures.) > > > > Time to properly learn grep-dctrl, I guess, that's one tool I've > > completely neglected so far. I guess it should provide the info if > > invoked the right way. > > I guess the hard bit is the "same version" bit. Do you mean like > downloading from snapshot.debian.net and stuff? Or is it assumed that > versions you pass to the script will be present in the mirror's pull > (i.e. stable or testing packages, or up to date unstable versions). The problem occurs right after I've installed some software, so all the necessary data is still available in current testing/unstable/wherever. cheers -- vbi -- OpenPGP encrypted mail welcome - my key: http://fortytwo.ch/gpg/92082481 signature.asc Description: This is a digitally signed message part.
Re: Find complete set of debs
* Adrian von Bidder [Fri, 07 Sep 2007 07:49:19 +0200]: > No, all the other .deb packages that come from the same source pkg as the > one I have. (But usually I only want i386 and all architectures.) > Time to properly learn grep-dctrl, I guess, that's one tool I've completely > neglected so far. I guess it should provide the info if invoked the right > way. I guess the hard bit is the "same version" bit. Do you mean like downloading from snapshot.debian.net and stuff? Or is it assumed that versions you pass to the script will be present in the mirror's pull (i.e. stable or testing packages, or up to date unstable versions). Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org - The district attorney has lodged a complaint against you for witness tampering, intimidation, obstruction of justice, extorsion, ... - He should make up his mind. -- Paul Lewiston and Alan Shore (Boston Legal) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Find complete set of debs
On Thursday 06 September 2007 19.33:50 Neil Williams wrote: > On Thu, 6 Sep 2007 15:45:28 +0200 > > Adrian von Bidder <[EMAIL PROTECTED]> wrote: > > How can I (more or less efficiently - I do have a script but it's > > very crude and probably buggy) download all .debs (and for bonus > > points the source pkgs, too) that belong to some .deb that I have > > (same src package, same version)? > > You mean each architecture? No, all the other .deb packages that come from the same source pkg as the one I have. (But usually I only want i386 and all architectures.) Time to properly learn grep-dctrl, I guess, that's one tool I've completely neglected so far. I guess it should provide the info if invoked the right way. cheers -- vbi -- If you look at debian it has included a qmail-src packet that does patch and changes your local copy of qmail to work as expected (i.e. not the qmail way). -- Anders Arnholm, 2001-08-28, OpenBSD ports mailing list signature.asc Description: This is a digitally signed message part.
Re: Find complete set of debs
On Thu, 6 Sep 2007 15:45:28 +0200 Adrian von Bidder <[EMAIL PROTECTED]> wrote: > How can I (more or less efficiently - I do have a script but it's > very crude and probably buggy) download all .debs (and for bonus > points the source pkgs, too) that belong to some .deb that I have > (same src package, same version)? You mean each architecture? apt-cross is one start - it will be easier with the new rewrite (0.2.9) but that isn't ready for an upload yet. It isn't something it was designed to do - it would mean a lot of cache downloads for the first run but much quicker for subsequent runs. The alternative is that the filename in each mirror is predictable for each arch - a simple reg exp should be sufficient. If you like working in Perl, you could look at the SVN code for apt-cross (www.emdebian.org) and adapt that. (The new version works with libapt-pkg-perl and apt-get.) The cache handling in that code could also detect the .dsc and that would provide the rest of the data. Just some ideas. -- Neil Williams = http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/ pgpjGNoHTdwJA.pgp Description: PGP signature
Find complete set of debs
Hi! [please cc: me. Thank you.] How can I (more or less efficiently - I do have a script but it's very crude and probably buggy) download all .debs (and for bonus points the source pkgs, too) that belong to some .deb that I have (same src package, same version)? cheers -- vbi -- > So does the bible contain invariant sections? It sure does: $ bible rev22:18-19 -- Drew Parsons, in a GFDL debate signature.asc Description: This is a digitally signed message part.