I've heard that apt has a new fancy colour and progress bar feature, but that I have to manually enable it.
How do I do this?
I've heard that apt has a new fancy colour and progress bar feature, but that I have to manually enable it.
How do I do this?
For 14.04 and newer:
Make a file in:
/etc/apt/apt.conf.d
:Then add these contents:
And save the file.
Then if your
umask
was not 0027, (i.e. it might also be 0023), then also set this new file's permissions to 644 (i.e. -rw-r--r--) as follows:(Without this permission correction things like Debian's
reportbug
will stop working.)Now enjoy apt progress bars in all their glory:
You can use them with these commands for a nice new apt experience:
Run
apt
by itself for the list of commands. Colors are enabled by default forapt
, and do not affectapt-get
.Colors:
You can also tweak the color of the progress bar by adding this as well:
The colors are based on ANSI Color codes, look at this chart as a reference.
Sources:
The
-o
option allows to change the behavior temporarily. I described it here:For default colors
In addition to Jorge Castro's excellent answer, you can add an extra line to the
/etc/apt/apt.conf.d/99progressbar
file:This will enable the default colors for
apt
. I found it by accident while reading theapt
man
page: