#537333 aptitude: Option -q doesn't turn off progress indicator

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Vladimir Stavrinov
Date:
2015-08-14 16:30:07 UTC
Severity:
normal
Blocked By:
Bug Title
539617

  10

dpkg: Add option to suppress progress display while reading database

wishlist stable testing unstable about 3 years ago

#537333#5
Date:
2009-07-17 07:03:23 UTC
From:
To:

Here is quote from man page:

       -q[=<n>], --quiet[=<n>]
           Suppress all incremental progress indicators, thus making the output loggable. This may be supplied multiple times to make the
           program quieter, but unlike apt-get, aptitude does not enable -y when -q is supplied more than once.

           The optional =<n> may be used to directly set the amount of quietness (for instance, to override a setting in
           /etc/apt/apt.conf); it causes the program to behave as if -q had been passed exactly <n> times.


But with any number of this option I see in log file something like this:

3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/345kB of archives. After unpacking 0B will be used.
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M(Reading database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database ... 65%^M(Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M^M(Reading database ... 86745 files and directories currently installed.)

#537333#10
Date:
2009-08-05 06:58:18 UTC
From:
To:
package aptitude dpkg
block 537333 by 539617
severity 537333 wishlist
thanks

These messages are actually coming from dpkg (the progress indicator was
added in dpkg 1.15.0), and there is currently no way to suppress them if
standard output is a terminal.  There is a wishlist bug (#539617)
against dpkg to add an option to not display it.  Once a version of dpkg
that supports this option is in stable, "aptitude -q" could be changed
to invoke dpkg in such a way.

Cheers,
       Sven

#537333#19
Date:
2009-08-05 07:35:05 UTC
From:
To:
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

It is invoked by cron and output to log file. There are no terminal.


*********************************
****   Vladimir Stavrinov  ******
*******   vs@inist.ru   *********
*********************************

#537333#24
Date:
2009-08-05 09:48:04 UTC
From:
To:
unblock 537333 by 539617
severity 537333 normal
reassign 537333 apt
thanks

Now that you mention it, you're right.  The progress indicator is not
shown when installing with dpkg directly, but it does appear when using
either aptitude or apt-get.  I suspect this is an apt problem.

Regards,
        Sven