Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've heard that apt has some a fancy colour and progress bar feature, but that I have to manually enable it.

How do I do this?

share|improve this question

1 Answer 1

up vote 21 down vote accepted

For 14.04 and newer:

Make a file in: /etc/apt/apt.conf.d:

sudoedit /etc/apt/apt.conf.d/99progressbar

Then add these contents:

Dpkg::Progress-Fancy "1";

Save the file and you can now enjoy apt progress bars in all their glory:

enter image description here

You can use them with these commands for a nice new apt experience:

apt update
apt install
apt upgrade

Run apt by itself for the list of commands. Colors are enabled by default for apt, and do not affect apt-get.

Colors:

You can also tweak the color of the progress bar by adding this as well:

Dpkg::Progress-Fancy::Progress-Bg "%1b[40m"; 

The colors are based on ANSI Color codes, look at this chart as a reference.

Sources:

share|improve this answer
    
I am still using 13.10 (at least for the next week or two). Is this feature available in 13.10? –  OSE Apr 9 at 13:57
    
I am reasonably certain it is not in 13.10. –  Jorge Castro Apr 9 at 14:04
6  
Is there any disadvantage to using apt instead of apt-get, etc? –  mikeymop Apr 9 at 16:10
    
That is a bit odd. I get the progress bar on apt-get upgrade, install and remove, but no colors in apt-get update, I have to use apt update. Very odd. –  Seth Apr 9 at 17:05
1  
Hm. I'm on 13.10 and after applying this settings i see progress in both apt and apt-get as well as in dpkg. –  coderus Apr 14 at 13:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.