public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge human readable format.
@ 2007-04-03 10:40 galevsky
  2007-04-03 10:50 ` Michal 'vorner' Vaner
  2007-04-03 10:53 ` [gentoo-user] " Boyd Stephen Smith Jr.
  0 siblings, 2 replies; 9+ messages in thread
From: galevsky @ 2007-04-03 10:40 UTC (permalink / raw
  To: gentoo-user

Is there a way to have human readable format with emerge ?

It could be much more convenient to have this kind of information more
readable :

Number of files: 122567
Number of files transferred: 675
Total file size: 159275947 bytes
Total transferred file size: 3030220 bytes
Literal data: 3030220 bytes
Matched data: 0 bytes
File list size: 2969859
File list generation time: 2.042 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 18837
Total bytes received: 4035665

sent 18837 bytes  received 4035665 bytes  901000.44 bytes/sec
total size is 159275947  speedup is 39.28

but I see no human readable formatting option. Any trick ?

Gal'
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] emerge human readable format.
  2007-04-03 10:40 [gentoo-user] emerge human readable format galevsky
@ 2007-04-03 10:50 ` Michal 'vorner' Vaner
  2007-04-03 10:53   ` [gentoo-user] " Alexander Skwar
  2007-04-03 10:53 ` [gentoo-user] " Boyd Stephen Smith Jr.
  1 sibling, 1 reply; 9+ messages in thread
From: Michal 'vorner' Vaner @ 2007-04-03 10:50 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]

On Tue, Apr 03, 2007 at 12:40:49PM +0200, galevsky@gmail.com wrote:
> Is there a way to have human readable format with emerge ?
> 
> It could be much more convenient to have this kind of information more
> readable :
> 
> Number of files: 122567
> Number of files transferred: 675
> Total file size: 159275947 bytes
> Total transferred file size: 3030220 bytes
> Literal data: 3030220 bytes
> Matched data: 0 bytes
> File list size: 2969859
> File list generation time: 2.042 seconds
> File list transfer time: 0.000 seconds
> Total bytes sent: 18837
> Total bytes received: 4035665
> 
> sent 18837 bytes  received 4035665 bytes  901000.44 bytes/sec
> total size is 159275947  speedup is 39.28
> 
> but I see no human readable formatting option. Any trick ?

This is from rsync, so look there. You can (I hope) change the command
to sync portage, so you can add some flags.

However, what is unreadable about that?

-- 
This email was generated by a biological random generator.
If you want more random text, just respond to this email.

Michal "vorner" Vaner

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] emerge human readable format.
  2007-04-03 10:40 [gentoo-user] emerge human readable format galevsky
  2007-04-03 10:50 ` Michal 'vorner' Vaner
@ 2007-04-03 10:53 ` Boyd Stephen Smith Jr.
  1 sibling, 0 replies; 9+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-04-03 10:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 625 bytes --]

On Tuesday 03 April 2007, galevsky@gmail.com wrote about '[gentoo-user] 
emerge human readable format.':
> It could be much more convenient to have this kind of information more
> readable :

That's the output of rsync, not emerge.

> but I see no human readable formatting option. Any trick ?

Oddly enough, I find that quite human-readable, compared to some programs 
outputs.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user]  Re: emerge human readable format.
  2007-04-03 10:50 ` Michal 'vorner' Vaner
@ 2007-04-03 10:53   ` Alexander Skwar
  2007-04-03 12:05     ` Neil Bothwick
  2007-04-03 12:23     ` galevsky
  0 siblings, 2 replies; 9+ messages in thread
From: Alexander Skwar @ 2007-04-03 10:53 UTC (permalink / raw
  To: gentoo-user

Michal 'vorner' Vaner <vorner@ucw.cz> wrote:

>  You can (I hope) change the command
> to sync portage, so you can add some flags.

No, you cannot; at least not through some configuration. You can
of course "hack" /usr/bin/emerge.

Alexander Skwar

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user]  Re: emerge human readable format.
  2007-04-03 10:53   ` [gentoo-user] " Alexander Skwar
