Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
51
rated 0 times [  51] [ 0]  / answers: 1 / hits: 30994  / 2 Years ago, sat, february 12, 2022, 2:12:32

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?


More From » apt

 Answers
1

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";

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:


$ chmod 644 99progressbar

(Without this permission correction things like Debian's reportbug will stop working.)


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:



[#26127] Sunday, February 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
antebrow

Total Points: 291
Total Questions: 135
Total Answers: 117

Location: New Caledonia
Member since Thu, Mar 23, 2023
1 Year ago
;