:: Re: [DNG] Script to migrate buster …
トップ ページ
このメッセージを削除
このメッセージに返信
著者: g4sra
日付:  
To: dng@lists.dyne.org
題目: Re: [DNG] Script to migrate buster desktop to beowulf v1.6
>

> This might be a good one to ask the users.
>


> fsmithred
>



Agreed.

But if you did want to do it programmatically without parsing every sources.{d/*,conf}...
Ask apt what it is cacheing...

if [ -n "$(apt-cache policy | grep 'buster/non-free')" ]; then
echo "yes include non-free repo";
else

echo "no don't!";
fi