View previous topic :: View next topic |
Author |
Message |
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30888 Location: here
|
Posted: Tue May 10, 2005 10:34 am Post subject: [TIP] escludere /usr/*/portage da locate |
|
|
E' un mini tips ma io trovo molto utile. Quando faccio delle ricerche su programmi con locate mi escono sempre i file che si trovano in /usr/portage e questo lo trovo molto fastidioso. Editate quindi il file /etc/updatedb.conf e aggiungere alla variabile PRUNEPATHS /usr/portage e /usr/local/portage la mia ora e' cosi
Code: | PRUNEPATHS="/tmp /var/tmp /usr/portage /usr/local/portage" |
date ora un bel
e vedrete che l'operazione sara' anche molto piu' veloce di prima
PS: magari a voi vi interessa mantenere queste cartelle, comunque date un occhio a questo
updatedb con incluse /usr/portage e /usr/locate/portage Code: | time updatedb
real 4m19.157s
user 0m2.532s
sys 0m6.662s
|
updatedb escludendo /usr/portage e /usr/locate/portage Code: | time updatedb
real 0m15.351s
user 0m1.521s
sys 0m3.591s |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Tue May 10, 2005 10:44 am Post subject: |
|
|
Ottimo tip non ci avevo mai pensato... _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
|
koma Advocate
Joined: 06 Jun 2003 Posts: 2702 Location: Italy
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30888 Location: here
|
Posted: Tue May 10, 2005 11:01 am Post subject: |
|
|
koma wrote: | aggiungerei a questo ounto anche /var/db/pkg/ |
E lo so ma ogni tanto mi serve trovare quei file _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
neryo Veteran
Joined: 09 Oct 2004 Posts: 1292 Location: Ferrara, Italy, Europe
|
|
Back to top |
|
|
federico Advocate
Joined: 18 Feb 2003 Posts: 3272 Location: Italy, Milano
|
|
Back to top |
|
|
oRDeX Veteran
Joined: 19 Oct 2003 Posts: 1325 Location: Italy
|
Posted: Tue May 10, 2005 2:24 pm Post subject: |
|
|
Semplice e genuino |
|
Back to top |
|
|
fctk Veteran
Joined: 28 Jan 2004 Posts: 1424 Location: Milan, Italy, EU
|
Posted: Fri Aug 12, 2005 9:08 am Post subject: |
|
|
aggiungerei a PRUNEPATHS anche /root/.ccache
così facendo, sono passato da:
Code: | thorium pkg # time updatedb
real 5m4.470s
user 0m1.201s
sys 0m6.832s |
a
Code: | thorium .ccache # time updatedb
real 2m20.713s
user 0m0.732s
sys 0m4.819s |
|
|
Back to top |
|
|
lopio Veteran
Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Fri Aug 12, 2005 10:22 am Post subject: |
|
|
come al solito grande tips !!!!!!!!! |
|
Back to top |
|
|
btbbass Apprentice
Joined: 15 Feb 2005 Posts: 287 Location: Asti o Torino
|
Posted: Fri Aug 12, 2005 3:12 pm Post subject: |
|
|
Finalmente nn avrò più timore ad aggiornare il db di locate... a volte lo lasciavo così anche per un mese... _________________ Chi dice che è impossibile non interrompa chi lo sta facendo
-Proverbio Cinese -
___________________________________ |
|
Back to top |
|
|
thewally l33t
Joined: 12 May 2005 Posts: 703 Location: Genova
|
Posted: Sat Aug 13, 2005 7:11 pm Post subject: |
|
|
lopio wrote: | come al solito grande tips !!!!!!!!! |
Quoto
Semplice e nel contempo eccezionale |
|
Back to top |
|
|
MadJackal n00b
Joined: 10 Feb 2004 Posts: 8
|
Posted: Wed Aug 17, 2005 10:24 am Post subject: |
|
|
lopio wrote: | come al solito grande tips !!!!!!!!! |
Confermo. |
|
Back to top |
|
|
Raffo Veteran
Joined: 23 Apr 2004 Posts: 1019 Location: Berlin
|
Posted: Wed Aug 17, 2005 10:36 am Post subject: |
|
|
btbbass wrote: | Finalmente nn avrò più timore ad aggiornare il db di locate... a volte lo lasciavo così anche per un mese... |
ma gentoo nn fa automaticamente l'update?
cmq ottimo tip!! |
|
Back to top |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Wed Aug 17, 2005 3:46 pm Post subject: |
|
|
Raffo wrote: |
ma gentoo nn fa automaticamente l'update? |
Si, ma il tip è per escludere alcune dir dal processo di update _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
|
kandalf Apprentice
Joined: 13 Nov 2003 Posts: 261
|
Posted: Wed Aug 17, 2005 3:53 pm Post subject: |
|
|
grande! semplice & utile. _________________ live free or die |
|
Back to top |
|
|
ProT-0-TypE Veteran
Joined: 20 Dec 2003 Posts: 1624 Location: Cagliari
|
Posted: Wed Aug 17, 2005 4:30 pm Post subject: |
|
|
Raffo wrote: |
ma gentoo nn fa automaticamente l'update?
|
Secondo me no, per lo meno io in cron non ho niente di simile _________________ [Vuoi guadagnare navigando?] |
|
Back to top |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Thu Aug 18, 2005 3:48 pm Post subject: |
|
|
ProT-0-TypE wrote: |
Secondo me no, per lo meno io in cron non ho niente di simile |
Si trova nel pacchetto slocate. _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
|
ProT-0-TypE Veteran
Joined: 20 Dec 2003 Posts: 1624 Location: Cagliari
|
Posted: Thu Aug 18, 2005 6:11 pm Post subject: |
|
|
gutter wrote: | ProT-0-TypE wrote: |
Secondo me no, per lo meno io in cron non ho niente di simile |
Si trova nel pacchetto slocate. |
si, slocate ce l'ho... intendevo che il db non viene aggiornato automaticamente _________________ [Vuoi guadagnare navigando?] |
|
Back to top |
|
|
Sparker l33t
Joined: 28 Aug 2003 Posts: 992
|
Posted: Thu Aug 18, 2005 6:27 pm Post subject: |
|
|
In teoria l'ebuild ha fatto un link a updatedb in cron.daily |
|
Back to top |
|
|
ProT-0-TypE Veteran
Joined: 20 Dec 2003 Posts: 1624 Location: Cagliari
|
Posted: Fri Aug 19, 2005 1:07 am Post subject: |
|
|
non ce l'ho, ma è molto probabile che l'abbia tolto durante tutto sto tempo _________________ [Vuoi guadagnare navigando?] |
|
Back to top |
|
|
|