Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / doc / popularity-contest / examples / | server ip : 104.21.89.46 your ip : 172.70.80.203 H O M E |
Filename | /usr/share/doc/popularity-contest/examples/clean-genpkglist |
Size | 515 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 13-May-2013 17:49 |
Last accessed | 07-Jul-2025 03:30 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
#
# Author: Alain Schroeder
# Date: 2005-07-09
# Modified by Petter Reinholdtsen 2005-07-15
tempname=`tempfile`
temp2=`tempfile`
resultfile=packages
archs="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc"
mirror="http://ftp.fi.debian.org/debian"
for i in $archs; do
wget "$mirror/dists/Debian3.1r0/main/binary-${i}/Packages.gz" -O "$tempname"
zcat $tempname | grep "^Package: " | sed -e 's/^Package: //' >> $temp2
done
sort -u $temp2 > $resultfile
rm $tempname $temp2;
#
# Author: Alain Schroeder
# Date: 2005-07-09
# Modified by Petter Reinholdtsen 2005-07-15
tempname=`tempfile`
temp2=`tempfile`
resultfile=packages
archs="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc"
mirror="http://ftp.fi.debian.org/debian"
for i in $archs; do
wget "$mirror/dists/Debian3.1r0/main/binary-${i}/Packages.gz" -O "$tempname"
zcat $tempname | grep "^Package: " | sed -e 's/^Package: //' >> $temp2
done
sort -u $temp2 > $resultfile
rm $tempname $temp2;