If you come from an RPM based GNU/Linux distro, surely you are familiar with the RPM package manager. Gentoo Linux provides a similar tool for you to make the transition easier.
Let’s see some usages of this tool.
List all installed packages and sort them:
epm -qa | sort
and include the group:
epm -qaG | sort
and count them…
epm -qa | wc -l
Show me what package the netstat tool belongs to (replace it with whatever you want):
epm -qf `which netstat`
Now tell me the packages the files in /bin belongs to:
epm -qf /bin
List files contained in the apache package:
epm -ql apache
Verify the integrity of an installed package:
epm -V apache
References:
- man epm