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

Re: apt-get -qq install



On 8/2/22 11:27, Victor Sudakov wrote:
Dear Colleagues,

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%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%

and this:

Scanning processes... [                                                        ]
Scanning processes... [                                                        ]
Scanning processes... [                                                        ]
Scanning processes... [=                                                       ]
Scanning processes... [=                                                       ]
Scanning processes... [==                                                      ]
Scanning processes... [==                                                      ]
Scanning processes... [===                                                     ]
Scanning processes... [===                                                     ]
Scanning processes... [====                                                    ]
Scanning processes... [====                                                    ]
Scanning processes... [=====                                                   ]
Scanning processes... [=====                                                   ]
Scanning processes... [======                                                  ]
Scanning processes... [======                                                  ]
Scanning processes... [=======                                                 ]
Scanning processes... [=======                                                 ]
Scanning processes... [========                                                ]
Scanning processes... [========                                                ]
Scanning processes... [=========                                               ]
Scanning processes... [=========                                               ]

Don't you think the `-qq` modifier should spare me these things?

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?


I prefer the idea of collecting all of the data and then writing queries and reports to print the interesting bits. If you keep all of the data, you can apply future queries and reports to past data. But if you filter the data up front and save one report format, your future options are limited.


David


Reply to: