
私はDebian Jessieを使用しています。ソースコードからいくつかのソフトウェアZをインストールしています。インストール手順はDebianパッケージXに依存していることを示しています。このパッケージをaptitudeで確認してインストールしましたが、サイレントインストール(iA
)としてマークされています。
そのため、ある日パッケージXをインストールしたパッケージYを削除すると、ソフトウェアZの動作が停止します。したがって、私の質問は、非対話型モードで適性を使用することが望ましい場合は、パッケージのフラグをどのように変更できるかというiA
ことです。i
ありがとうございます!
答え1
あなたはそれを使用することができますapt-mark
。マンページから:
auto
auto is used to mark a package as being automatically installed, which will cause
the package to be removed when no more manually installed packages depend on this
package.
manual
manual is used to mark a package as being manually installed, which will prevent the
package from being automatically removed if no other packages depend on it.
あなたの場合は、次のコマンドを使用してくださいmanual
。
apt-mark manual <package-name>