Ignorar / excluir / evitar a instalação de pacotes na aplicação de * ("glob") no APT-GET

1. Ignorar / excluir / evitar a instalação de pacotes na aplicação de * ("glob") no APT-GET

ciberperipecias
ciberperipecias

(usa Linux Mint)

Enviado em 25/02/2017 - 20:48h

Olá pessoal, boa noite. Tenho o seguinte dilema: pular a instalação dum pacote quando se usa *. Quando se usa * no nome do pacote, aparecem pacotes que são indesejáveis na instalação. Vejam um exemplo:

pessoa@PC ~ $ sudo apt-get install libreoffice*
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Note, selecting 'libreoffice-wiki-publisher' for glob 'libreoffice*'
Note, selecting 'libreoffice-style-breeze' for glob 'libreoffice*'
Note, selecting 'libreoffice-math' for glob 'libreoffice*'
Note, selecting 'libreoffice-l10n-gug' for glob 'libreoffice*'
Note, selecting 'libreoffice-script-provider-js' for glob 'libreoffice*'
Note, selecting 'libreoffice-emailmerge' for glob 'libreoffice*'
Note, selecting 'libreoffice-report-builder-bin' for glob 'libreoffice*'
Note, selecting 'libreoffice-grammarcheck' for glob 'libreoffice*'
Note, selecting 'libreoffice-mysql-connector' for glob 'libreoffice*'
Note, selecting 'libreoffice-grammarcheck-ast' for glob 'libreoffice*'
Note, selecting 'libreoffice-sdbc-postgresql' for glob 'libreoffice*'
Note, selecting 'libreoffice-voikko' for glob 'libreoffice*'
Note, selecting 'libreoffice-l10n-zh-cn' for glob 'libreoffice*'
Note, selecting 'libreoffice-style-crystal' for glob 'libreoffice*'
Note, selecting 'libreoffice-l10n-zh-tw' for glob 'libreoffice*'
Note, selecting 'libreoffice-grammarcheck-zh-cn' for glob 'libreoffice*'

(Muita saída, desculpem!)

Note, a seleccionar 'libreoffice-lightproof-en' em vez de 'libreoffice-grammarcheck-en-gb'
Note, a seleccionar 'libreoffice-lightproof-en' em vez de 'libreoffice-grammarcheck-en-za'
Note, a seleccionar 'libreoffice-lightproof-hu' em vez de 'libreoffice-grammarcheck-hu'
Note, a seleccionar 'libreoffice-lightproof-ru-ru' em vez de 'libreoffice-grammarcheck-ru'
Note, a seleccionar 'libreoffice-common' em vez de 'libreoffice-l10n-en-us'
Note, a seleccionar 'libreoffice-report-builder' em vez de 'libreoffice-reportdesigner'
Note, a seleccionar 'libreoffice-avmedia-backend-gstreamer' em vez de 'libreoffice-avmedia-backend'
Note, a seleccionar 'libreoffice-voikko' em vez de 'libreoffice-hyphenation-fi'
Note, a seleccionar 'libreoffice-voikko' em vez de 'libreoffice-spellcheck-fi'
Note, a seleccionar 'libreoffice-lightproof-en' em vez de 'libreoffice-grammarcheck-en-us'
Note, a seleccionar 'libreoffice-zemberek' em vez de 'libreoffice-hyphenation-tr'
Note, a seleccionar 'libreoffice-zemberek' em vez de 'libreoffice-spellcheck-tr'
libreoffice is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-core is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-writer is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-calc is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-impress is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-draw is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-math is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-base-core is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-base is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-gtk is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-gtk configurado para instalar manualmente.
libreoffice-gnome is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-ogltrans is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-report-builder-bin is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-dev is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-pdfimport is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-l10n-pt is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1).
libreoffice-l10n-pt-br is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1).
libreoffice-help-en-us is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1).
libreoffice-help-pt is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1).
libreoffice-help-pt-br is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1).
libreoffice-common is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-java-common is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-avmedia-backend-gstreamer is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-sdbc-hsqldb is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-base-drivers is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreofficekit-dev is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-dev-common is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-dev-common configurado para instalar manualmente.
libreoffice-gtk2 is already the newest version (1:5.3.0~rc3-0ubuntu1~xenial1.1).
libreoffice-style-mint is already the newest version (5.1+3).
Alguns pacotes não puderam ser instalados. Isto pode significar que
você solicitou uma situação impossível ou, se você está usando a
distribuição instável, que alguns pacotes requeridos não foram
criados ainda ou foram retirados da "Incoming".
A informação a seguir pode ajudar a resolver a situação:

Os pacotes a seguir têm dependências desencontradas:
libreoffice-dbg : Depende: libreoffice-core (= 1:5.1.6~rc2-0ubuntu1~xenial1) mas 1:5.3.0~rc3-0ubuntu1~xenial1.1 está para ser instalado
libreoffice-style-mint : Conflita: libreoffice-style-human mas 1:5.3.0~rc3-0ubuntu1~xenial1.1 está para ser instalado
E: Impossível corrigir problemas, você manteve (hold) pacotes quebrados.
pessoa@PC ~ $

Bem, qual parâmetro posso usar no APT-GET para poder evitar a instalação dos pacotes que impediram a instalação dos demais?
Eu vi em outro site (http://sejalivre.org/como-evitar-a-atualizacoes-de-alguns-pacotes-no-ubuntu-mint-ou-debian/) um certo exemplo que se aplica um comando antes do DPKG, e aí resolvi usar também no APT-GET. Ficaria assim:

pessoa@PC ~ $ echo "libreoffice-dbg libreoffice-style-mint hold" | sudo apt-get install libreoffice*

Mas não passou nem perto de funcionar. Alguém possui a sugestão correta pro caso?


  


2. Re: Ignorar / excluir / evitar a instalação de pacotes na aplicação de * (

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/02/2017 - 21:13h

Você pode usar alumas opções do apt para não instalar o que não deseja:

1) apt-get install --no-install-recommends pacote1*
2) use um sinal de negativo (-) no pacote que não quer instalar (apt-get install pacote1* pacote2-)
3) não use asterisco ;-)

https://www.debian.org/doc/manuals/apt-howto/ch-apt-get.pt-br.html






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts