From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 17F8413829C for ; Wed, 1 Jun 2016 08:56:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 618E2234008; Wed, 1 Jun 2016 08:56:25 +0000 (UTC) Received: from mail-yw0-f193.google.com (mail-yw0-f193.google.com [209.85.161.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 34B5021C038 for ; Wed, 1 Jun 2016 08:56:24 +0000 (UTC) Received: by mail-yw0-f193.google.com with SMTP id l126so1670446ywe.3 for ; Wed, 01 Jun 2016 01:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=NvT1TvoKt2ts0+vDalQDfqiCTSHoENKmUP96N6YBf28=; b=vh9kGvonKlNTWRpI6asEXpqTFRLphrvdwRQknm8AJyuMIvO1GqM/kp5Sj1RJXFNr7L +cAm/cqC84vjbZm4JJAJnde98E894X7e53nLWnp38Kw8+X3hWHoVumfC8OWIVl+gmmBv l/bVIM8E85l9SVS+RYUjWU5ki0ukYDAvSZ1cBmmsuXviHmGCDWIuCbiUcUB62O4CwPpR e4GNCopzhTPRtCQmUjTKVitZ4HXSR3LysLtvV/Burmptjjt8jJROgE9SYvuA1QQwH94B kgYBlU8yApMCmsD4ZalWhwefM3slHrr8QoReudOm9C1DBwNN948voLHGW3bJPjBIK+d8 h+hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=NvT1TvoKt2ts0+vDalQDfqiCTSHoENKmUP96N6YBf28=; b=lKChKW3Tk5zHgneSXCtC0TM8ZiyW4VnzNnt9O3Yq7ak82v8cFhYSH2AADKApMphube aM5a/DVPwqbjxvVGVLKMVoNhBq4osBoP87R4tz/7rieqSKX4tl0399QsJtGiYcihbJHX nEpwlDMWvx5AWKsOffZWhKnKDg+XOxy6P3sapTLXLb+i6L7CzNWHeVJUcNN9XKRDLefG Hm7YdYIWOn7tIjNwieLURwQWItQNLrEbwtGzroLGPbzDi+LexygRQQvrAKWyFIJv7Xl3 G4/ZFnbxkdjRBKFezDSo8J3D8HoYs0MpXfjzbPIl57Be8m48JnjMQvPoWXlReTs6Gb2n QFlw== X-Gm-Message-State: ALyK8tLxNCVe2uH3mC4yRN0URXvTeLNh1cBJiwcHQD0xLXaPPspTR36NpWysJZjlrDAg/A== X-Received: by 10.129.84.136 with SMTP id i130mr1465124ywb.135.1464771383168; Wed, 01 Jun 2016 01:56:23 -0700 (PDT) Received: from [192.168.2.5] (adsl-65-0-95-182.jan.bellsouth.net. [65.0.95.182]) by smtp.gmail.com with ESMTPSA id r8sm18833414ywb.20.2016.06.01.01.56.22 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2016 01:56:22 -0700 (PDT) Subject: Re: [gentoo-user] Cleaning out /etc/portage easily?? To: gentoo-user@lists.gentoo.org References: <574E8E9A.4050604@gmail.com> <829464aa-90df-3e1e-137a-625b493822c7@camisa.org> <574E92D0.1080100@gmail.com> From: Dale Message-ID: <574EA335.4070006@gmail.com> Date: Wed, 1 Jun 2016 03:56:21 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38 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 In-Reply-To: <574E92D0.1080100@gmail.com> Content-Type: multipart/alternative; boundary="------------080109090300000300090800" X-Archives-Salt: 539ec904-1c1c-4b55-bf27-963184296291 X-Archives-Hash: f04d858d714accda6cbfbfd213a62ff9 This is a multi-part message in MIME format. --------------080109090300000300090800 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dale wrote: > Christopher J. Camisa wrote: >> On 06/01/2016 02:28 AM, Dale wrote: >>> Howdy, >>> >>> I suspect there may be more people than me wondering about this one. = I >>> have quite a few entries in /etc/portage files, especially keywords. = >>> I'd like to know if there is a tool that deletes no longer needed >>> entries itself. I been using eix-test-obsolete but doing it manually= >>> can take quite a while. Is there a tool that I can run and it clean = out >>> those files itself instead of me doing it one line at a time? I figu= re >>> there has to be someone out there that has already done this, surely.= =20 >>> >>> Anyone have any info on such a beast?=20 >>> >>> Thanks much. >>> >>> Dale >>> >>> :-) :-)=20 >>> >>> >>> >> Hi Dale, >> >> You're looking for enalyze from app-portage/gentoolkit. >> Have a look in the manual, ENALYZE(1) for usage. >> >> DESCRIPTION >> Enalyze is a collection of modules for analyzing the state >> of installed Gentoo packages for USE flags or >> keywords used for installation, and their current masking statu= s. >> It can also optionally (re)generate new /etc/portage/package.* >> files. >> >> Kind Regards, >> -Camisa > > That looks veeeerrryyyy interesting. That just may be what I need.=20 > It seems to do it backwards from what I was expecting but I'll give it > a shot, once I read how to use it. ;-) > > Thanks much. > > Dale > > :-) :-)=20 OK. Did a little reading on this and gave it a test run. It doesn't generate quite what I was expecting. This is a sample of what it generat= es. kde-plasma/kde-cli-tools ~amd64 kde-plasma/kde-gtk-config ~amd64 kde-plasma/kdecoration ~amd64 kde-plasma/kdeplasma-addons ~amd64 kde-plasma/kgamma ~amd64 kde-plasma/khotkeys ~amd64 kde-plasma/kinfocenter ~amd64 kde-plasma/kmenuedit ~amd64 kde-plasma/kscreen ~amd64 kde-plasma/kscreenlocker ~amd64 kde-plasma/ksshaskpass ~amd64 kde-plasma/ksysguard ~amd64 kde-plasma/kwallet-pam ~amd64 kde-plasma/kwayland-integration ~amd64 kde-plasma/kwin ~amd64 kde-plasma/kwrited ~amd64 kde-plasma/libkscreen ~amd64 This is a example of what I currently have in my keyword file. # required by kde-plasma/plasma-meta-5.6.4::gentoo # required by @selected # required by @world (argument) =3Dkde-plasma/plasma-workspace-5.6.4 ~amd64 # required by kde-plasma/plasma-desktop-5.6.4::gentoo # required by kde-plasma/plasma-meta-5.6.4::gentoo # required by @selected # required by @world (argument) =3Dkde-frameworks/karchive-5.22.0 ~amd64 # required by kde-plasma/plasma-meta-5.6.4::gentoo # required by @selected # required by @world (argument) =3Dkde-plasma/kinfocenter-5.6.4 ~amd64 # required by kde-plasma/plasma-workspace-5.6.4::gentoo # required by kde-plasma/plasma-meta-5.6.4::gentoo # required by @selected # required by @world (argument) =3Dkde-plasma/kwin-5.6.4 ~amd64 The output of what emerge gives includes a version. The enalyze program seems to leave that out which may lead to upgrades that I'm not looking for yet.=20 What I was hoping for, something that would for example see that plasma-workspace-5.6.4 is either no longer installed or no longer keyworded and can be removed from the file and then remove it.=20 Honestly, I'm not a scripting guru but I sort of think it would be a hard thing to do given that basically every line would have to be checked. Also, the commented part above it would be deleted to in a ideal world. That to would be difficult since not all lines have those above it. Hmmmm. Gonna see what else it can do.=20 Dale :-) :-)=20 --------------080109090300000300090800 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Dale wrote:
Christopher J. Camisa wrote:
On 06/01/2016 02:28 AM, Dale wrote:
Howdy,

I suspect there may be more people than me wondering about this one.  I
have quite a few entries in /etc/portage files, especially keywords. 
I'd like to know if there is a tool that deletes no longer needed
entries itself.  I been using eix-test-obsolete but doing it manually
can take quite a while.  Is there a tool that I can run and it clean out
those files itself instead of me doing it one line at a time?  I figure
there has to be someone out there that has already done this, surely. 

Anyone have any info on such a beast? 

Thanks much.

Dale

:-)  :-) 