@ 2007-04-03 12:05     ` Neil Bothwick
  2007-04-03 12:17       ` Bo Ørsted Andresen
  2007-04-03 12:23     ` galevsky
  1 sibling, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2007-04-03 12:05 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

Hello Alexander Skwar,

> >  You can (I hope) change the command
> > to sync portage, so you can add some flags.  
> 
> No, you cannot; at least not through some configuration. You can
> of course "hack" /usr/bin/emerge.

Yes you can, by setting PORTAGE_RSYNC_EXTRA_OPTS in /etc/make.conf, but
rsync doesn't appear to have an option to change this output, only
suppress it.


-- 
Neil Bothwick

Is it true that cannibals don't eat clowns because they taste funny?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user]  Re: emerge human readable format.
  2007-04-03 12:05     ` Neil Bothwick
@ 2007-04-03 12:17       ` Bo Ørsted Andresen
  0 siblings, 0 replies; 9+ messages in thread
From: Bo Ørsted Andresen @ 2007-04-03 12:17 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

On Tuesday 03 April 2007 14:05:14 Neil Bothwick wrote:
> Hello Alexander Skwar,
>
> > >  You can (I hope) change the command
> > > to sync portage, so you can add some flags.
> >
> > No, you cannot; at least not through some configuration. You can
> > of course "hack" /usr/bin/emerge.
>
> Yes you can, by setting PORTAGE_RSYNC_EXTRA_OPTS in /etc/make.conf, but
> rsync doesn't appear to have an option to change this output, only
> suppress it.

You can also override PORTAGE_RSYNC_OPTS (the defaults are set 
in /etc/make.globals) in make.conf. What you cannot do is change the binary 
that it uses (/usr/bin/rsync).

-- 
Bo Andresen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: emerge human readable format.
  2007-04-03 10:53   ` [gentoo-user] " Alexander Skwar
  2007-04-03 12:05     ` Neil Bothwick
@ 2007-04-03 12:23     ` galevsky
  2007-04-03 12:43       ` Heinz Hombergs
  1 sibling, 1 reply; 9+ messages in thread
From: galevsky @ 2007-04-03 12:23 UTC (permalink / raw
  To: gentoo-user

emerge --sync makes a call to rsync program ? I did not take the time
yet to learn more about Gentoo specific softwares, but I will do that
soon. Look at the sizes format in bytes. Today it often happens -well,
most of the time- several Mo of download, so the byte unit is not very
useful but Kb/Mb/Gb units could be a more human readable format. I
used to deal with --si or -H when using df as an example. By default,
size unit is byte, but when you want to understand the numbers with no
mental extra operation, It is quite good to print the more suitable
unit.

Let's see my previous example:

[...]
Total transferred file size: 3030220 bytes
[...]

well, if a 'human readable option' was available, we can imagine the
output to be:

Total transferred file size: 2.89 Mb

Is there any way to do that ?

Thank you.

Gal'

2007/4/3, Alexander Skwar <listen@alexander.skwar.name>:
> Michal 'vorner' Vaner <vorner@ucw.cz> wrote:
>
> >  You can (I hope) change the command
> > to sync portage, so you can add some flags.
>
> No, you cannot; at least not through some configuration. You can
> of course "hack" /usr/bin/emerge.
>
> Alexander Skwar
>
> --
> gentoo-user@gentoo.org mailing list
>
>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: emerge human readable format.
  2007-04-03 12:23     ` galevsky
@ 2007-04-03 12:43       ` Heinz Hombergs
  2007-04-03 12:52         ` galevsky
  0 siblings, 1 reply; 9+ messages in thread
From: Heinz Hombergs @ 2007-04-03 12:43 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]

