From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N0yiI-0007fh-DO for garchives@archives.gentoo.org; Thu, 22 Oct 2009 14:32:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D364DE0A8C; Thu, 22 Oct 2009 14:32:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B227BE0A8C for ; Thu, 22 Oct 2009 14:32:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 3F20C67E8A for ; Thu, 22 Oct 2009 14:32:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.169 X-Spam-Level: X-Spam-Status: No, score=-3.169 required=5.5 tests=[AWL=-0.570, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZCcS5uhBV1ZC for ; Thu, 22 Oct 2009 14:32:17 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id A3A2066C41 for ; Thu, 22 Oct 2009 14:32:15 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1N0yVv-0005D2-7U for gentoo-user@gentoo.org; Thu, 22 Oct 2009 16:19:39 +0200 Received: from athedsl-385918.home.otenet.gr ([79.131.59.124]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2009 16:19:39 +0200 Received: from realnc by athedsl-385918.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2009 16:19:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: Short cut for unmerging all packages that are not longer in the tree Date: Thu, 22 Oct 2009 17:05:37 +0300 Organization: Lucas Barks Message-ID: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-385918.home.otenet.gr User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091019 Thunderbird/3.0b4 In-Reply-To: Sender: news X-Archives-Salt: 77f9c98f-e39c-49a9-8347-a13d37d45bcc X-Archives-Hash: 86798058ce66899dccf39010491e3f6f On 10/22/2009 02:14 PM, Helmut Jarausch wrote: > Hi, > > is there an easy way to unmerge all packages which are no longer in > the current portage tree. > (Those make problems on update world) > > Many thanks for a hint, > Helmut. Quick 'n dirty one-liner: for f in $(qlist -IC); do stat /usr/portage/"$f" > /dev/null; done For packages not in the tree, you will get something like: stat: cannot stat `/usr/portage/x11-themes/foobar': No such file or directory meaning that x11-themes/foobar is not in the tree. Of course this doesn't check overlays.