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

Re: Obsolete packages in Experimental



[Jérôme Warnier]
> Or even better: a list of all packages already installed on my system
> which have an experimental version?

There might be a better way, but assuming you have experimental in your
sources.list...

  t=$(tempfile);
  awk > $t '/^Package:/{print "^" $2 "$"}' \
    /var/lib/apt/lists/*_dists_experimental_main_binary-*_Packages
  dpkg --get-selections | awk '/\tinstall$/{print $1}' | grep -f $t
  rm $t

This relies on package names being regex-friendly.  (I think the only
regex character they can have is ".", which causes few problems.)

Attachment: signature.asc
Description: Digital signature


Reply to: