Adding and Removing Software
43
lists... Done
, as you can see in Listing 4-5. Note that the name of the reposi-
tory and the values—time, size, and so on—might be different on your
system.
Upgrading Packages
To upgrade the existing packages on your system, use
apt-get upgrade
.
Because upgrading your packages may make changes to your software, you
must be logged in as root before entering
apt-get upgrade
. This command
will upgrade every package on your system that apt knows about, meaning
only those stored in the repository (see Listing 4-6). Upgrading can be
time-consuming, so you might not be able to use your system for a while.
kali >
apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages were automatically installed and no longer required:
--
snip
--
The following packages will be upgraded:
--
snip
--
1101 upgraded, 0 newly installed, 0 to remove and 318 not upgraded.
Need to get 827 MB of archives.
After this operation, 408 MB disk space will be freed.
Do you want to continue? [Y/n]
Listing 4-6: Upgrading all out-of-date packages with
apt-get upgrade
You should see in the output that your system estimates the amount of
hard drive space necessary for the software package. Go ahead and enter
Y
if you want to continue and have enough hard drive space for the upgrade.