Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/portage säubern
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Sun Dec 12, 2010 8:05 am    Post subject: /etc/portage säubern Reply with quote

Hi,

in letzter Zeit hat sich da sehr viel alte Zeug angesammelt. So zum Beispiel kdelibs:4, etc.
Wie kann ich das wegbekommen?

An sich stört es nicht, aber wenn man mal was sucht, ist es nicht so toll, wenn plötzlich 8x kdelibs auftaucht, bis man zu dem eigentlichen Eintrag kommt.

Ich habe ein paar Tips im alten Gentoo-Wiki gefunden, aber die haben nicht funktioniert, wenn packages.keywords ein Ordner ist.

Danke
Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1670

PostPosted: Sun Dec 12, 2010 12:03 pm    Post subject: Reply with quote

eix-test-obsolete zeigt dir an was für falsche/unnötige einträge in allen packages.* Dateien vorhanden sind, leider nicht in welcher datei.
Code:
grep kdelibs /etc/portage/package.keywords/*

zeigt dir an, in welchen dateien kdelibs steht. danach per hand entfernen. so mach ich das immer.
ich versuche auch nach möglichkeit mehrfache einträge zu vermeiden, indem ich das ein bischen gruppiere kde-base/*, kde-misc/* und so kommen in eine datei kde, unmaskierte spiele in games-datei etc. hatte so bisher noch keine großen probleme.
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Sun Dec 12, 2010 1:19 pm    Post subject: Reply with quote

Das ist ein Anfang, aber automatisiert wäre mir lieber.
Ich erinnere mich, dass es früher mal ein Skript gab. Leider funktionierte das wohl ab Portage-2.x nicht mehr.
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1670

PostPosted: Sun Dec 12, 2010 8:33 pm    Post subject: Reply with quote

vielleciht kann das: app-portage/flaggie ja was du willst, habs leider selber och nicht ausprobiert.
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Mon Dec 13, 2010 7:50 am    Post subject: Reply with quote

Quote:
The following cleanup actions are supported:

- `--drop-ineffective` to drop all flag declarations which are
considered ineffective. In other words, those which are overriden
by the entries or flags following them.

In other words, the following example file:

app-misc/foo bar baz
app-misc/foo -bar bar

would be written as:

app-misc/foo baz
app-misc/foo bar

- `--sort-entries` to sort all entries in the file by package name.

- `--sort-flags` to sort all flags (keywords, licenses) in the entries
by their basename.

- `--drop-unmatched-pkgs` to remove all `package.*` file entries
referring to packages not having a match in portdb (thus, either
being a typo, outdated or coming from a removed repo).

- `--drop-unmatched-flags` to remove all flags, keywords and licenses
which do not match the package metadata (`IUSE`, `KEYWORDS`
and `LICENSE` keys respectively). In other words, this should remove
outdated flags. Please note that, in order to avoid mistakes, this
action won't remove flags for packages which do not have a match
in portdb (`--drop-unmatched-pkgs` is useful for that).


Das klingt vielversprechend.
Ich teste es heute abend mal.

Danke
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2285
Location: Adendorf, Germany

PostPosted: Mon Dec 13, 2010 8:05 am    Post subject: Reply with quote

Einfachstes Tool: app-portage/portpeek
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum