Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst]Nicht mehr benötigte Konfigurationsdateien löschen
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
wuesti
Apprentice
Apprentice


Joined: 07 Mar 2009
Posts: 191

PostPosted: Sat Nov 08, 2014 11:30 am    Post subject: [gelöst]Nicht mehr benötigte Konfigurationsdateien löschen Reply with quote

Moin Moin,

im Laufe der Jahre kommen und gehen ebuilds. Die ebuilds, die gehen, hinterlassen häufig ihre Konfigurationsdateien in /etc.

Gibt ein Möglichkeit, die nicht mehr benötigten Konfigurationen automatisch aufzufinden und zu löschen?

Vielen Dank
wuesti
_________________
Linux-User seit 1999


Last edited by wuesti on Sat Nov 08, 2014 4:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
ManDay
Apprentice
Apprentice


Joined: 22 Jan 2008
Posts: 247

PostPosted: Sat Nov 08, 2014 12:27 pm    Post subject: Reply with quote

Ich vermute mal mit CONFIG_PROTECT="-*" und anschließendem unmerge wirst Du alle Dateien los (abzüglich derer, von den portage nichts weiß).

PS: Wenn ein package mal weg ist, gibt es natürlich keine Möglichkeit mehr, die zu löschen bzw. zu finden. Ein nachträgliches "Säubern" musst Du also schon manuell machen.
Back to top
View user's profile Send private message
Jean-Paul
Guru
Guru


Joined: 13 Apr 2009
Posts: 307

PostPosted: Sat Nov 08, 2014 2:33 pm    Post subject: Reply with quote

Ein erster Versuch könnte
Quote:
qfile -o $(find /etc -type f)
sein.
Es werden alle Files gelistet die zu keinem Paket gehören. Aber auch eigene Dateien z.B. in local.d oder solche die du von Hand geändert hast - die löscht portage auch nicht weg, wenn du ein Paket deinstallierst.

Oder du schaust dir das an
http://www.genoetigt.de/site/projects/gcruft?lang=de
_________________
”Everything should be made as simple as possible, but no simpler.” – Albert Einstein
Back to top
View user's profile Send private message
wuesti
Apprentice
Apprentice


Joined: 07 Mar 2009
Posts: 191

PostPosted: Sat Nov 08, 2014 4:20 pm    Post subject: Reply with quote

Jean-Paul wrote:
Ein erster Versuch könnte
Quote:
qfile -o $(find /etc -type f)
sein.
Es werden alle Files gelistet die zu keinem Paket gehören. Aber auch eigene Dateien z.B. in local.d oder solche die du von Hand geändert hast - die löscht portage auch nicht weg, wenn du ein Paket deinstallierst.


Das war schon mal hilfreich. Da habe recht viele Dateien gefunden, die echt uralt und nicht installierten ebuilds zuzuorten waren.

/etc/fstab habe ich mal stehen lassen.

Vielen Dank!
_________________
Linux-User seit 1999
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Mon Nov 10, 2014 7:19 pm    Post subject: Reply with quote

wuesti wrote:
/etc/fstab habe ich mal stehen lassen.

Angsthase!
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Mon Nov 10, 2014 10:42 pm    Post subject: Reply with quote

Code:
find_cruft /etc

with app-portage/find_cruft from the mv overlay.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


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

PostPosted: Tue Nov 11, 2014 8:49 am    Post subject: Reply with quote

mv wrote:
Code:
find_cruft /etc

with app-portage/find_cruft from the mv overlay.
Kann ich nur empfehlen!
_________________
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
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Tue Nov 11, 2014 3:06 pm    Post subject: Reply with quote

mv wrote:
Code:
find_cruft /etc

with app-portage/find_cruft from the mv overlay.


Hab ich noch nicht gekannt, aber leider:
Code:
find_cruft /etc
Undefined subroutine &CFG::fatal called at /usr/bin/find_cruft line 611.


Von perl hab ich leider keine Ahnung, sonst hätt ich mal reingeschaut, find_cruft ist 3.0.3
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Tue Nov 11, 2014 3:12 pm    Post subject: Reply with quote

Christian99 wrote:
find_cruft ist 3.0.3

Diese Version ist fehlerhaft; deshalb gab es gerade ein upgrade auf 3.0.4
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


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

PostPosted: Tue Nov 11, 2014 3:28 pm    Post subject: Reply with quote

mv wrote:
Christian99 wrote:
find_cruft ist 3.0.3

Diese Version ist fehlerhaft; deshalb gab es gerade ein upgrade auf 3.0.4
Apropos, wann soll denn --output[file] funktionieren? Es funktioniert derzeit nur ohne Parameter und erzeugt dann die datei "1". (Eins)
Code:
 ~ $ find_cruft --output /tmp/foo.lst /
find_cruft: fatal: /tmp/foo.lst is not a directory
 ~ $ find_cruft --output=/tmp/foo.lst /
Option outputfile does not take an argument

_________________
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
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Tue Nov 11, 2014 7:54 pm    Post subject: Reply with quote

mv wrote:
Christian99 wrote:
find_cruft ist 3.0.3

Diese Version ist fehlerhaft; deshalb gab es gerade ein upgrade auf 3.0.4

Danke, jetzt gehts.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Tue Nov 11, 2014 9:41 pm    Post subject: Reply with quote

Yamakuzure wrote:
Apropos, wann soll denn --output[file] funktionieren?

Es gibt einen Bugtracker auf github: ohne Bugreport wird so etwas kaum entdeckt.
In find_cruft-3.0.5 sollte es gehen.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


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

PostPosted: Wed Nov 12, 2014 9:20 am    Post subject: Reply with quote

mv wrote:
Yamakuzure wrote:
Apropos, wann soll denn --output[file] funktionieren?

Es gibt einen Bugtracker auf github: ohne Bugreport wird so etwas kaum entdeckt.
Ich weiß. *schäm*
Du warst halt grad hier. *pfeif*
mv wrote:
In find_cruft-3.0.5 sollte es gehen.
Jup, 1A! Vielen Dank!
_________________
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