You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
515 B

  1. #!/bin/sh
  2. #
  3. # Author: Alain Schroeder
  4. # Date: 2005-07-09
  5. # Modified by Petter Reinholdtsen 2005-07-15
  6. tempname=`tempfile`
  7. temp2=`tempfile`
  8. resultfile=packages
  9. archs="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc"
  10. mirror="http://ftp.fi.debian.org/debian"
  11. for i in $archs; do
  12. wget "$mirror/dists/Debian3.1r0/main/binary-${i}/Packages.gz" -O "$tempname"
  13. zcat $tempname | grep "^Package: " | sed -e 's/^Package: //' >> $temp2
  14. done
  15. sort -u $temp2 > $resultfile
  16. rm $tempname $temp2;