line tool is slightly more demanding than
aptitude
or
apt
because it will refuse to install packages
that were not installed beforehand.
The
apt
tool will generally select the most recent version number.
To tell
apt
to use a specific distribution when searching for upgraded packages, you need to use
the -t or --target-release option, followed by the name of the distribution you want (for example:
apt -t kali-rolling upgrade
). To avoid specifying this option every time you use
apt
, you
can add APT::Default-Release ”kali-rolling”; in the file
/etc/apt/apt.conf.d/local
.
For more important upgrades, such as major version upgrades, use
apt full-upgrade
. With this
instruction,
apt
will complete the upgrade even if it has to remove some obsolete packages or
install new dependencies. This is also the command that you should use for regular upgrades of
your Kali Rolling system. It is so simple that it hardly needs explanation: APT’s reputation is based
on this great functionality.
Unlike
apt
and
aptitude
,
apt-get
doesn’t know the
full-upgrade
command. Instead, you
should use
apt-get dist-upgrade
(distribution upgrade), a well-known command that
apt
and
aptitude
also accept for backwards compatibility.