Live data from Hacker News

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

mvogt.wordpress.com

41–50 of 77 posts

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

#42

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.

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.

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

#43

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.

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.

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

#44

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.

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).

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

#45
post #43

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.

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.

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

#46

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.

https://wiki.debian.org/UnattendedUpgrades

Thank you a lot!

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

#47
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.

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

#48
post #19

Earlier quoted context omitted.

aptitude has a nice curses interface, though, which is great for resolving conflicts or other changes that require planning

It also usually seems to be slower to start (at least in my experience) -- I tend to not like to use it except for resolving broken packages (since it's the nicest way to do that).

The latest version in Debian unstable (0.7.7) seems to have brought some improvements in startup time. Generally the recent progress has been very nice.

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

#50
post #27

Earlier quoted context omitted.

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 )

Did you run those two commands in sequence? Did you account for disk-cache effects? Try running it 4 times, alternating the versions and see what your last 2 times are ...

All valid points, but (anecdotally) over the past several years of work, this holds true.
Post reply on HN