[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get -qq install



On 8/2/22 17:17, Victor Sudakov wrote:
David Christensen wrote:
On 8/2/22 15:53, Victor Sudakov wrote:

(Un)fortunately this is a CI/CD pipeline, the VM and its data will be
gone forever after the build. Unless I care to keep apt output as an
artifact somewhere which is IMHO an overkill. I just want an concise
CI/CD log without interactive bells and whistles like progress
indicators.


Without seeing your CI/CD pipeine -- create a patterns file containing
regular expressions that match the lines you want removed, then add a
grep(1) filter into the pipeline:

Of course I can think of many workarounds. The original question was
however why "-qq" was not working and what I was missing in "apt"
usage.


You're right -- I made no attempt to figure out why apt(8) apparently does not implement proper "quiet", "real-quiet", etc., options.


Call it pragmatism. I've been down plenty of rabbit holes trying to trouble-shoot software; and I expect apt(8) is non-trivial. How many hours have you and others spent on this issue? Have you found the "correct" solution? Using grep(1) in a command pipeline to filter out unwanted lines is a known technique. It took me a few minutes to write the example, and it works.


David


Reply to: