You are not logged in.

#1 2016-05-03 21:24:26

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Progress bar in `apt-get` [SOLVED]

Split from https://forums.bunsenlabs.org/viewtopic … 031#p26031

hhh wrote:

Even better, get a sweet progress bar by using apt...

sudo apt install -t jessie-backports --no-install-recommends mate-panel mate-applets

mate-panel isn't actually in jessie-backports, it's just an example.

When using apt(8), the repositories are targeted like this:

sudo apt install mate-panel/jessie-backports

See apt(8)

To get the progress bar & colours with `apt-get`, add these lines to a file called /etc/apt/apt.conf.d/99fancy

DPkg::Progress-Fancy "1";
APT::Color "1";

smile

EDIT: changed after post below -- thanks geekosupremo!

Last edited by Head_on_a_Stick (2016-05-04 19:37:11)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#2 2016-05-03 23:27:24

geekosupremo
Member
Registered: 2016-04-27
Posts: 168

Re: Progress bar in `apt-get` [SOLVED]

Head_on_a_Stick wrote:

To get the progress bar & colours with `apt-get`, add these lines to /etc/apt/apt.conf

DPkg::Progress-Fancy
APT::Color

smile

I am batting 1000 at these little mods. :\ I also looked up the apt.conf(5) But having little luck.

APT{
  GET{
    DPkg::Progress-Fancy;
    APT::Color;
  };
};

Doesn't give show color or progress bar. But if I just run "apt" I get color.

I found the example file in /usr/share/doc/apt/examples/ but it doesn't seem to fit the pattern H_o_a_S put up ... :sigh:

Offline

#3 2016-05-04 06:33:53

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Progress bar in `apt-get` [SOLVED]

I made a mistake in my post, the values must be set as well. I have updated the post.

Try:

sudo -i
echo -e 'Dpkg::Progress-Fancy "1";\nAPT::Color "1";' > /etc/apt/apt.conf.d/99geekosupremo
exit

I don't have a Debian system handy to check this but it should work wink


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#4 2016-05-04 16:30:08

geekosupremo
Member
Registered: 2016-04-27
Posts: 168

Re: Progress bar in `apt-get` [SOLVED]

Glad I'm being helpful and not just annoying. big_smile

I edited the file using your updated command, and I now get a colored "activity" line when "apt-get" runs. But not seeing a "progress bar". Not a big deal ... the colored "activity" line is plenty useful.

Offline

#5 2016-05-04 18:50:44

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Progress bar in `apt-get` [SOLVED]

^ I have never actually tried it so I don't know how it's supposed to work, I just saw the section in the apt(8) man page:

DIFFERENCES TO APT-GET(8)
       The apt command is meant to be pleasant for end users and does not need
       to be backward compatible like apt-get(8). Therefore some options are
       different:

       o   The option DPkg::Progress-Fancy is enabled.

       o   The option APT::Color is enabled.

       o   A new list command is available similar to dpkg --list.

       o   The option upgrade has --with-new-pkgs enabled by default.

smile


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#6 2016-05-04 19:35:06

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,218

Re: Progress bar in `apt-get` [SOLVED]

I LIKE IT!

colour for apt-get as well!

Thank you HoaS & geekosupremo


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#7 2016-05-05 17:50:32

geekosupremo
Member
Registered: 2016-04-27
Posts: 168

Re: Progress bar in `apt-get` [SOLVED]

Addendem/Correction:

All works as described!

When I tried it earlier I didn't have any packages that needed upgrading or installing, thus no progress bar. :facepalm:

This new 'apt' command is kinda nice. It seems like a blending of the more readable commands of 'aptitude' and the functionality of 'apt-get' and making a new command out of them. Is it "better"? Hard to say but it is kinda nice.

Offline

Board footer

Powered by FluxBB