Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[tip] equery : isolare le useflags di un pacchetto
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
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4787
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sat Aug 26, 2006 8:05 am    Post subject: [tip] equery : isolare le useflags di un pacchetto Reply with quote

1. Non utilizzare portageq, perchè dà risultati parziali e utilizza esclusivamente il database dei pacchetti installati.
2. Non usare lo standard output di equery uses, perchè è bello da vedere ma troppo complicato da utilizzare.

la vera soluzione è (rullo di tamburi):
Code:

cloc3@s939 ~ $ equery uses -a =gentoo-sources-2.6.17-r6 |cat -
-build
-symlink
-ultra1

:)
_________________
vu vu vu
gentù
mi piaci tu


Last edited by cloc3 on Sat Aug 26, 2006 11:02 am; edited 1 time in total
Back to top
View user's profile Send private message
syntaxerrormmm
Guru
Guru


Joined: 17 Apr 2005
Posts: 449
Location: Romano di Lombardia - BG - ITALY

PostPosted: Sat Aug 26, 2006 10:16 am    Post subject: Reply with quote

Bah, magari non è esattamente il comando che risponde all'esigenza, ma a me basta un
Code:
emerge -pv =gentoo-sources-2.6.17-r6

Ciao.
_________________
"Every rule can be broken, but no rule may be ignored."

Last.fm - Gentoo 2006.1 on:
Acer Aspire 1355LC - suspend2-sources-2.6.18-r3
IBM Thinkpad T30 - suspend2-sources-2.6.19-r3
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4787
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sat Aug 26, 2006 11:00 am    Post subject: Reply with quote

syntaxerrormmm wrote:
Bah, magari non è esattamente il comando che risponde all'esigenza, ma a me basta un
Code:
emerge -pv =gentoo-sources-2.6.17-r6

Ciao.

Code:

   
s939 ~ # emerge -pv =gentoo-sources-2.6.17-r6

These are the packages that would be merged, in order:

Calculating dependencies
!!! All ebuilds that could satisfy "=gentoo-sources-2.6.17-r6" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-kernel/gentoo-sources-2.6.17-r6 (masked by: ~amd64 keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.

come vedi le complicazioni sono in agguato.

il punto su cui batto non è se esistono altri sistemi di ottenere il risultato, ma mostrare una funzionalità specifica di equery, che redirige verso le pipe un output diverso da quello standard, proprio per assolvere esigenze particolari.

tra l'altro, confronta i tempi di esecuzione:
Code:

cloc3@s939 ~ $ time equery l |cat -
...

real    0m2.716s
user    0m2.264s
sys     0m0.336s
cloc3@s939 ~ $ time equery l
...

real    0m5.509s
user    0m2.368s
sys     0m0.420s

_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
syntaxerrormmm
Guru
Guru


Joined: 17 Apr 2005
Posts: 449
Location: Romano di Lombardia - BG - ITALY

PostPosted: Sat Aug 26, 2006 12:16 pm    Post subject: Reply with quote

cloc3 wrote:
il punto su cui batto non è se esistono altri sistemi di ottenere il risultato, ma mostrare una funzionalità specifica di equery
Ok, non si evinceva così chiaramente...

Comunque grazie per il tip :)
_________________
"Every rule can be broken, but no rule may be ignored."

Last.fm - Gentoo 2006.1 on:
Acer Aspire 1355LC - suspend2-sources-2.6.18-r3
IBM Thinkpad T30 - suspend2-sources-2.6.19-r3
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Aug 28, 2006 8:58 am    Post subject: Reply with quote

più che altro questo suggerimento serve per chi deve manipolare le use con uno script. Chi deve soltanto vederle può accontentarsi dell'output di equery. Infatti equery quando non deve mettere l'output su terminale di proposito riduce la "spazzatura".
_________________
Running Fast!
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