Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Numero di pacchetti che verranno installati da emerge
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
shogun_panda
Guru
Guru


Joined: 30 Jul 2004
Posts: 411
Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe

PostPosted: Thu May 05, 2005 6:56 pm    Post subject: [TIP] Numero di pacchetti che verranno installati da emerge Reply with quote

Non so se sia la maniera migliore per farlo, comunque...

Per sapere quanti pacchetti installera' emerge:
Code:

$ emerge -ep system | egrep "^\[ebuild" | sed "=" | tail -n 2 | head -n 1


Ovvio che il comando da dare a emerge puo' cambiare...
L'importante e' lasciare il --pretend (-p) senno' emerge si rifiuta di andare in pasto a grep...
Ma resto convinto che esista un modo migliore... :oops:
_________________
Greetings by the Shogun! - Home page

1-"Prima di dare consigli agli altri, sperimentateli su voi stessi..."
2-"In medio stat virtus!"
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Thu May 05, 2005 7:11 pm    Post subject: Reply with quote

Un po' piu' semplice
Code:
# emerge -ep system | grep "ebuild" | wc -l

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
shogun_panda
Guru
Guru


Joined: 30 Jul 2004
Posts: 411
Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe

PostPosted: Thu May 05, 2005 7:15 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Un po' piu' semplice
Code:
# emerge -ep system | grep "ebuild" | wc -l


8O 8O 8O 8O

Eh eh...Lo sapevo che era troppo complicato...Ih ih... :lol:
_________________
Greetings by the Shogun! - Home page

1-"Prima di dare consigli agli altri, sperimentateli su voi stessi..."
2-"In medio stat virtus!"
Back to top
View user's profile Send private message
Ciccio
n00b
n00b


Joined: 17 Feb 2004
Posts: 67

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

Ancora più sintetico:

Code:
emerge -ep system | grep -c ebuild


:lol:
_________________
Francesco
http://www.ciccio.org
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Tue May 10, 2005 12:02 pm    Post subject: Reply with quote

e allora più veloce:

Code:
emerge -ep system | fgrep -c ebuild


:mrgreen:
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
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