我应该在Linux的哪个目录中安装程序?


15

我使用Linux已有2年的时间,但我仍然对应该保留安装程序的位置感到困惑。现在我用/opt/<program>,例如我从源代码安装vim73那里(理由不使用的软件包管理器是没有7.3版本的VIM在我的消息来源,例如/etc/apt/sources.list在我的Ubuntu)。

但是我以前从源代码安装的所有程序都分散在FS各处,例如PHP 5.3.6仍在/opt/local/php53,apache /etc/,vlc /etc/mutimedia等等中。

我可以遵循一些约定吗?

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.