Package: apt-file
Version: 2.0.8.2
Severity: wishlist
Tags: patch
So, I know my example is not a patch. It should works while apt-file doesn't
recognise this option.
Is there anywhere a debian archive uncompress, where you could go to download
any debian file on the debian's hierarchy ?
Sorry my poor english
apt-file-download.sh:
#!/bin/bash
FILE=$1
if [ $(apt-file search "$FILE" | tee result.txt | wc -l) -ne 1 -o $# -ne 1 ]
then
echo "Use: apt-file download file"
echo "You should specific a file from an uniq package"
rm result.txt
exit 1
fi
dir=$(mktemp -d )
mv result.txt $dir/result.txt
(cd $dir;
aptitude download $(awk -F ":" '{print $1}' result.txt)
ar xv *deb data.tar.gz
)
tar -O -zxf $dir/data.tar.gz ./$FILE > ${FILE##*/}
rm -rf $dir
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-xen-686
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Versions of packages apt-file depends on:
ii gzip 1.3.9-2 The GNU compression utility
ii libapt-pkg-perl 0.1.20 Perl interface to libapt-pkg
ii libconfig-file-perl 1.4-2 Parses simple configuration files
ii perl 5.8.8-7 Larry Wall's Practical Extraction
ii wget 1.10.2-2 retrieves files from the web
apt-file recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]