Contents
Is apt-get update dangerous?
Doing apt-get update / upgrade is considered to be very safe, because you’ll only get bug fixes & security fixes. Upgrading to a new release of ubuntu (like from 10.10 to 11.04) however might be risky. But you should be fine.
Is apt-get upgrade necessary?
Using upgrade keeps to the rule: under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. If that’s important to you, use apt-get upgrade . If you want things to “just work”, you probably want apt-get dist-upgrade to ensure dependencies are resolved.
What is the difference between apt upgrade and apt dist-upgrade?
Apt-get dist-upgrade has a smart conflict resolution system, so it will attempt to upgrade the most important packages, at the expense of those deemed less important. Apt-get upgrade does not remove packages, it only upgrades.
What is the difference between apt-get update and apt update?
The old apt-get upgrade command updates all the packages which currently exist in your system. It does not install or remove the existing package on your system. However, the new apt upgrade command installs packages that were added as dependencies of upgradable packages.
How to avoid recommends and upgrades in apt-get?
Similarly, to avoid upgrading packages, either use –no-upgrade option with apt-get or set APT::Get::Upgrade “0” in anyplace referred by Dir::Etc::Main or Dir::Etc::Parts. In other to install a package without the recommended packages is to run the install command with the –no-install-recommends option like this:
Why do I get a message when I install a package in Apt?
First of all, lets understand why the message appears. In fact, if the package do not have dependencies that you have not installed already or that you explicitly told it to install, apt never asks you: ➜ ~ sudo apt-get -qq install xfce4-screenshooter Selecting previously unselected package xfce4-screenshooter.
Is there a package to install security updates?
The package unattended-upgrades provides functionality to install security updates automatically. You could use this, but instead of configuring the automatic part you could call it manually: If you want to run it quietly instead:
Do you want to install edamame biscuit in Apt?
(Where edamame-biscuit is the (made-up) package you want to install, and “y” is assumed to be a legitimate response ; substitute with “yes” or other text as needed.) A ‘feature’ of this method is that this will break if you are incorrectly assuming only one interactive prompt.