Debian / Ubuntu: Diferenças entre o arquivo apt find / search

0

Existe uma diferença prática entre esses dois comandos?

/home/pkaramol/Desktop
$ sudo apt-file search logrotate.conf
logrotate: /etc/logrotate.conf
logrotate: /usr/share/man/man5/logrotate.conf.5.gz
petitboot: /etc/logrotate.d/petitboot/logrotate.conf
rsync: /usr/share/doc/rsync/examples/logrotate.conf.rsync
unicorn: /usr/share/doc/unicorn/examples/logrotate.conf

/home/pkaramol/Desktop
$ sudo apt-file find logrotate.conf
logrotate: /etc/logrotate.conf
logrotate: /usr/share/man/man5/logrotate.conf.5.gz
petitboot: /etc/logrotate.d/petitboot/logrotate.conf
rsync: /usr/share/doc/rsync/examples/logrotate.conf.rsync
unicorn: /usr/share/doc/unicorn/examples/logrotate.conf
/home/pkaramol/Desktop/centos_7

De acordo com a ajuda:

pesquisa | localize arquivos de pesquisa em pacotes

    
por pkaramol 10.11.2018 / 16:33

1 resposta

1

De man apt-file :

search é

       Search in which package a file is included. A list of all packages
       containing the pattern pattern is returned.

       Since Contents files does not contain directories, the pattern must
       match (part of a) file name.

       By default, the search action interprets its pattern as if
       --substring-match was specified.

E find é

Alias for search.

Portanto, ambos são iguais.

    
por 10.11.2018 / 16:49