软件包,Ubuntu对应的Gentoo有用的命令

试图学习如何在Ubuntu中使用软件包(并具有Gentoo经验)。 这个命令是已知的:

(1) sudo apt-get install pkgname 

寻找这些的同行:

 (2) emerge -s pkgname (3) equery files pkgname (4) equery belongs filename (5) cat /var/lib/portage world 

在Ubuntu中使用哪些有用的(控制台)包命令? 用Gentoo手册的方式链接到Ubuntu包教程?

这将是Ubuntu中的等效命令:

  • apt-cache search package
  • dpkg -L package
  • dpkg -S filename
  • aptitude search ~n.*

这个问题更适合于superuser.com或https://askubuntu.com/

无论如何,我还没有使用Gentoo的工具,但是我认为这个关于包管理的Debian指南是相当完整的,你会发现它的等价物。

apt-get的一些例子:

apt-cache search package查询apt-cache search package的回购。

apt-cache show package显示某个软件包(依赖关系等)的信息。

Ubuntu黑客/软件包管理 – 从命令行管理软件包

Debian Reference – 基本软件包管理工具:apt-get / apt-cache和aptitude。