[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: origine des packets quand mix distrib?



On Wed, Aug 17, 2005 at 01:59:05PM +0200, Florent Bayle wrote :
> Le Mercredi 17 Août 2005 13:45, Florent Bayle a écrit :
> [...]
> > for i in `dpkg --get-selections | grep -v deinstall$ | awk '{ print $1 }'`;
> > do apt-cache policy $i | grep "^ \*\*\*" -A 1 | grep 500 | grep unstable
> >
> > > /dev/null && echo $i | cut -f1 -d "/"; done
> [...]
> 
> Petite erreur (mais le script marche quand même, mais moins rapidement), il 
> n'y a pas besoin du cut -f1 -d "/", le script est donc (toujours en une 
> ligne) :
> 
> for i in `dpkg --get-selections | grep -v deinstall$ | awk '{ print $1 }'`; do 
> apt-cache policy $i | grep "^ \*\*\*" -A 1 | grep 500 | grep unstable 
> > /dev/null && echo $i; done
> 

Il y a une petite erreur de frappe dans ton script, la correction est:

 for i in `dpkg --get-selections | grep -v deinstall$ | awk '{ print $1
}'`; do apt-cache policy $i| grep "\*\*\*" -A 1| grep unstable >
/dev/null && echo $i; done

Merci pour l'idée et l'astuce!

-- 
Brice Méalier
mealier_brice@yahoo.fr
Linux user nb. 372699
Debian GNU/Linux testing
-----
"Unix IS user friendly, it is just selective about who his friends are"



Reply to: