问题描述:在安装texmaker时,会推荐texlive安装。
sudo apt-get install texmaker
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
asymptote asymptote-doc blt fonts-lmodern fonts-texgyre freeglut3
latex-beamer libfile-homedir-perl libosmesa6 libpoppler-qt5-1 libpotrace0
libptexenc1 libqt5concurrent5 libqt5network5 libqt5opengl5
libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5script5 libqt5sql5
libqt5sql5-sqlite libqt5webkit5 libqt5widgets5 libqt5xml5 libsynctex1
libtk8.6 libyaml-tiny-perl libzzip-0-13 lmodern prerex preview-latex-style
prosper ps2eps psutils python-pil.imagetk python-tk tcl tcl8.6 tex-common
tex-gyre texlive-base texlive-binaries texlive-extra-utils
texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc
texlive-generic-recommended texlive-lang-english texlive-latex-base
texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc
texlive-latex-recommended texlive-latex-recommended-doc texlive-pictures
texlive-pictures-doc texlive-pstricks texlive-pstricks-doc texmaker-data
tipa tk tk8.6 tk8.6-blt2.5 vprerex
Suggested packages:
gv blt-demo python-pil-doc python-pil.imagetk-dbg tix python-tk-dbg
tcl-tclreadline latexdiff latexmk dvidvi fragmaster lacheck purifyeps xindy
chktex dvipng t1utils libtcltk-ruby dot2tex texlive-lang-all
Recommended packages:
wish
The following NEW packages will be installed:
asymptote asymptote-doc blt fonts-lmodern fonts-texgyre freeglut3
latex-beamer libfile-homedir-perl libosmesa6 libpoppler-qt5-1 libpotrace0
libptexenc1 libqt5concurrent5 libqt5network5 libqt5opengl5
libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5script5 libqt5sql5
libqt5sql5-sqlite libqt5webkit5 libqt5widgets5 libqt5xml5 libsynctex1
libtk8.6 libyaml-tiny-perl libzzip-0-13 lmodern prerex preview-latex-style
prosper ps2eps psutils python-pil.imagetk python-tk tcl tcl8.6 tex-common
tex-gyre texlive-base texlive-binaries texlive-extra-utils
texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc
texlive-generic-recommended texlive-lang-english texlive-latex-base
texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc
texlive-latex-recommended texlive-latex-recommended-doc texlive-pictures
texlive-pictures-doc texlive-pstricks texlive-pstricks-doc texmaker
texmaker-data tipa tk tk8.6 tk8.6-blt2.5 vprerex
0 upgraded, 65 newly installed, 0 to remove and 0 not upgraded.
Need to get 755 MB/776 MB of archives.
After this operation, 1,246 MB of additional disk space will be used.
Do you want to continue? [Y/n]
然而我已经安装了texlive,并不需要安装texlive。原来不懂安装原理的时候,我下载了独立的texmaker的deb包安装。本以为这样会躲过texlive的推荐安装,可是以升级时依然会遇到这个问题。因为平时用emacs写tex文档,也就放弃了texmaker安装。今天学习APT HOWTO时才想到即然是推荐包,实际上是可以不采纳推荐的。查看了apt-get文档,果然有选项–no-install-recommends,实验发现解决了这个问题。
sudo apt-get install --no-install-recommends texmaker
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libpoppler-qt5-1 libqt5concurrent5 libqt5network5 libqt5opengl5
libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5script5 libqt5sql5
libqt5webkit5 libqt5widgets5 libqt5xml5 libsynctex1 texmaker-data
Suggested packages:
texlive-lang-all
Recommended packages:
libqt5sql5-sqlite libqt5sql5-mysql libqt5sql5-odbc libqt5sql5-psql
libqt5sql5-ibase psutils latex-beamer texlive-latex-extra
texlive-lang-english asymptote
The following NEW packages will be installed:
libpoppler-qt5-1 libqt5concurrent5 libqt5network5 libqt5opengl5
libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5script5 libqt5sql5
libqt5webkit5 libqt5widgets5 libqt5xml5 libsynctex1 texmaker texmaker-data
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/20.1 MB of archives.
After this operation, 74.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]