Find the answer to your Linux question:
Results 1 to 4 of 4
I use rpm to install vsftpd. Then look using "rpm -V vsftpd" but it shows not installed. Try to install again, and it says it is installed. Try to uninstall ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    3

    [SOLVED] strange behavior by rpm

    I use rpm to install vsftpd. Then look using "rpm -V vsftpd" but it shows not installed. Try to install again, and it says it is installed. Try to uninstall and it says it is not installed. Using "rpm -ql" shows that it is installed. What is the issue here?

    TIA

    Phillip

  2. #2
    Just Joined!
    Join Date
    Dec 2009
    Posts
    3
    ---paste---
    [root@cert ~]# rpm -i vsftpd-2.0.5-16.el5_4.1.i386.rpm
    [root@cert ~]# rpm -V vsftpd-2.0.5-16.el5_4.1.i386.rpm
    package vsftpd-2.0.5-16.el5_4.1.i386.rpm is not installed
    [root@cert ~]# rpm -i vsftpd-2.0.5-16.el5_4.1.i386.rpm
    package vsftpd-2.0.5-16.el5_4.1.i386 is already installed
    [root@cert ~]# rpm -e vsftpd-2.0.5-16.el5_4.1.i386.rpm
    error: package vsftpd-2.0.5-16.el5_4.1.i386.rpm is not installed
    [root@cert ~]# rpm -ql vsftpd
    /etc/logrotate.d/vsftpd.log
    /etc/pam.d/vsftpd
    /etc/rc.d/init.d/vsftpd
    /etc/vsftpd
    /etc/vsftpd/ftpusers
    ---snip----

    [root@cert ~]# uname -a
    Linux cert.redoubt 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

    [root@cert ~]# rpm -qf /bin/rpm
    rpm-4.3.3-32_nonptl
    rpm-4.4.2.3-18.el5

  3. #3
    Just Joined!
    Join Date
    Dec 2009
    Posts
    3
    OK... I figured it out myself. The -e and -V flags require that only the base name of the package be used whereas the -i requires the full package name. Also, -V does not give any output UNLESS there is a problem with the package.

    This looks ok...

    [root@cert ~]# rpm -i vsftpd-2.0.5-16.el5_4.1.i386.rpm
    [root@cert ~]# rpm -q vsftpd
    vsftpd-2.0.5-16.el5_4.1
    [root@cert ~]# rpm -V vsftpd
    [root@cert ~]# rpm -i vsftpd-2.0.5-16.el5_4.1.i386.rpm
    package vsftpd-2.0.5-16.el5_4.1.i386 is already installed
    [root@cert ~]# rpm -e vsftpd
    [root@cert ~]# rpm -q vsftpd
    package vsftpd is not installed

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    OK... I figured it out myself.
    Glad , you found the solution yourself. These tips might help you/others in future,
    use
    rpm -qa | grep package_keyname
    for example,
    rpm -qa | grep mysql
    will list all mysql rpm names. (like mysql server ,mysql client etc) .Now you can use these names for update or removing packages.

    HTH
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...