Ubuntu 安装asciidoc时默认推荐了巨大的安装包

$ sudo apt-get install asciidoc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dblatex docbook-dsssl docbook-utils docbook-xml docbook-xsl fonts-lato
  fonts-lmodern fonts-texgyre jadetex javascript-common libfile-homedir-perl
  libfile-which-perl libjs-jquery libosp5 libostyle1c2 libpotrace0 libptexenc1
  libruby2.3 libsgmls-perl libsp1c2 libsynctex1 libtexlua52 libtexluajit2
  libxml2-utils libzzip-0-13 lmodern lynx lynx-common openjade
  preview-latex-style prosper ps2eps python-apt rake ruby ruby-did-you-mean
  ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.3
  rubygems-integration sgml-data sgmlspl sp tex-common tex-gyre texlive
  texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils
  texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc
  texlive-generic-recommended texlive-latex-base texlive-latex-base-doc
  texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended
  texlive-latex-recommended-doc texlive-luatex texlive-math-extra
  texlive-pictures texlive-pictures-doc texlive-pstricks texlive-pstricks-doc
  tipa xmlto xsltproc
Suggested packages:
  source-highlight vim-addon-manager docbook inkscape latex-cjk-all opensp
  texlive-lang-all texlive-lang-cyrillic texlive-xetex transfig xindy
  docbook-dsssl-doc docbook-defguide dbtoepub docbook-xsl-doc-html
  | docbook-xsl-doc-pdf | docbook-xsl-doc-text | docbook-xsl-doc
  docbook-xsl-saxon fop libsaxon-java libxalan2-java libxslthl-java xalan
  apache2 | lighttpd | httpd sgmls-doc python-apt-dbg python-apt-doc ri
  ruby-dev bundler perlsgml w3-recs debhelper perl-tk dvipng dvidvi fragmaster
  purifyeps lacheck chktex latexmk latexdiff psutils python-pygments
  libspreadsheet-parseexcel-perl libtcltk-ruby dot2tex prerex w3m | lynx-cur
  | links xmltex
The following NEW packages will be installed:
  asciidoc dblatex docbook-dsssl docbook-utils docbook-xml docbook-xsl
  fonts-lato fonts-lmodern fonts-texgyre jadetex javascript-common
  libfile-homedir-perl libfile-which-perl libjs-jquery libosp5 libostyle1c2
  libpotrace0 libptexenc1 libruby2.3 libsgmls-perl libsp1c2 libsynctex1
  libtexlua52 libtexluajit2 libxml2-utils libzzip-0-13 lmodern lynx
  lynx-common openjade preview-latex-style prosper ps2eps python-apt rake ruby
  ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert
  ruby-test-unit ruby2.3 rubygems-integration sgml-data sgmlspl sp tex-common
  tex-gyre texlive texlive-base texlive-bibtex-extra texlive-binaries
  texlive-extra-utils texlive-font-utils texlive-fonts-recommended
  texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base
  texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc
  texlive-latex-recommended texlive-latex-recommended-doc texlive-luatex
  texlive-math-extra texlive-pictures texlive-pictures-doc texlive-pstricks
  texlive-pstricks-doc tipa xmlto xsltproc
0 upgraded, 72 newly installed, 0 to remove and 179 not upgraded.
Need to get 819 MB of archives.
After this operation, 1,345 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

使用 --no-install-recommend 参数阻止安装不必要的组件

$ sudo apt-get --no-install-recommends install asciidoc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  source-highlight vim-addon-manager
Recommended packages:
  dblatex docbook-utils libxml2-utils xmlto
The following NEW packages will be installed:
  asciidoc
0 upgraded, 1 newly installed, 0 to remove and 179 not upgraded.
Need to get 704 kB of archives.
After this operation, 2,449 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 asciidoc all 8.6.9-3 [704 kB]
Fetched 704 kB in 1s (480 kB/s)   
Selecting previously unselected package asciidoc.
(Reading database ... 214659 files and directories currently installed.)
Preparing to unpack .../asciidoc_8.6.9-3_all.deb ...
Unpacking asciidoc (8.6.9-3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up asciidoc (8.6.9-3) ...

上一篇:开源分布式数据库SequoiaDB在去哪儿网的实践


下一篇:vue中嵌套的iframe中控制路由的跳转及传参