[Lincoln LUG] apt-get
Chris Burton
Chris at 7of9b.org
Wed Oct 3 20:19:55 UTC 2012
> Does anyone know how to log the output from apt-get.
>
> With the following, the output is an empty file:
>
> sudo apt-get update > error.txt
>
> sudo apt-get update | tee error.txt
If the output it going to stderr you'll need something like this
sudo apt-get update > error.txt 2>&1
Or using script
script error.txt -c "sudo apt-get update"
ChrisB.
--
Chris Burton
http://dnshistory.org/
More information about the Lincoln
mailing list