Dal manuale di apt-get:
autoremove
autoremove is used to remove packages that were automatically
installed to satisfy dependencies for some package and that are no
more needed.
Ovvero:
Rimuove i pacchetti automaticamente installati in precedenza come dipendenze di X, se non più utilizzati (=non sono necessari per soddisfare le deps di altri pacchetti ancora installati) e se non marcati come "installati manualmente".
In questo esempio prima installo
python-zsi, dunque lo autorimuovo (il processo prima installa e poi
autorimuove python-xml):
Codice: Seleziona tutto
alessio@vquadrispro:~$ sudo apt-get install python-zsi
[sudo] password for alessio:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-xml
Suggested packages:
python-xml-doc python-xml-dbg
The following NEW packages will be installed
python-xml python-zsi
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1141kB of archives.
After this operation, 4194kB of additional disk space will be used.
Do you want to continue [Y/n]?
Selecting previously deselected package python-xml.
(Reading database ... 172226 files and directories currently installed.)
Unpacking python-xml (from .../python-xml_0.8.4-10.1ubuntu1_i386.deb) ...
Selecting previously deselected package python-zsi.
Unpacking python-zsi (from .../python-zsi_2.0-2ubuntu4_all.deb) ...
Processing triggers for doc-base ...
Processing 2 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up python-xml (0.8.4-10.1ubuntu1) ...
Setting up python-zsi (2.0-2ubuntu4) ...
Processing triggers for python-support ...
alessio@vquadrispro:~$ sudo apt-get autoremove python-zsi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-xml
The following packages will be REMOVED
python-xml python-zsi
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 4194kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 172535 files and directories currently installed.)
Removing python-zsi ...
Removing python-xml ...
Processing triggers for python-support ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 2 removed doc-base file(s)...
Registering documents with scrollkeeper...
alessio@vquadrispro:~$
In quest'altro esempio, dopo l'installazione di
python-zsi, marco
python-xml come
installato a mano, dunque tento di autorimuovere
python-zsi; sarò costretto a rimuovere successivamente a mano
python-xml:
Codice: Seleziona tutto
alessio@vquadrispro:~$ sudo apt-get install python-zsi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-xml
Suggested packages:
python-xml-doc python-xml-dbg
The following NEW packages will be installed
python-xml python-zsi
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1141kB of archives.
After this operation, 4194kB of additional disk space will be used.
Do you want to continue [Y/n]?
Selecting previously deselected package python-xml.
(Reading database ... 172226 files and directories currently installed.)
Unpacking python-xml (from .../python-xml_0.8.4-10.1ubuntu1_i386.deb) ...
Selecting previously deselected package python-zsi.
Unpacking python-zsi (from .../python-zsi_2.0-2ubuntu4_all.deb) ...
Processing triggers for doc-base ...
Processing 2 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up python-xml (0.8.4-10.1ubuntu1) ...
Setting up python-zsi (2.0-2ubuntu4) ...
Processing triggers for python-support ...
alessio@vquadrispro:~$ sudo apt-get install python-xml
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-xml is already the newest version.
python-xml set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
alessio@vquadrispro:~$ sudo apt-get autoremove python-zsi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
python-zsi
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1700kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 172535 files and directories currently installed.)
Removing python-zsi ...
Processing triggers for python-support ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 2 removed doc-base file(s)...
Registering documents with scrollkeeper...
alessio@vquadrispro:~$ sudo apt-get remove python-xml
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
python-xml
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 2494kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 172471 files and directories currently installed.)
Removing python-xml ...
alessio@vquadrispro:~$