Packages, Ubuntu counterparts of Gentoo's useful commands

875 Views Asked by At

Trying to learn how to work with packages in Ubuntu (and have Gentoo experience). This command is already known:

(1) sudo apt-get install pkgname 

Looking for counterparts of these:

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

Which useful (console) package commands do you use in Ubuntu? Links to Ubuntu packages tutorial in style of Gentoo's Handbook?

3

There are 3 best solutions below

0
On

This would be the equivalent commands in Ubuntu:

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

This question is better suited for superuser.com or https://askubuntu.com/.

Anyway, I haven't used Gentoo's tools, but I think this Debian guide on package management is quite complete and you'll find the equivalents.

Some examples on apt-get:

apt-cache search package queries the repo for package.

apt-cache show package displays info on a certain package (dependencies and such).

0
On

Ubuntu Hacks/Package Management - Manage Packages From the Command Line

Debian Reference - Basic package management tools: apt-get / apt-cache and aptitude.