7 ms·
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.
by vmorgulis 11y ago
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.
- saltvedt 11y agohttps://wiki.debian.org/UnattendedUpgrades https://wiki.debian.org/UnattendedUpgrades
- vmorgulis 11y agoThank you a lot!
- newman314 11y agoYou 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.
- vmorgulis 11y agoThank 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).
- newman314 11y agoFYI http://askubuntu.com/questions/3167/what-is-difference-between-the-options-autoclean-autoremove-and-clean 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.
- vmorgulis 11y agoThank you for the link. > My experience is that only upgrade/dist-upgrade will prompt.
- toyg 11y agodist-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.
- vmorgulis 11y agoSid 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.
- toyg 11y agoYeah, 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...
- vmorgulis 11y ago> .. 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.
- JBReefer 11y agoI'd run a distributed for the fact that all was one command alone
- __david__ 11y agoI 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.
- vmorgulis 11y ago> 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 https://news.ycombinator.com/item?id=11230828