apt-get install com '-' remove?

22

Eu estava procurando por algum pacote ( nautilus-terminal ) e acidentalmente fiz isso:

$ sudo apt-get install nautilus-
Reading package lists... Done                                                                                                                                                                                                 
Building dependency tree                                                                                                                                                                                                      
Reading state information... Done                                                                                                                                                                                             
The following packages were automatically installed and are no longer required:                                                                                                                                               
  apturl apturl-common libgail-3-0 linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic linux-image-4.4.0-57-generic linux-image-extra-4.4.0-57-generic                                                                      
Use 'sudo apt autoremove' to remove them.                                                                                                                                                                                     
The following packages will be REMOVED:                                                                                                                                                                                       
  gnome-session-flashback nautilus nautilus-sendto nautilus-share ubuntu-desktop                                                                                                                                              
0 upgraded, 0 newly installed, 5 to remove and 69 not upgraded.                                                                                                                                                               
After this operation, 2 031 kB disk space will be freed.                                                                                                                                                                      
Do you want to continue? [Y/n] ^[[^C                                                                                                                                                                                          

Isso é muito perigoso, porque remover é muito mais difícil de digitar do que um simples traço de um autocompletar falho.

Isso é equivalente a apt-get remove ? Eu não consegui encontrar nenhuma documentação para isso. Edit: exceto por ignorar a página do manual ...

    
por Ondra Žižka 06.02.2017 / 05:13

1 resposta

27

Em man apt-get :

install
   install is followed by one or more packages desired for
   installation or upgrading. Each package is a package name, not a
   fully qualified filename (for instance, in a Debian system,
   apt-utils would be the argument provided, not
   apt-utils_1.2.10_amd64.deb). All packages required by the
   package(s) specified for installation will also be retrieved and
   installed. The /etc/apt/sources.list file is used to locate the
   desired packages. If a hyphen is appended to the package name (with
   no intervening space), the identified package will be removed if it
   is installed. Similarly a plus sign can be used to designate a
   package to install. These latter features may be used to override
   decisions made by apt-get's conflict resolution system.
    
por muru 06.02.2017 / 05:17

Tags