Changing package states as described in the previous section does not actually affect what is installed on your system. Thus, you can adjust the state of packages without affecting your system until you are happy with what you see; once you are, you can “commit” the changes by actually installing and removing packages.
To commit your changes, use the g) command. Selecting this command will display a preview screen describing the changes that will be performed. This screen is just a package list, and you can manipulate the packages (for instance, cancelling unwanted removals) in the same way that you could in the main list.→ (
When you are done, use q) to cancel the installation, or use → (g) to proceed. aptitude will download any files that need to be downloaded, then prompt you to continue with the installation. When you select “Continue”, the installations and removals will commence.→ (
Packages that are downloaded by aptitude are placed in a
cache directory (typically
they are just left in this directory ad infinitum. To
delete all the files in this directory, use → ;
to delete only files which cannot be downloaded again (ie,
obsolete packages), use → .
 This is sometimes referred to as an “install run”, even though you might be upgrading or removing packages in addition to installing them.