Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge output to file?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Egil
n00b
n00b


Joined: 16 May 2002
Posts: 12
Location: Milwaukee, WI

PostPosted: Fri May 31, 2002 4:58 pm    Post subject: emerge output to file? Reply with quote

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
View user's profile Send private message
radfaraf
n00b
n00b


Joined: 25 May 2002
Posts: 55
Location: NJ

PostPosted: Fri May 31, 2002 9:00 pm    Post subject: Reply with quote

that should do the trick :)
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Fri May 31, 2002 10:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Egil
n00b
n00b


Joined: 16 May 2002
Posts: 12
Location: Milwaukee, WI

PostPosted: Sat Jun 01, 2002 2:21 pm    Post subject: found it - tee Reply with quote

Thank you for the replies.

What I wound up using is:
Code:
emerge 'package' | tee -a 'date'.emerge
[/i]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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