
Perdone la estupidez de esta pregunta, ya que soy un novato de Linux/Ubuntu.
Me encontré con el apt-cache search
comando enotra preguntamientras buscaba formas de hacer que el href
paquete LaTeX funcione en mi máquina virtual Ubuntu.
Luego lo intenté apt-cache search href
y obtuve el siguiente resultado:
libio-dirent-perl - Perl module for accessing dirent structs returned by readdir
libclass-std-storable-perl - Support for creating serializable "inside-out" classes
libconfig-inihash-perl - Perl extension for reading and writing INI files
libdata-dumper-compact-perl - vertically compact width-limited data formatter
libdbix-abstract-perl - DBI SQL abstraction
libdigest-md5-file-perl - Perl extension for getting MD5 sums for files and urls
libhtml-html5-outline-perl - implementation of the HTML5 Outline algorithm
libhtml-microformats-perl - parse microformats in HTML
libjs-autolink - JavaScript methods converting text to links
libjson-hyper-perl - extract links from JSON via a schema
libjson-path-perl - search nested hashref/arrayref structures using JSONPath
libmoosex-arrayref-perl - blessed arrayrefs with Moose
libmoosex-oneargnew-perl - Moose role that extends class' constructor to accept single arguments
libmoosex-param-perl - simple Moose role providing a standard param method
libmoosex-singlearg-perl - module to instantiate Moose objects using a single argument
libmoosex-types-structured-perl - Moose extension for type constraints on structured types
libparams-validationcompiler-perl - module to build an optimized subroutine parameter validator
libpod-spell-perl - formatter to easily check the spelling of POD
libpostfix-parse-mailq-perl - module to parse the postfix mail queue
libtest-deep-unorderedpairs-perl - Test::Deep plugin for comparing lists as if they were hashes
libxml-atom-microformats-perl - parse microformats in Atom content
libxml-libxml-debugging-perl - get debugging information from XML::LibXML
node-url-to-options - Convert a WHATWG URL to an http(s).request options object
roffit - convert nroff manual pages into HTML
tea - graphical text editor with syntax highlighting
texlive-latex-extra - TeX Live: LaTeX additional packages
La cadena href
sólo se puede encontrar en el siguiente paquete:
libjson-path-perl - search nested hashref/arrayref structures using JSONPath
Entendí que eso apt-cache search pattern
identificaría solo los paquetes donde pattern
se encuentran.
¿Por qué no ocurre eso href
en los paquetes identificados?
Respuesta1
Tenga en cuenta quehttps://www.ctan.org/pkg/hrefdevuelve 404. Entonces probablemente esté usando un nombre de paquete incorrecto. pero hyperref
paqueteexiste.
Si lees man apt-cache
localmente oen líneapuedes ver lo siguiente:
search regex
...
la búsqueda realiza una búsqueda de texto completo en todas las listas de paquetes disponibles para el patrón de expresiones regulares POSIX dado, consulteexpresión regular(7). Busca en los nombres de los paquetes y las descripciones una aparición de la expresión regular e imprime el nombre del paquete y la descripción breve, incluidos los nombres de los paquetes virtuales. Si--full
se proporciona, entonces se produce una salida idéntica a la mostrada para cada paquete coincidente, y si--names-only
se proporciona, entonces no se busca la descripción larga, solo se busca el nombre del paquete y los paquetes proporcionados. Se pueden utilizar argumentos separados para especificar múltiples patrones de búsqueda que se combinan juntos.
Entonces puedes intentar usar apt-cache search href latex
algunos comandos lógicos. Pero lo realmente importante es que apt-cache
no sabe nada sobre el contenido del paquete.
Los paquetes LaTeX suelen tener*.bst,*.orzueloarchivos para sus definiciones.
Para buscar el contenido del paquete, por ejemplohiperref.stynecesitas usar otras herramientas:
localmente - uso
apt-file
:sudo apt-get install apt-file sudo apt-file update
para conseguir algo como
$ sudo apt-file search hyperref.sty latexml: /usr/share/perl5/LaTeXML/Package/hyperref.sty.ltxml texlive-lang-arabic: /usr/share/texlive/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty texlive-latex-base: /usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty texlive-latex-base: /usr/share/texlive/texmf-dist/tex/latex/hyperref/nohyperref.sty texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/hobsub/hobsub-hyperref.sty texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/interfaces/interfaces-hyperref.sty texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/zref/zref-hyperref.sty texlive-latex-recommended: /usr/share/texlive/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty
o con sintaxis de expresiones regulares:
$ sudo apt-file search --regexp hyperref.sty$ texlive-lang-arabic: /usr/share/texlive/texmf-dist/tex/xelatex/bidi/bidituftehyperref.sty texlive-latex-base: /usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty texlive-latex-base: /usr/share/texlive/texmf-dist/tex/latex/hyperref/nohyperref.sty texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/hobsub/hobsub-hyperref.sty texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/interfaces/interfaces-hyperref.sty texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/zref/zref-hyperref.sty texlive-latex-recommended: /usr/share/texlive/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty
en línea visitandohttps://paquetes.ubuntu.comy buscando
hyperref.sty
- está contenido entexlive-latex-base
paquete ubuntu.