web-dev-qa-db-ja.com

特定の依存パッケージのインストールの回避(texlive)

UbuntuのTeXLiveは非常に古い(バージョン2009)ので、TeXの人々が CTANから直接最新のTeXLiveを直接インストールする を推奨することをいつも聞いています。 (はい、その質問で言及されたものと同じパッケージが必要です。)私はこれを行い、TeXLive 2011をインストールしました。

今、私がインストールする必要のあるいくつかのパッケージ(gummiなど)はUbuntuのTeXLiveパッケージに依存しています。 TeXLiveを手動でインストールしているため、UbuntuのTeXLiveパッケージがインストールされないようにするにはどうすればよいですか?

5
Szabolcs

ファイルを提供しないが、texliveからパッケージ名を提供することを宣言するダミーパッケージを作成します。そのためのツールがあります: equivs-build from equivs パッケージ。

equivs-buildは、パッケージの依存関係を宣言するファイル(Provides: foo, barなど、パッケージのインストールはパッケージfooおよびbarのインストールと同等であることを意味します)を受け取り、 .debバイナリパッケージ。 equivs-control を使用してテンプレートを生成できます。 TUGは、 TeXlive 2011 および TeXlive 201 のequivsファイルを提供します。ここで2013年のファイルを再現します。

Section: misc
Priority: optional
Standards-Version: 3.9.4

Package: texlive-local
Version: 2013-1
Maintainer: you <[email protected]>
Provides: chktex, biblatex, biblatex-dw, cm-super, cm-super-minimal, context, 
 dvidvi, dvipng, feynmf, fragmaster, jadetex, lacheck, latex-beamer, 
 latex-cjk-all, latex-cjk-chinese, latex-cjk-chinese-arphic-bkai00mp, 
 latex-cjk-chinese-arphic-bsmi00lp, latex-cjk-chinese-arphic-gbsn00lp, 
 latex-cjk-chinese-arphic-gkai00mp, latex-cjk-common, latex-cjk-japanese, 
 latex-cjk-japanese-wadalab, latex-cjk-korean, latex-cjk-thai, latexdiff, 
 latexmk, latex-sanskrit, latex-xcolor, lcdf-typetools, lmodern, luatex, 
 musixtex, passivetex, pgf, preview-latex-style, prosper, ps2eps, psutils, 
 purifyeps, t1utils, tex4ht, tex4ht-common, tex-gyre, texlive, texlive-base, 
 texlive-bibtex-extra, texlive-binaries, texlive-common, texlive-extra-utils,
 texlive-fonts-extra, texlive-fonts-extra-doc, texlive-fonts-recommended,
 texlive-fonts-recommended-doc, texlive-font-utils, texlive-formats-extra,
 texlive-games, texlive-generic-extra, texlive-generic-recommended,
 texlive-humanities, texlive-humanities-doc, texlive-lang-african,
 texlive-lang-all, texlive-lang-arabic, texlive-lang-cjk, texlive-lang-cyrillic,
 texlive-lang-czechslovak, texlive-lang-english, texlive-lang-european,
 texlive-lang-french, texlive-lang-german, texlive-lang-greek, 
 texlive-lang-indic, texlive-lang-italian, texlive-lang-other, 
 texlive-lang-polish, texlive-lang-portuguese, texlive-lang-spanish,
 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-metapost, texlive-metapost-doc, texlive-music,
 texlive-omega, texlive-pictures, texlive-pictures-doc, texlive-plain-extra,
 texlive-pstricks, texlive-pstricks-doc, texlive-publishers,
 texlive-publishers-doc, texlive-science, texlive-science-doc, texlive-xetex,
 thailatex, tipa, tipa-doc, xindy, xindy-rules, xmltex 
Architecture: all
Description: My local installation of TeX Live 2013.
 A full "Vanilla" TeX Live 2013
 http://tug.org/texlive/debian#Vanilla

完全なTeXliveをインストールしなかった場合、電子メールアドレスをMaintainer行に入れて(このパッケージがどこから来たかを覚えておく)、提供されたパッケージのリストを微調整することができます。上記のようにdebian-equivs-2013-ex.txtを使用したと仮定すると(そうでない場合は、ファイル名を微調整する必要があるかもしれません)、次のコマンドを実行します。

equivs-build debian-equivs-2013-ex.txt
Sudo dpkg -i texlive-local_2013-1_all.deb
3
Gilles

パッケージがあります、gummi-notex、それはまさにそれを行います。 ppaのインストール手順については here をご覧ください(現在saucy(13.10)ubuntuバージョンまで入手可能)

1
ilakast

PocketSamは正しいです。これを適切に行うことはできません。 dpkgを直接いじる必要があります。

Gummi .debファイルを手動でダウンロードする必要があります。

apt-get download gummi

次に、TeXLiveを除き、apt-getを使用してgummiから依存関係を手動でインストールします。

最後に、dpkg --ignore-dependsを使用してgummiをインストールできます。

これはエラーが発生しやすいことに注意してください。gummiのapt-getアップグレードを試みると、おそらく古いTeXLiveが取り込まれます。

1
achiang

dpkgは、競合や依存関係を無視できます。

dpkg -i --ignore-depends=package1,package2 targetpackage.deb

しかし、今のところapt-getの解決策はありません。

0
PocketSam