rrpm -U is already installed rpm -v is not installed

Posted on 2004-12-01
Last Modified: 2013-12-15

I hope someone can answer my question.

I upgraded my spamassassin modules:

rpm -U perl-Mail-SpamAssassin-3.0.1-1.i386.rpm spamassassin-3.0.1-1.i386.rpm.

If I verify this it thinks they are upgraded:
rpm -Uv perl-Mail-SpamAssassin-3.0.1-1.i386.rpm spamassassin-3.0.1-1.i386.rpm
Preparing packages for installation...
package perl-Mail-SpamAssassin-3.0.1-1 is already installed
package spamassassin-3.0.1-1 is already installed

rpm -q spamassassin

My spamd would not start. When I verify the packages are installed it says they are not installed:

 rpm -e -v --test perl-Mail-SpamAssassin-3.0.1-1.i386.rpm spamassassin-3.0.1-1.i386.rpm | more
error: package perl-Mail-SpamAssassin-3.0.1-1.i386.rpm is not installed
error: package spamassassin-3.0.1-1.i386.rpm is not installed.

I understand that the -U flag removed the previous version before it installs the version to upgrade to. So, I am loathed to try and uninstall it.

Does anyone know what the best course of action to take is?


Question by:misscarbonara
    LVL 40

    Expert Comment

    Your "verify" is flawed. "--test' is only a valid option to and 'rpm -i' (install) operation. You attempted to invoke an 'rpm -e' which would have erased the packages had the syntax an options been valid.

    You can verify the packages with 'rpm -q --verify perl-Mail-SpamAssassin-3.0.1-1 spamassassin-3.0.1-1'. See 'man rpm' for details.

    If spamd is failing to start it probably isn't happy about something and it may log it's compaints to /var/log/messages, have you looked there for errors?
    LVL 38

    Accepted Solution

    > My spamd would not start.
    After you do "rpm -qa | grep -i spamassassin" to verify spamassassin installation.
    Then as root, do
    # service spamassassin start    <==== start spamassassin
    chkconfig --level 2345 spamassassin on  <===turn on spamassassin at boot up


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now