Live data from Hacker News

The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

mvogt.wordpress.com

51–60 of 77 posts

Re: The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

#51

Earlier quoted context omitted.

You missed autoclean. I typically only run autoremove upon reboot. You can also set the update to happen automatically so that all you have to do is run upgrade.

Thank you for "autoclean". I'll check that. > You can also set the update to happen automatically so that all you have to do is run upgrade. I'm in "testing". Sometimes, even with "-y", I'm asked to validate some messages (often inside a vi prompt).

FYI

http://askubuntu.com/questions/3167/what-is-difference-betwe...

It cleans out unnecessary packages.

All the update does is download the latest available updates so it should not be prompting. My experience is that only upgrade/dist-upgrade will prompt.

I've got a VM running ubuntu 16.04-beta and it seems to be fine.

Re: The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

#52
post #8

I've never understood why debian insists on having these be different commands. It would make sense if install, search, upgrade and uninstall were all discrete, but the way it is today feels half implemented.

"aptitude [...] is a friendly frontend to apt." "The primary command line tool is aptitude. apt-get fulfills a similar purpose and although it is no longer the recommended primary tool some still use it." If you prefer the apt-* commands: "You can also use Wajig, for an unified and more logical command-line interface to all package management functions." (Apparently, apt is the new Wajig, except that apt doesn't auto…

Yeah, until you do an upgrade:

"The upgrade process for some previous releases recommended the use of aptitude for the upgrade. This tool is not recommended for upgrades from wheezy to jessie."

See https://www.debian.org/releases/stable/amd64/release-notes/c...

Re: The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

#54
post #43

Earlier quoted context omitted.

dist-upgrade every day, really ? That's a recipe for trouble, unless you're running Sid, which means you're already in trouble. Source: my previous life.

Sid is unstable, isn't it? I tried it a bit but it's very (very) unstable :-) I come from Fedora and have few months only on debian. Still a rookie.

Yeah, Sid is the rolling unstable. It's still slower and relatively more stable than most rolling distributions, but it's constantly changing here and there and everywhere. Using it as your main desktop machine is a recipe for trouble, especially when major changes start rolling in. The only certainty with Sid is that your disk will work a lot because of the firehose of updated packages streaming in at every hour...

Re: The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

#55

Earlier quoted context omitted.

Thank you for "autoclean". I'll check that. > You can also set the update to happen automatically so that all you have to do is run upgrade. I'm in "testing". Sometimes, even with "-y", I'm asked to validate some messages (often inside a vi prompt).

FYI http://askubuntu.com/questions/3167/what-is-difference-betwe... It cleans out unnecessary packages. All the update does is download the latest available updates so it should not be prompting. My experience is that only upgrade/dist-upgrade will prompt. I've got a VM running ubuntu 16.04-beta and it seems to be fine.

Thank you for the link.

> My experience is that only upgrade/dist-upgrade will prompt.

Re: The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

#56
post #8

I've never understood why debian insists on having these be different commands. It would make sense if install, search, upgrade and uninstall were all discrete, but the way it is today feels half implemented.

The way I see it, the distinction is that apt-get requires the network to be up, whereas apt-cache, as the name suggests, doesn't.

Except for "apt-get remove".

Re: The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

#57

Here is my "apt-upgrade.sh" apt-get -y update apt-get -y upgrade apt-get -y dist-upgrade apt-get -y autoremove I run that everyday.

I do something similar, but use

    aptitude -y safe-upgrade
...which is less likely to break things. Every month or so I go into aptitude to manually sort things out that have gotten their dependencies wedged.

Re: The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

#58
post #54

Earlier quoted context omitted.

Sid is unstable, isn't it? I tried it a bit but it's very (very) unstable :-) I come from Fedora and have few months only on debian. Still a rookie.

Yeah, Sid is the rolling unstable. It's still slower and relatively more stable than most rolling distributions, but it's constantly changing here and there and everywhere. Using it as your main desktop machine is a recipe for trouble, especially when major changes start rolling in. The only certainty with Sid is that your disk will work a lot because of the firehose of updated packages streaming in at every hour...

> .. It's still slower and relatively more stable than most rolling distributions ...

My experience is a "non-beta" Fedora is less stable than a "testing" debian.

> ...Using it as your main desktop machine is a recipe for trouble ...

Yes! It's a nightmare especially with Gnome Shell.

I see memory corruptions for months in Gnome windows. I wonder if it's related to Wayland stuff. It often occurs in Firefox.

Re: The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

#59

Here is my "apt-upgrade.sh" apt-get -y update apt-get -y upgrade apt-get -y dist-upgrade apt-get -y autoremove I run that everyday.

I do something similar, but use aptitude -y safe-upgrade ...which is less likely to break things. Every month or so I go into aptitude to manually sort things out that have gotten their dependencies wedged.

> aptitude -y safe-upgrade

Interesting. My use of aptitude is limited to "search" so far.

Did you see that?

https://news.ycombinator.com/item?id=11230828

Re: The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

#60
post #27
post #24

Will it take twice the amount of time with the progress bar enabled?

I can't answer specifically for `apt`, but many commands take significantly longer if you let them display to stdout versus piping their output to a file or `/dev/null`. cf.: $ time ls -R /usr real 0m7.570s user 0m0.104s sys 0m2.286s $ time ls -R /usr > /dev/null real 0m0.193s user 0m0.036s sys 0m0.154s (edit: when will I grok HN markup?? cough support markdown cough )

I've always assumed something like the above is slow due to the terminal blocking the program to perform updates to the display.

Whereas a status indicator isn't exactly pushing much data to the terminal. So, It shouldn't impact run time.

Post reply on HN