views:

57

answers:

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?

A: 

This question is better suited for superuser.com or http://ubuntu.stackexchange.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).

Fernando
A: 

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

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

duanedesign