Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MiniTIP: uso di find per trovare un pacchetto installato.
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
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Mon Oct 31, 2005 5:27 pm    Post subject: MiniTIP: uso di find per trovare un pacchetto installato. Reply with quote

probabilmente sarò passibile di accuse di ignoranza, e probabilmente c'e' pure un metodo migliore, ma io mi trovo bene con questo.

Detto cio', ho trovato l'uso di equery per cercare pacchetti installati abbastanza rognoso.
avevo bisogno di un mezzo veloce per trovare un pacchetto installato partendo da un pattern che mi ricordavo, per cui ho fatto questa funzioncina stupida:
Code:
function trovapacchetto { find /var/db/pkg/ -mindepth 2 -maxdepth 2 -iname \*$1\* -type d }

e l'ho inserita nel file /etc/profile (o in uno dei suoi sottorami), e digitando
Code:
trovapacchetto sources
mi trovo i kernel installati.
niente di piu.

spero serva.
ciao
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
thewally
l33t
l33t


Joined: 12 May 2005
Posts: 703
Location: Genova

PostPosted: Mon Oct 31, 2005 5:33 pm    Post subject: Reply with quote

Oh ! Fonderia ne sa' una più del diavolo :lol:

Grazie :D
_________________
Proudly Member of GeCHI
Back to top
View user's profile Send private message
iro
n00b
n00b


Joined: 23 Dec 2004
Posts: 59
Location: Modena, Italy

PostPosted: Mon Oct 31, 2005 6:39 pm    Post subject: Reply with quote

Code:
equery list '*sources'
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Mon Oct 31, 2005 8:16 pm    Post subject: Reply with quote

iro wrote:
Code:
equery list '*sources'


se è per questo c'è anche l'opzione -I di eix però penso che FonderiaDigitale ha voluto divulgare questo tip per quelli che non volessero usare programmi aggiuntivi... find in fin dei conti è installato di base...
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Mon Oct 31, 2005 8:47 pm    Post subject: Re: MiniTIP: uso di find per trovare un pacchetto installato Reply with quote

FonderiaDigitale wrote:

Detto cio', ho trovato l'uso di equery per cercare pacchetti installati abbastanza rognoso.


equery è un bel tool, ma in effetti per la ricerca di pacchetti installati mi trovavo meglio con
l'ormai vecchio e deprecato qpkg
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Mon Oct 31, 2005 10:18 pm    Post subject: Reply with quote

iro wrote:
Code:
equery list '*sources'


giusto, appunto.
ma tuttavia:
- sui firewall io installo *realmente* il minimo indispensabile. find e' un eseguibile di base, mentre equery no. ecco da dove nasce l'esigenza
- a voler fare i pignoli, e' molto piu rapido scannare 1 sottoramo in cerca di 1 directory che caricarmi un ambiente python e tutte le classi di portage

e poi io ho sempre preferito la 'via grezza' :D .. ma de gustibus.
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
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