Re: apt-file / Woody

Pàgina inicial

Reply to this message
Autor: Laurent Dieudonne
Data:  
A: guilde
Assumpte: Re: apt-file / Woody
On Sun, 2004-03-14 at 15:17, jeanluc on woody wrote:
> Salut Laurent,
>
> Je fais comme décrit par Guillaume.
> Je ne connaissais meme pas apt-file , que je viens d'installer, et
> puis j'ai fait "apt-file pl2link", et ca n'a pas marché. Enfin, ca a marché
> mais il a rien trouvé en sortie.
> Faudrait encore RTFM, je laisse tomber.
>
> Sinon, j'utilise le script bash copié ci-dessous qui suit totalement la
> meme methode de Guillaume.
> Dans ton cas, le fichier Contents-i386.gz ne sera pas au meme
> endroit, donc, mon script n'ai pas plugNplay.


Merci

>
> Jean-Luc.
>
> ====================================================
> prompt> cat bin/whichPkg
> #!/bin/bash
>
> f_usage()
> {
>    echo  "usage: whichPkg file"
> }

>
>
> #
> # main
> #
> ARGNB="$#"
> ARG1="$1"
>
> if [ $ARGNB -lt "1" ]
> then
>    f_usage
> else

>
>    firstChar=$(echo $ARG1 |cut -c1)
>    if [ $firstChar = "/" ]
>    then
>       fileFullPath=$(echo "$ARG1" |cut -c2-)
>    else
>       whichString=$(which "$ARG1")
>       if [ ${whichString}x = "x"  ]
>       then
>          fileFullPath=$ARG1
>       else
>          #echo "whichString=$whichString"
>          fileFullPath=$(echo "$whichString" |cut -c2-)
>       fi
>    fi

>
>
>    #echo "firstChar=@$firstChar@"
>    #echo "fileFullPath=@$fileFullPath@"

>
>    echo "zgrep $fileFullPath /extra/debianCD/woody/CD1/dists/woody/Contents-i386.gz "
>    echo "searching..... '$fileFullPath' in Contents-i386.gz"
>    zgrep $fileFullPath /extra/debianCD/woody/CD1/dists/woody/Contents-i386.gz

>
> fi
>
>
>
>