Am Dienstag, 3. April 2007 schrieb galevsky@gmail.com:
> emerge --sync makes a call to rsync program ? I did not take the time
> yet to learn more about Gentoo specific softwares, but I will do that
> soon. Look at the sizes format in bytes. Today it often happens -well,
> most of the time- several Mo of download, so the byte unit is not very
> useful but Kb/Mb/Gb units could be a more human readable format. I
> used to deal with --si or -H when using df as an example. By default,
> size unit is byte, but when you want to understand the numbers with no
> mental extra operation, It is quite good to print the more suitable
> unit.


Maybe it is possible.
man rsync with rsync version 2.6.9-r2 {~ Keyword} installed:
       -h, --human-readable
              Output  numbers in a more human-readable format.  This makes big 
numbers output using larger units, with a K, M, or G suffix.  If this option 
was specified once, these
              units are K (1000), M (1000*1000), and G (1000*1000*1000); if 
the option is repeated, the units are powers of 1024 instead of 1000.

So you can add PORTAGE_RSYNC_EXTRA_OPTS="-h" or 
PORTAGE_RSYNC_EXTRA_OPTS="-h -h" in your /etc/make.conf to do that.

-- 
Q:	How many IBM CPU's does it take to do a logical right shift?
A:	33.  1 to hold the bits and 32 to push the register.

[-- Attachment #2: Type: application/pgp-signature, Size: 481 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: emerge human readable format.
  2007-04-03 12:43       ` Heinz Hombergs
@ 2007-04-03 12:52         ` galevsky
  0 siblings, 0 replies; 9+ messages in thread
From: galevsky @ 2007-04-03 12:52 UTC (permalink / raw
  To: gentoo-user

Great !!

Thanks guys,

I was out of business since I am launching emerge --sync and emerge
helper does not provide -h option. I need more readings on Portage I
think.

Gal'

2007/4/3, Heinz Hombergs <mlist@hhombergs.de>:
> Am Dienstag, 3. April 2007 schrieb galevsky@gmail.com:
> > emerge --sync makes a call to rsync program ? I did not take the time
> > yet to learn more about Gentoo specific softwares, but I will do that
> > soon. Look at the sizes format in bytes. Today it often happens -well,
> > most of the time- several Mo of download, so the byte unit is not very
> > useful but Kb/Mb/Gb units could be a more human readable format. I
> > used to deal with --si or -H when using df as an example. By default,
> > size unit is byte, but when you want to understand the numbers with no
> > mental extra operation, It is quite good to print the more suitable
> > unit.
>
>
> Maybe it is possible.
> man rsync with rsync version 2.6.9-r2 {~ Keyword} installed:
>        -h, --human-readable
>               Output  numbers in a more human-readable format.  This makes big
> numbers output using larger units, with a K, M, or G suffix.  If this option
> was specified once, these
>               units are K (1000), M (1000*1000), and G (1000*1000*1000); if
> the option is repeated, the units are powers of 1024 instead of 1000.
>
> So you can add PORTAGE_RSYNC_EXTRA_OPTS="-h" or
> PORTAGE_RSYNC_EXTRA_OPTS="-h -h" in your /etc/make.conf to do that.
>
> --
> Q:      How many IBM CPU's does it take to do a logical right shift?
> A:      33.  1 to hold the bits and 32 to push the register.
>
>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-04-03 13:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-03 10:40 [gentoo-user] emerge human readable format galevsky
2007-04-03 10:50 ` Michal 'vorner' Vaner
2007-04-03 10:53   ` [gentoo-user] " Alexander Skwar
2007-04-03 12:05     ` Neil Bothwick
2007-04-03 12:17       ` Bo Ørsted Andresen
2007-04-03 12:23     ` galevsky
2007-04-03 12:43       ` Heinz Hombergs
2007-04-03 12:52         ` galevsky
2007-04-03 10:53 ` [gentoo-user] " Boyd Stephen Smith Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox