Can I avoid apt?
Ralf Mardorf
silver.bullet at zoho.com
Sun Sep 24 18:42:20 UTC 2017
On Sun, 24 Sep 2017 08:42:54 +0100, Colin Watson wrote:
>On Sat, Sep 23, 2017 at 07:39:13PM -0700, Kevin O'Gorman wrote:
>> I don't like apt. I'm in the habit of doing my updates under the
>> script(1) command and that banner that apt puts at the bottom of the
>> screen makes the files unreadable.
>>
>> Is there a way to disable it? Possibly by lying to apt about my
>> terminal's capabilities?
>
>There may be a more graceful way to do it and it seems to be
>undocumented, but setting quiet::NoUpdate=true (e.g. with a "-o"
>command-line option to apt) should do the trick.
I guess to get the same behavior for apt, as provided by the apt-get
defaults, those options are required:
apt -o Dpkg::Progress-Fancy=0 -o APT::Color=0 -o APT::Keep-Downloaded-Packages=1
Vice versa to ensure that apt-get behaves as done by the apt defaults:
apt-get -o Dpkg::Progress-Fancy=1 -o APT::Color=1 -o APT::Keep-Downloaded-Packages=0
More information about the ubuntu-users
mailing list