2

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?

alternative
  • 12,703
  • 5
  • 41
  • 41

3 Answers3

2

This would be the equivalent commands in Ubuntu:

  • apt-cache search package
  • dpkg -L package
  • dpkg -S filename
  • aptitude search ~n.*
gypaetus
  • 6,873
  • 3
  • 35
  • 45
0

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).

Community
  • 1
  • 1
Fernando Briano
  • 7,699
  • 13
  • 58
  • 75
0

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

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

duanedesign
  • 609
  • 4
  • 8