Hi Dale,

    You're looking for enalyze from app-portage/gentoolkit.
    Have a look in the manual, ENALYZE(1) for usage.

DESCRIPTION
       Enalyze  is  a collection of modules for analyzing the state of installed Gentoo packages for USE flags or
       keywords used for installation, and their current masking status.
       It can also optionally (re)generate new /etc/portage/package.* files.


Kind Regards,
-Camisa

That looks veeeerrryyyy interesting.  That just may be what I need.  It seems to do it backwards from what I was expecting but I'll give it a shot, once I read how to use it.  ;-)

Thanks much.

Dale

:-)  :-) 


OK.  Did a little reading on this and gave it a test run.  It doesn't generate quite what I was expecting.  This is a sample of what it generates.


kde-plasma/kde-cli-tools ~amd64
kde-plasma/kde-gtk-config ~amd64
kde-plasma/kdecoration ~amd64
kde-plasma/kdeplasma-addons ~amd64
kde-plasma/kgamma ~amd64
kde-plasma/khotkeys ~amd64
kde-plasma/kinfocenter ~amd64
kde-plasma/kmenuedit ~amd64
kde-plasma/kscreen ~amd64
kde-plasma/kscreenlocker ~amd64
kde-plasma/ksshaskpass ~amd64
kde-plasma/ksysguard ~amd64
kde-plasma/kwallet-pam ~amd64
kde-plasma/kwayland-integration ~amd64
kde-plasma/kwin ~amd64
kde-plasma/kwrited ~amd64
kde-plasma/libkscreen ~amd64


This is a example of what I currently have in my keyword file.


# required by kde-plasma/plasma-meta-5.6.4::gentoo
# required by @selected
# required by @world (argument)
=kde-plasma/plasma-workspace-5.6.4 ~amd64
# required by kde-plasma/plasma-desktop-5.6.4::gentoo
# required by kde-plasma/plasma-meta-5.6.4::gentoo
# required by @selected
# required by @world (argument)
=kde-frameworks/karchive-5.22.0 ~amd64
# required by kde-plasma/plasma-meta-5.6.4::gentoo
# required by @selected
# required by @world (argument)
=kde-plasma/kinfocenter-5.6.4 ~amd64
# required by kde-plasma/plasma-workspace-5.6.4::gentoo
# required by kde-plasma/plasma-meta-5.6.4::gentoo
# required by @selected
# required by @world (argument)
=kde-plasma/kwin-5.6.4 ~amd64


The output of what emerge gives includes a version.  The enalyze program seems to leave that out which may lead to upgrades that I'm not looking for yet. 

What I was hoping for, something that would for example see that plasma-workspace-5.6.4 is either no longer installed or no longer keyworded and can be removed from the file and then remove it.  Honestly, I'm not a scripting guru but I sort of think it would be a hard thing to do given that basically every line would have to be checked.  Also, the commented part above it would be deleted to in a ideal world.  That to would be difficult since not all lines have those above it.

Hmmmm.  Gonna see what else it can do. 

Dale

:-)  :-) 
--------------080109090300000300090800--