Bug#408379: apt-file download to download a file from archive
Ok Many times I'd like to get a file from a package just for examinate/study it, like a script in /etc/init.d, a man page, a readme from doc, a logrotate file, a config file in /etc/ ... but I don't want to install the package. Suppose you are talking via telephone with somebody you are helping with a trouble in a server who has installed a package, and in your environment you can't install this package and can't have access to another server with it. You would like just compare a file with the original and see the diff. >From I openned this bug I downloaded, like an example: asterisk.logrotate phpgwaccount.schema saslauthd.conf 50unattended-upgrades Thanks you and sorry my english Thijs Kinkhorst wrote: > Hi, > >> So, I know my example is not a patch. It should works while apt-file >> doesn't recognise this option. > > I'm not sure we should be adding this. What use cases are there for this? > If you want to reinstate a lost file, couldn't you better do 'apt-get > install --reinstall package'? > > > Thijs > -- Javier Barroso Tristán Administrador de Redes y Sistemas DIRECCIÓN DE TECNOLOGÍA:OPERACIONES Y SOPORTE [EMAIL PROTECTED] ISOTROL Edificio BLUENET. Avda. Isaac Newton nº 3, 4ª planta. Parque Tecnológico Cartuja '93, 41092 Sevilla. Teléfono: 955 036 800 - Fax: 955 036 849 www.isotrol.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#408379: apt-file download to download a file from archive
Hi, > So, I know my example is not a patch. It should works while apt-file > doesn't recognise this option. I'm not sure we should be adding this. What use cases are there for this? If you want to reinstate a lost file, couldn't you better do 'apt-get install --reinstall package'? Thijs -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#408379: apt-file download to download a file from archive
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-2The 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-7Larry 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]