Procurando pacotes usando o apt-get

2

Gostaria de procurar pacotes de repositórios usando o nome do pacote ou a descrição do pacote. Por exemplo

  • Pesquise pelo Zend
  • Pesquise por Ze * d
por Rafael Borja 28.01.2014 / 21:25

2 respostas

6

Você pode usar aptitude ou apt-cache :

$ apt-cache search zend
php5-apcu - APC User Cache for PHP 5
php-horde-cache - Horde Caching API
php-letodms-lucene - Document management system - Fulltext search
zendframework - powerful PHP framework
zendframework-bin - binary scripts for zendframework
zendframework-resources - resource scripts for zendframework

Por padrão, ele pesquisará a descrição de um pacote, para pesquisar somente os nomes de pacotes:

$ apt-cache --names-only search zend
zendframework - powerful PHP framework
zendframework-bin - binary scripts for zendframework
zendframework-resources - resource scripts for zendframework

ou

$ aptitude search zend
p   zendframework                   - powerful PHP framework                    
p   zendframework-bin               - binary scripts for zendframework          
p   zendframework-resources         - resource scripts for zendframework        

Ambas as ferramentas aceitam expressões regulares como padrões:

$ apt-cache --names-only search "zend*"
dzen2 - General-purpose messaging and notification program for X11
frozen-bubble - cool game where you pop out the bubbles!
frozen-bubble-data - Data files for Frozen-Bubble game
libbusiness-onlinepayment-authorizenet-perl - AuthorizeNet backend for Business::OnlinePayment
libfile-localizenewlines-perl - Perl module to localize the newlines for one or more files
libzen-dev - ZenLib C++ utility library -- development files
libzen-doc - ZenLib C++ utility library -- documentation
libzen0 - ZenLib C++ utility library -- runtime
zenmap - The Network Mapper Front End
octave-zenity - simple graphical user interfaces using zenity in Octave
ruby-zentest - ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby
ttf-wqy-zenhei - "WenQuanYi Zen Hei" A Hei-Ti Style (sans-serif) Chinese font
zendframework - powerful PHP framework
zendframework-bin - binary scripts for zendframework
zendframework-resources - resource scripts for zendframework
zenity - Display graphical dialog boxes from shell scripts
zenity-common - Display graphical dialog boxes from shell scripts (common files)
mate-dialogs-gnome - Display graphical dialog boxes from shell scripts (GNOME files)


$ aptitude search "zend*"
p   dzen2                 - General-purpose messaging and notification
p   dzen2:i386            - General-purpose messaging and notification
p   frozen-bubble         - cool game where you pop out the bubbles!  
p   frozen-bubble:i386    - cool game where you pop out the bubbles!  
p   frozen-bubble-data    - Data files for Frozen-Bubble game         
p   libbusiness-onlinepayment-autho - AuthorizeNet backend for Business::OnlineP
p   libfile-localizenewlines-perl   - Perl module to localize the newlines for o
p   libzen-dev            - ZenLib C++ utility library -- development 
p   libzen-dev:i386       - ZenLib C++ utility library -- development 
p   libzen-doc            - ZenLib C++ utility library -- documentatio
p   libzen0               - ZenLib C++ utility library -- runtime     
p   libzen0:i386          - ZenLib C++ utility library -- runtime     
p   octave-zenity         - simple graphical user interfaces using zen
p   ruby-zentest          - ZenTest provides 4 different tools: zentes
p   ttf-wqy-zenhei        - "WenQuanYi Zen Hei" A Hei-Ti Style (sans-s
p   zendframework         - powerful PHP framework                    
p   zendframework-bin     - binary scripts for zendframework          
p   zendframework-resources         - resource scripts for zendframework        
i   zenity                - Display graphical dialog boxes from shell 
p   zenity:i386           - Display graphical dialog boxes from shell 
i   zenity-common         - Display graphical dialog boxes from shell 
p   zenmap                - The Network Mapper Front End              
    
por 28.01.2014 / 21:35
1

Eu encontrei o comando apt-cache search. Eu posso procurar por zend usando o comando

apt-cache search zend
    
por 28.01.2014 / 21:33

Tags