[CentOS] Inquiry:yum?

Thu Dec 24 05:53:16 UTC 2009
John R Pierce <pierce at hogranch.com>

hadi motamedi wrote:
> ...
>         package yum-arch-2.2.2-2.el5.kb is already installed
> [root at mss-1 tmp]# whereis yum
> yum:
> [root at mss-1 tmp]#

try...

    # rpm -V yum


if the package is intact, there should be no output (after a few seconds 
of thinking), otherwise it will list anything thats wrong, like missing 
files.

    # rpm -V --verbose yum

should output a list of all the files in that package, including...

........  c /etc/logrotate.d/yum
........    /etc/yum
........  c /etc/yum.conf
........    /etc/yum.repos.d
........    /etc/yum/pluginconf.d
........    /usr/bin/yum
........    /usr/lib/python2.4/site-packages/rpmUtils
........    /usr/lib/python2.4/site-packages/rpmUtils/__init__.py
........    /usr/lib/python2.4/site-packages/rpmUtils/__init__.pyc
........    /usr/lib/python2.4/site-packages/rpmUtils/__init__.pyo
........    /usr/lib/python2.4/site-packages/rpmUtils/arch.py
........    /usr/lib/python2.4/site-packages/rpmUtils/arch.pyc
........    /usr/lib/python2.4/site-packages/rpmUtils/arch.pyo
........    /usr/lib/python2.4/site-packages/rpmUtils/miscutils.py
........    /usr/lib/python2.4/site-packages/rpmUtils/miscutils.pyc
........    /usr/lib/python2.4/site-packages/rpmUtils/miscutils.pyo
........    /usr/lib/python2.4/site-packages/rpmUtils/oldUtils.py
........    /usr/lib/python2.4/site-packages/rpmUtils/oldUtils.pyc
........    /usr/lib/python2.4/site-packages/rpmUtils/oldUtils.pyo
........    /usr/lib/python2.4/site-packages/rpmUtils/transaction.py
........    /usr/lib/python2.4/site-packages/rpmUtils/transaction.pyc
........    /usr/lib/python2.4/site-packages/rpmUtils/transaction.pyo
........    /usr/lib/python2.4/site-packages/rpmUtils/updates.py
........    /usr/lib/python2.4/site-packages/rpmUtils/updates.pyc
........    /usr/lib/python2.4/site-packages/rpmUtils/updates.pyo
........    /usr/lib/python2.4/site-packages/yum
........    /usr/lib/python2.4/site-packages/yum/Errors.py
........    /usr/lib/python2.4/site-packages/yum/Errors.pyc
........    /usr/lib/python2.4/site-packages/yum/Errors.pyo
........    /usr/lib/python2.4/site-packages/yum/__init__.py
........    /usr/lib/python2.4/site-packages/yum/__init__.pyc
........    /usr/lib/python2.4/site-packages/yum/__init__.pyo
........    /usr/lib/python2.4/site-packages/yum/callbacks.py
........    /usr/lib/python2.4/site-packages/yum/callbacks.pyc
........    /usr/lib/python2.4/site-packages/yum/callbacks.pyo
........    /usr/lib/python2.4/site-packages/yum/comps.py
........    /usr/lib/python2.4/site-packages/yum/comps.pyc
........    /usr/lib/python2.4/site-packages/yum/comps.pyo
........    /usr/lib/python2.4/site-packages/yum/config.py
........    /usr/lib/python2.4/site-packages/yum/config.pyc
........    /usr/lib/python2.4/site-packages/yum/config.pyo
........    /usr/lib/python2.4/site-packages/yum/constants.py
........    /usr/lib/python2.4/site-packages/yum/constants.pyc
........    /usr/lib/python2.4/site-packages/yum/constants.pyo
........    /usr/lib/python2.4/site-packages/yum/depsolve.py
........    /usr/lib/python2.4/site-packages/yum/depsolve.pyc
........    /usr/lib/python2.4/site-packages/yum/depsolve.pyo
........    /usr/lib/python2.4/site-packages/yum/failover.py
........    /usr/lib/python2.4/site-packages/yum/failover.pyc
........    /usr/lib/python2.4/site-packages/yum/failover.pyo
........    /usr/lib/python2.4/site-packages/yum/i18n.py
........    /usr/lib/python2.4/site-packages/yum/i18n.pyc
........    /usr/lib/python2.4/site-packages/yum/i18n.pyo
........    /usr/lib/python2.4/site-packages/yum/logginglevels.py
........    /usr/lib/python2.4/site-packages/yum/logginglevels.pyc
........    /usr/lib/python2.4/site-packages/yum/logginglevels.pyo
........    /usr/lib/python2.4/site-packages/yum/mdparser.py
........    /usr/lib/python2.4/site-packages/yum/mdparser.pyc
........    /usr/lib/python2.4/site-packages/yum/mdparser.pyo
........    /usr/lib/python2.4/site-packages/yum/metalink.py
........    /usr/lib/python2.4/site-packages/yum/metalink.pyc
........    /usr/lib/python2.4/site-packages/yum/metalink.pyo
........    /usr/lib/python2.4/site-packages/yum/misc.py
........    /usr/lib/python2.4/site-packages/yum/misc.pyc
........    /usr/lib/python2.4/site-packages/yum/misc.pyo
........    /usr/lib/python2.4/site-packages/yum/packageSack.py
........    /usr/lib/python2.4/site-packages/yum/packageSack.pyc
........    /usr/lib/python2.4/site-packages/yum/packageSack.pyo
........    /usr/lib/python2.4/site-packages/yum/packages.py
........    /usr/lib/python2.4/site-packages/yum/packages.pyc
........    /usr/lib/python2.4/site-packages/yum/packages.pyo
........    /usr/lib/python2.4/site-packages/yum/parser.py
........    /usr/lib/python2.4/site-packages/yum/parser.pyc
........    /usr/lib/python2.4/site-packages/yum/parser.pyo
........    /usr/lib/python2.4/site-packages/yum/pgpmsg.py
........    /usr/lib/python2.4/site-packages/yum/pgpmsg.pyc
........    /usr/lib/python2.4/site-packages/yum/pgpmsg.pyo
........    /usr/lib/python2.4/site-packages/yum/plugins.py
........    /usr/lib/python2.4/site-packages/yum/plugins.pyc
........    /usr/lib/python2.4/site-packages/yum/plugins.pyo
........    /usr/lib/python2.4/site-packages/yum/repoMDObject.py
........    /usr/lib/python2.4/site-packages/yum/repoMDObject.pyc
........    /usr/lib/python2.4/site-packages/yum/repoMDObject.pyo
........    /usr/lib/python2.4/site-packages/yum/repos.py
........    /usr/lib/python2.4/site-packages/yum/repos.pyc
........    /usr/lib/python2.4/site-packages/yum/repos.pyo
........    /usr/lib/python2.4/site-packages/yum/rpmsack.py
........    /usr/lib/python2.4/site-packages/yum/rpmsack.pyc
........    /usr/lib/python2.4/site-packages/yum/rpmsack.pyo
........    /usr/lib/python2.4/site-packages/yum/rpmtrans.py
........    /usr/lib/python2.4/site-packages/yum/rpmtrans.pyc
........    /usr/lib/python2.4/site-packages/yum/rpmtrans.pyo
........    /usr/lib/python2.4/site-packages/yum/sqlitesack.py
........    /usr/lib/python2.4/site-packages/yum/sqlitesack.pyc
........    /usr/lib/python2.4/site-packages/yum/sqlitesack.pyo
........    /usr/lib/python2.4/site-packages/yum/sqlutils.py
........    /usr/lib/python2.4/site-packages/yum/sqlutils.pyc
........    /usr/lib/python2.4/site-packages/yum/sqlutils.pyo
........    /usr/lib/python2.4/site-packages/yum/transactioninfo.py
........    /usr/lib/python2.4/site-packages/yum/transactioninfo.pyc
........    /usr/lib/python2.4/site-packages/yum/transactioninfo.pyo
........    /usr/lib/python2.4/site-packages/yum/update_md.py
........    /usr/lib/python2.4/site-packages/yum/update_md.pyc
........    /usr/lib/python2.4/site-packages/yum/update_md.pyo
........    /usr/lib/python2.4/site-packages/yum/yumRepo.py
........    /usr/lib/python2.4/site-packages/yum/yumRepo.pyc
........    /usr/lib/python2.4/site-packages/yum/yumRepo.pyo
........    /usr/lib/yum-plugins
........    /usr/share/doc/yum-3.2.19
........  d /usr/share/doc/yum-3.2.19/AUTHORS
........  d /usr/share/doc/yum-3.2.19/COPYING
........  d /usr/share/doc/yum-3.2.19/ChangeLog
........  d /usr/share/doc/yum-3.2.19/INSTALL
........  d /usr/share/doc/yum-3.2.19/README
........  d /usr/share/doc/yum-3.2.19/TODO
........    /usr/share/locale/ca/LC_MESSAGES/yum.mo
........    /usr/share/locale/da/LC_MESSAGES/yum.mo
........    /usr/share/locale/de/LC_MESSAGES/yum.mo
........    /usr/share/locale/fr/LC_MESSAGES/yum.mo
........    /usr/share/locale/it/LC_MESSAGES/yum.mo
........    /usr/share/locale/ms/LC_MESSAGES/yum.mo
........    /usr/share/locale/nb/LC_MESSAGES/yum.mo
........    /usr/share/locale/pl/LC_MESSAGES/yum.mo
........    /usr/share/locale/pt/LC_MESSAGES/yum.mo
........    /usr/share/locale/pt_BR/LC_MESSAGES/yum.mo
........    /usr/share/locale/ru/LC_MESSAGES/yum.mo
........    /usr/share/locale/sr/LC_MESSAGES/yum.mo
........    /usr/share/locale/sr at latin/LC_MESSAGES/yum.mo
........    /usr/share/locale/zh_CN/LC_MESSAGES/yum.mo
........  d /usr/share/man/man5/yum.conf.5.gz
........  d /usr/share/man/man8/yum-shell.8.gz
........  d /usr/share/man/man8/yum.8.gz
........    /usr/share/yum-cli
........    /usr/share/yum-cli/callback.py
........    /usr/share/yum-cli/callback.pyc
........    /usr/share/yum-cli/callback.pyo
........    /usr/share/yum-cli/cli.py
........    /usr/share/yum-cli/cli.pyc
........    /usr/share/yum-cli/cli.pyo
........    /usr/share/yum-cli/output.py
........    /usr/share/yum-cli/output.pyc
........    /usr/share/yum-cli/output.pyo
........    /usr/share/yum-cli/shell.py
........    /usr/share/yum-cli/shell.pyc
........    /usr/share/yum-cli/shell.pyo
........    /usr/share/yum-cli/utils.py
........    /usr/share/yum-cli/utils.pyc
........    /usr/share/yum-cli/utils.pyo
........    /usr/share/yum-cli/yumcommands.py
........    /usr/share/yum-cli/yumcommands.pyc
........    /usr/share/yum-cli/yumcommands.pyo
........    /usr/share/yum-cli/yummain.py
........    /usr/share/yum-cli/yummain.pyc
........    /usr/share/yum-cli/yummain.pyo
........    /var/cache/yum
........    /var/lib/yum