View previous topic :: View next topic |
Author |
Message |
Egil n00b
Joined: 16 May 2002 Posts: 12 Location: Milwaukee, WI
|
Posted: Fri May 31, 2002 4:58 pm Post subject: emerge output to file? |
|
|
Yet another question.
I haven't tried this because I do not wish to potentially ruin the current gentoo installation, but how can the results of an emerge be directed to a file, or better yet the screen and a file? That way I can go through the output to determine compiler warnings and get a better handle on what is going into making the package that I am installing.
I fingure that the following would work to redirect the output to a file:
Code: | emerge --update world > /usr/portage/20020531.emerge.results |
Thank You. |
|
Back to top |
|
|
radfaraf n00b
Joined: 25 May 2002 Posts: 55 Location: NJ
|
Posted: Fri May 31, 2002 9:00 pm Post subject: |
|
|
that should do the trick |
|
Back to top |
|
|
dek l33t
Joined: 16 May 2002 Posts: 657 Location: Germany
|
Posted: Fri May 31, 2002 10:06 pm Post subject: |
|
|
I think what you mean is doing the complete update world step (with compiling), but NOT doing the install ?
Well i really don't know. You can do
Code: |
emerge --pretend --update world
or shorter:
emerge -pu world
|
This will show you what would be emerged without updating anything. But i think that's not what you want.
btw: If you want the actual date in a filename for example you can do something like this:
Code: |
emerge -pu world > `date -I`.foo
|
|
|
Back to top |
|
|
Egil n00b
Joined: 16 May 2002 Posts: 12 Location: Milwaukee, WI
|
Posted: Sat Jun 01, 2002 2:21 pm Post subject: found it - tee |
|
|
Thank you for the replies.
What I wound up using is:
Code: | emerge 'package' | tee -a 'date'.emerge | [/i] |
|
Back to top |
|
|
|