[clue-tech] Capturing output from apt-get and yum

Collins Richey crichey at gmail.com
Tue Nov 17 18:54:58 MST 2009


On Mon, Nov 16, 2009 at 9:50 PM, mike havlicek <mhavlicek1 at yahoo.com> wrote:
> Hello,
>
> I often use "2>&1 | tee logfile" after a command in bash to save the output. But often with package installations user confirmations (Yy/Nn) can be tricky. I definately know yum has thrown me a curve with the user
> confirmation question not being displayed on the screen leaving me sitting there wondering why the operation hung. Any suggestions of a better way to do a redirect than:
>
> bash% apt-get install foobar 2>&1 | tee apt-get_install_foobar.log
>
> or the analog for yum.
>

yum -y .... to avoid the confirmation question.



-- 
Collins Richey
     If you fill your heart with regrets of yesterday and the worries
     of tomorrow, you have no today to be thankful for.


More information about the clue-tech mailing list