Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] escludere /usr/*/portage da locate
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 13200
Location: here

PostPosted: Tue May 10, 2005 10:34 am    Post subject: [TIP] escludere /usr/*/portage da locate Reply with quote

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
Code:
# updatedb

e vedrete che l'operazione sara' anche molto piu' veloce di prima :wink:

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

_________________
"aspetto un'emozione sempre più indefinibile"
- CCCP -
"la libertà un doveroso pericolo in verità"
- PGR -
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4477
Location: In giro

PostPosted: Tue May 10, 2005 10:44 am    Post subject: Reply with quote

Ottimo tip :D non ci avevo mai pensato... :roll: :oops:
_________________
Any man's death diminishes me, because I am involved in mankind, and therefore never send to know for whom the bell tolls; it tolls for thee
-John Donne
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2700
Location: Italy

PostPosted: Tue May 10, 2005 10:57 am    Post subject: Reply with quote

aggiungerei a questo ounto anche /var/db/pkg/ ;)
_________________
Remember! Gnu is not Unix!
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Linux Counter[code:1]
User n° #466586
ID 375005 EkatombeII
ID 375006 Apocalypto
ID 375007 KHP[/code:1]
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 13200
Location: here

PostPosted: Tue May 10, 2005 11:01 am    Post subject: Reply with quote

koma wrote:
aggiungerei a questo ounto anche /var/db/pkg/ ;)

E lo so ma ogni tanto mi serve trovare quei file
_________________
"aspetto un'emozione sempre più indefinibile"
- CCCP -
"la libertà un doveroso pericolo in verità"
- PGR -
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
neryo
Veteran
Veteran


Joined: 09 Oct 2004
Posts: 1292
Location: Ferrara, Italy, Europe

PostPosted: Tue May 10, 2005 11:13 am    Post subject: Reply with quote

ottimo tips fedeliallalinea! :lol:
_________________
cache: a safe place for hiding or storing things..

D-link DWL-G650 AirPlus
Apache Php Mysql
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3270
Location: Italy, Milano

PostPosted: Tue May 10, 2005 1:49 pm    Post subject: Reply with quote

Tattico!
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
oRDeX
Veteran
Veteran


Joined: 19 Oct 2003
Posts: 1303
Location: Italy: Trento || Mondo

PostPosted: Tue May 10, 2005 2:24 pm    Post subject: Reply with quote

Semplice e genuino :D :D
_________________
Drink more beer, save water
P u n X the system
and support http://freenetproject.org!
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Fri Aug 12, 2005 9:08 am    Post subject: Reply with quote

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
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Fri Aug 12, 2005 10:22 am    Post subject: Reply with quote

come al solito grande tips !!!!!!!!!
Back to top
View user's profile Send private message
btbbass
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 287
Location: Asti o Torino

PostPosted: Fri Aug 12, 2005 3:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
thewally
l33t
l33t


Joined: 12 May 2005
Posts: 703
Location: Genova

PostPosted: Sat Aug 13, 2005 7:11 pm    Post subject: Reply with quote

lopio wrote:
come al solito grande tips !!!!!!!!!


Quoto :D
Semplice e nel contempo eccezionale :D
Back to top
View user's profile Send private message
MadJackal
n00b
n00b


Joined: 10 Feb 2004
Posts: 8

PostPosted: Wed Aug 17, 2005 10:24 am    Post subject: Reply with quote

lopio wrote:
come al solito grande tips !!!!!!!!!


Confermo.
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Anzio (RM)

PostPosted: Wed Aug 17, 2005 10:36 am    Post subject: Reply with quote

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!! :)
_________________
www.forumeye.it il 1° forum italiano di videogiochi
Back to top
View user's profile Send private message
gutter
Moderator
Moderator


Joined: 13 Mar 2004
Posts: 7160
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Aug 17, 2005 3:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
kandalf
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 261

PostPosted: Wed Aug 17, 2005 3:53 pm    Post subject: Reply with quote

grande! semplice & utile.
_________________
live free or die
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Wed Aug 17, 2005 4:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
gutter
Moderator
Moderator


Joined: 13 Mar 2004
Posts: 7160
Location: Aarau, Aargau, Switzerland

PostPosted: Thu Aug 18, 2005 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Thu Aug 18, 2005 6:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sparker
l33t
l33t


Joined: 28 Aug 2003
Posts: 992

PostPosted: Thu Aug 18, 2005 6:27 pm    Post subject: Reply with quote

In teoria l'ebuild ha fatto un link a updatedb in cron.daily
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Fri Aug 19, 2005 1:07 am    Post subject: Reply with quote

non ce l'ho, ma è molto probabile che l'abbia tolto durante tutto sto tempo :D
_________________
[Vuoi guadagnare navigando?]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) 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