On Tue, 2 Aug 2022 Victor Sudakov wrote:
davidson wrote:
I'm trying to quiet apt's output by using `apt-get -qqy` in a CI/CD
pipeline, however I still see ugly stuff like this in my CI/CD log:
Selecting previously unselected package php-common.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
[snip]
and this:
Scanning processes... [ ]
Scanning processes... [ ]
Scanning processes... [ ]
Scanning processes... [= ]
Scanning processes... [= ]
Scanning processes... [== ]
Scanning processes... [== ]
[snip]
Don't you think the `-qq` modifier should spare me these things?
I would expect so too.
I don't actually like the idea of redirecting apt-get's output to
/dev/null because I want to see the list of packages installed, but without
these pseudographics. Do you think it's possible? Any ideas?
In the file
/usr/share/doc/apt/examples/configure-index.gz
I notice there is a stanza that begins like so:
quiet "<INT>" {
NoUpdate "<BOOL>"; // never update progress information - included in -q=1
NoProgress "<BOOL>"; // disables the 0% -> 100% progress on cache
generation and stuff
I don't know whether this will help you, but it does look suggestive.
Thank you, how do you activate this option? I've just tried
`apt-get -o quiet::NoProgress=true -qqy ...`
I would do it that way too.
but the "Reading database ... 5%" stuff is still there.
Yeah, after some unsatisfying experimentation I've had no luck either.
Maybe this bug report will interest you:
#539617 - dpkg: Add option to suppress progress display while reading database
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539617
--
Ce qui est important est rarement urgent
et ce qui est urgent est rarement important
-- Dwight David Eisenhower