Man/epm 1

From Wikux.org
Jump to: navigation, search

Contents

EPM

Section: User Contributed Perl Documentation (1)
Updated: 2006-09-13
Index Return to Main Contents


NAME

epm - rpm workalike for Gentoo

SYNOPSIS

epm { -eqVy | --erase | --help | --query | --verify } options...

DESCRIPTION

This tool provides a Gentoo query tool for users familiar with Red Hat's ``rpm'' package manager. In particular, it can query, verify, and erase packages from the system. I've tried to make it act as much like rpm as possible, but there are some differences made necessary by the differences in the distributions.

Querying and verifying are the most powerful features of epm. Erase mode is really just a gate to ``emerge -C'', but force of habit makes it easier for me to type ``epm -e''.

MODES

-q --query
Query mode, for querying either the list of installed packages or the files owned by a package.
-V -y --verify
Verify mode, for determining the integrity of an installed package using timestamps and md5 sums. Size, device, user, group, and mode are not presently checked.
-e --erase
Erase mode, for removing packages from the system. Specify a package by version to remove a specific package. Specify a package by name to remove all versions (i.e. --allmatches is the default for epm, this is a difference from rpm).
--help
This isn't really a mode, but it's the only thing you can do without otherwise specifying a mode. Run ``epm --help'' to see the comprehensive list of options available for each mode.

EXAMPLES

To find out if vim is installed:


  $ epm -q vim
  vim-6.2_pre2

To include the group in the output:


  $ epm -qG vim
  app-editors/vim-6.2_pre2

To see what binaries vim installs:


  $ epm -ql vim | grep bin
  /usr/bin/ex
  /usr/bin/vim
  /usr/bin/rvim
  /usr/bin/view
  /usr/bin/rview
  /usr/bin/vimdiff

To find what package owns /usr/bin/vim


  $ epm -qf /usr/bin/vim
  vim-6.2_pre2

To verify your installation of vim:


  $ epm -V vim

No output indicates the installation is fine. If you get some other output when you verify a package installation, try the following link for an explanation. http://www.rpm.org/max-rpm/s1-rpm-verify-output.html

To show all vim related packages on the system:


  $ epm -qa | grep vim
  vim-core-6.2_pre2
  vim-6.2_pre2
  gvim-6.2_pre2

NOTES

This tool was written by Aron Griffis <agriffis@gentoo.org>. It will probably blow up your computer, but it works well enough for me. If you report bugs at http://bugs.gentoo.org/, assigned to me, I might fix them eventually. Your chances skyrocket if you include a good patch, like Wayne Davison always does.


Personal tools