
sudo apt-get updatesudo apt-get upgradesudo apt-get update && sudo apt-get upgrade


sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean

secipolla wrote:Install the debdelta package because it allows you to not need to download the whole new packages but just the difference between the current version in your system and the new version.
- Code: Select all
sudo apt-get install debdelta
Then before you update your system, be it through apt-get/aptitude, Synaptic or mintupdate, you run
- Code: Select all
sudo apt-get update && sudo debdelta-upgrade
This will download the deltas (differences) and create the new packages. It will save you a lot of time and bandwidth.
secipolla

upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
dist-upgrade
dist-upgrade in addition to performing the function of upgrade,
also intelligently handles changing dependencies with new versions
of packages; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. So, dist-upgrade
command may remove some packages. The /etc/apt/sources.list file
contains a list of locations from which to retrieve desired package
files. See also apt_preferences(5) for a mechanism for overriding
the general settings for individual packages



Aging Technogeek wrote:... do not assume that I know what I am saying just because I am a Moderator ...

Aging Technogeek wrote:rtrev,
From the man page for apt-get
<liberally snipped>


Wrinkly wrote:Has secipolla got a valid point?




Aging Technogeek wrote:rtrev,
Mint Update Manager can sometimes run a few hours to a day or more behind apt-get due to the need for most updates to be checked by the maintainers before being added to Mint Update. Everything available from apt-get will eventually be available in Update Manager.

secipolla wrote:Just try and see for yourself how much faster it can be.




Update Manager
The Update Manager used in LMDE is the same as the one in other editions of Linux Mint. No adaptation or changes were made yet to accomodate it to the rolling nature of LMDE.

vincent wrote:....Aptitude also generally handles package dependencies better than apt-get, although if you know what you're doing, either one works fine.......... As such, I recommend the process of "sudo apt-get update && sudo apt-get dist-upgrade" to update your packages; not an apt-get upgrade, and not with mintUpdate.

Wrinkly wrote:Thank you, Vincent, for a most comprehensive answer. There's just one teeny weeny thing that bothers me:vincent wrote:....Aptitude also generally handles package dependencies better than apt-get, although if you know what you're doing, either one works fine.......... As such, I recommend the process of "sudo apt-get update && sudo apt-get dist-upgrade" to update your packages; not an apt-get upgrade, and not with mintUpdate.
I'm a little confused: if aptitude handles stuff better than apt-get, why do you recommend apt-get?
I'm sorry to be a nuisance.
2.2.1. apt-get / apt-cache vs. aptitude
The apt-get and apt-cache commands are the most basic package management tool.
apt-get and apt-cache offer only the commandline user interface.
apt-get is most suitable for the major system upgrade between releases, etc.
apt-get offers a robust and stable package resolver which uses the common package state data.
apt-get has been updated to support autoinstall and autoremove of recommended packages.
apt-get has been updated to support logging of package activities.
apt-cache offers a standard regex based search on the package name and description.
apt-get and apt-cache can manage multiple versions of packages using /etc/apt/preferences but it is quite cumbersome.
The aptitude command is the most versatile package management tool.
aptitude offers the fullscreen interactive text user interface.
aptitude offers the commandline user interface, too.
aptitude is most suitable for the daily interactive package management such as inspecting installed packages and searching available packages.
aptitude offers an enhanced package resolver which also uses an extra package state data used only by aptitude.
aptitude supports autoinstall and autoremove of recommended packages.
aptitude supports logging of package activities.
aptitude offers an enhanced regex based search on all of the package metadata.
aptitude can manage multiple versions of packages without using /etc/apt/preferences and it is quite intuitive.
Note
Although the aptitude command comes with rich features such as its enhanced package resolver, this complexity has caused (or may still causes) some regressions such as Bug #411123, Bug #514930, and Bug #570377. In case of doubt, please use the apt-get and apt-cache commands over the aptitude command.
Note that apt-get ... is the preferred program for package management from console to perform system installation and major system upgrades for its robustness.
Note that aptitude is the preferred program for daily package management from console.




Aging Technogeek wrote:secipolla and Wrinkly,
I installed debdelta and ran the exact command specified by secipolla. The apt-get update worked as normal, but debdelta upgrade returned a request for three file names and an advisory to check "--help".
From there and the man page for debdelta, I learn that debdelta is intended to be used to determine the differences between two specified files and use the differences found to create a new file that can be used by debdiff to install the changes. This is why the app asked for three file names - the original file, the updated file and the changes file.
I do not see anywhere the ability to use a command like "sudo debdelta upgrade" as a stand alone command to install updates. Maybe I will find it on further investigation or secipolla can point it out for me. If this can truly work as secipolla says, it will speed up the upgrade process considerably.

sudo apt-get install debdeltasudo apt-get update && sudo debdelta-upgradesudo apt-get update && sudo apt-get dist-upgrade
Wrinkly wrote:Have I somehow broken LMDE by using MintUpdate?


Users browsing this forum: Alexa [Bot] and 2 guests