- Documentazione ufficiale
- Guide della comunità
- 12.04 LTS

web wiki forum planet
help.ubuntu-it comunità italiana

- Desktop
- Server
- Ricerca

Questa guida non è stata ancora completamente tradotta. Se vuoi contribuire alla sua traduzione contatta il Gruppo Traduzione di Ubuntu-it.
Guida a Ubuntu Server » Gestione dei pacchetti »
Indietro | Avanti

# Aptitude

Launching Aptitude with no command-line options, will give you a menu-driven, text-based front-end to the Advanced Packaging Tool (APT) system. Many of the common package management functions, such as installation, removal, and upgrade, can be performed in Aptitude with single-key commands, which are typically lowercase letters.

Aptitude is best suited for use in a non-graphical terminal environment to ensure proper functioning of the command keys. You may start the menu-driven interface of Aptitude as a normal user by typing the following command at a terminal prompt:

    sudo aptitude

When Aptitude starts, you will see a menu bar at the top of the screen and two panes below the menu bar. The top pane contains package categories, such as New Packages and Not Installed Packages. The bottom pane contains information related to the packages and package categories.

Usare Aptitude per la gestione dei pacchetti è relativamente chiaro e l'interfaccia utente rende le operazioni comuni semplici da eseguire. Di seguito vengono presentati alcuni esempi di funzioni comuni della gestione dei pacchetti con Aptitude:

- Install Packages: To install a package, locate the package via the Not Installed Packages package category, by using the keyboard arrow keys and the ENTER key. Highlight the desired package, then press the + key. The package entry should turn green, indicating that it has been marked for installation. Now press g to be presented with a summary of package actions. Press g again, and you will be prompted to become root to complete the installation. Press ENTER which will result in a Password: prompt. Enter your user password to become root. Finally, press g once more and you'll be prompted to download the package. Press ENTER on the Continue prompt, and downloading and installation of the package will commence.

- Remove Packages: To remove a package, locate the package via the Installed Packages package category, by using the keyboard arrow keys and the ENTER key. Highlight the desired package you wish to remove, then press the - key. The package entry should turn pink, indicating it has been marked for removal. Now press g to be presented with a summary of package actions. Press g again, and you will be prompted to become root to complete the removal. Press ENTER which will result in a Password: prompt. Enter your user password to become root. Finally, press g once more, then press ENTER on the Continue prompt, and removal of the package will commence.

- Update Package Index: To update the package index, simply press the u key and you will be prompted to become root to complete the update. Press ENTER which will result in a Password: prompt. Enter your user password to become root. Updating of the package index will commence. Press ENTER on the OK prompt when the download dialog is presented to complete the process.

- Upgrade Packages: To upgrade packages, perform the update of the package index as detailed above, and then press the U key to mark all packages with updates. Now press g whereby you'll be presented with a summary of package actions. Press g again, and you will be prompted to become root to complete the installation. Press ENTER which will result in a Password: prompt. Enter your user password to become root. Finally, press g once more, and you'll be prompted to download the packages. Press ENTER on the Continue prompt, and upgrade of the packages will commence.

La prima colonna delle informazioni mostrate nell'elenco dei pacchetti nel riquadro superiore, indica l'attuale stato del pacchetto, utilizzando le seguenti chiavi per descrivere lo stato del pacchetto:

- i: pacchetto installato

- c: pacchetto non installato, ma nel sistema è rimasta traccia della configurazione del pacchetto

- p: rimosso completamente dal sistema

- v: pacchetto virtuale

- B: pacchetto non integro

- u: file decompressi, ma pacchetto non ancora configurato

- C: configurato in parte. La configurazione è fallita e necessita di essere corretta

- H: installato parzialmente. La rimozione è fallita e necessita di essere sistemata

Per chiudere Aptitude, è sufficiente premere il tasto q e confermare l'uscita. Sono disponibili molte altre funzioni dal menù di Aptitude, premendo il tasto F10.

- Command Line Aptitude

## Command Line Aptitude

You can also use Aptitude as a command-line tool, similar to apt-get. To install the nmap package with all necessary dependencies, as in the apt-get example, you would use the following command:

    sudo aptitude install nmap

To remove the same package, you would use the command:

    sudo aptitude remove nmap

Consult the man pages for more details of command line options for Aptitude.
Indietro | Avanti