How can I run sudo apt-get install
by BOTH seeing the process of installation (long in my case) and saving its output into a text file ?
|
||||
add comment |
use the
|
|||||||||||||||||||||
|
You can use the
Look here for more info, or execute Note: As others have mentioned, |
|||||||||||||||||||||
|
To capture the output into a file, use:
This will only capture the output, but not any error messages. If you would also like to record error messages, modify the command to be:
|
||||
|
One of the beauty of apt-get (and APT in general) is that they store log files for almost everything, even the terminal output of any command that you run trough, in the
Now, comparing with the actual output:
It saved me several lines that are not relevant in most cases, and it does automatically. So, you don't need any extra command to do what you want to do, apt-get does it for you. |
|||
|
try tee command. You can found here some examples. Simple usage:
example:
|
|||||
|
apt-get
right? – Braiam 22 hours ago