View previous topic :: View next topic |
Author |
Message |
shogun_panda Guru
Joined: 30 Jul 2004 Posts: 411 Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe
|
Posted: Thu May 05, 2005 6:56 pm Post subject: [TIP] Numero di pacchetti che verranno installati da emerge |
|
|
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... _________________ 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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31202 Location: here
|
Posted: Thu May 05, 2005 7:11 pm Post subject: |
|
|
Un po' piu' semplice
Code: | # emerge -ep system | grep "ebuild" | wc -l |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
shogun_panda Guru
Joined: 30 Jul 2004 Posts: 411 Location: Campobasso or Rome, Molise or Lazio, Italy, Europe, Earth, Solar system, Milk Way, Universe
|
Posted: Thu May 05, 2005 7:15 pm Post subject: |
|
|
fedeliallalinea wrote: | Un po' piu' semplice
Code: | # emerge -ep system | grep "ebuild" | wc -l |
|
Eh eh...Lo sapevo che era troppo complicato...Ih ih... _________________ 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 |
|
|
Ciccio n00b
Joined: 17 Feb 2004 Posts: 67
|
Posted: Tue May 10, 2005 11:34 am Post subject: |
|
|
Ancora più sintetico:
Code: | emerge -ep system | grep -c ebuild |
_________________ Francesco
http://www.ciccio.org |
|
Back to top |
|
|
Sasdo Guru
Joined: 18 Feb 2004 Posts: 542 Location: 44.476474,11.644446 circa.
|
Posted: Tue May 10, 2005 12:02 pm Post subject: |
|
|
e allora più veloce:
Code: | emerge -ep system | fgrep -c ebuild |
_________________ LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo. |
|
Back to top |
|
|
|