I would like to be able to simply save stdout and stderr when installing software
There are 3 scenarios I would like to address:
- When using apt-get
- When using apt-get and tee
- When using make install
1. When using apt-get
I am having trouble "visualizing" the difference between stdout and stderr in the context of software installation. Indeed, you often get a lot of output on your terminal when installing software and some of it often has warnings. So in this context"
- Would stderr be completely empty if your installation had worked?
- Or if it has warning, what is "left" in the stdout?
- Or would you suggest saving stdout and stderr together in this context?
In any case, would this work?
sudo apt-get package 1>output.txt 2>errors.err
2. When using apt-get and tee
In practise, it would be nice to not only save the stdout and sterr to files but also still view them in my terminal. So using tee, would this be the best work?
sudo apt-get package | tee 1>output.txt 2>errors.err
3. When using make install
Things get complicated here I'm guessing.. Would it be as simple as:
./configure 1>output1.txt 2>errors1.err make 1>output2.txt 2>errors2.err make install 1>output3.txt 2>errors3.err