I'm trying to get aptitude to redirect install errors to a log file, as follows:
Code:
$ sudo aptitude install -q package1 package2 package3 2>install-err.log
But it won't let me log errors. It works with 1>, where it logs
everything, but I need it to show the normal output and redirect the errors into a logfile.
How do I achieve this?