Find the answer to your Linux question:
Results 1 to 9 of 9
Hello, I am running Centos5. I am trying to uninstall mysql then reinstall it because I am having issues. When I try to use rpm this is what I am ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    5

    RPM Not Working

    Hello, I am running Centos5. I am trying to uninstall mysql then reinstall it because I am having issues. When I try to use rpm this is what I am getting.

    $ sudo rpm -e mysql

    RPM version 4.4.2
    Copyright (C) 1998-2002 - Red Hat, Inc.
    This program may be freely redistributed under the terms of the GNU GPL

    Usage: rpm [-aKfgpWHqV] [-aKfgpWHqVcdils] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqVK]
    [-aKfgpWHqVcdilsaKfgpWHqVK] [-aKfgpWHqVcdilsaKfgpWHqVKi] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv?] [-a|--all]
    [-f|--file] [-g|--group]
    [-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid]
    [--specfile] [--triggeredby] [--whatrequires] [--whatprovides]
    [--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list]
    [--queryformat=QUERYFORMAT] [-s|--state] [--nomd5] [--nofiles]
    [--nodeps] [--noscript] [--comfollow] [--logical] [--nochdir]
    [--nostat] [--physical] [--seedot] [--xdev] [--whiteout]
    [--addsign] [-K|--checksig] [--delsign] [--import] [--resign]
    [--nodigest] [--nosignature] [--initdb] [--rebuilddb] [--aid]
    [--allfiles] [--allmatches] [--badreloc] [-e|--erase <package>+]
    [--excludedocs] [--excludepath=<path>] [--fileconflicts] [--force]
    [-F|--freshen <packagefile>+] [-h|--hash] [--ignorearch] [--ignoreos]
    [--ignoresize] [-i|--install] [--justdb] [--nodeps] [--nomd5]
    [--nocontexts] [--noorder] [--nosuggest] [--noscripts]
    [--notriggers] [--oldpackage] [--percent] [--prefix=<dir>]
    [--relocate=<old>=<new>] [--repackage] [--replacefiles]
    [--replacepkgs] [--test] [-U|--upgrade <packagefile>+]
    [-D|--define 'MACRO EXPR'] [-E|--eval 'EXPR'] [--macros=<FILE:...>]
    [--nodigest] [--nosignature] [--rcfile=<FILE:...>] [-r|--root ROOT]
    [--querytags] [--showrc] [--quiet] [-v|--verbose] [--version]
    [-?|--help] [--usage] [--scripts] [--setperms] [--setugids]
    [--conflicts] [--obsoletes] [--provides] [--requires] [--info]
    [--changelog] [--xml] [--triggers] [--last] [--filesbypkg]
    [--fileclass] [--filecolor] [--filecontext] [--fscontext]
    [--recontext] [--fileprovide] [--filerequire] [--redhatprovides]
    [--redhatrequires] [--buildpolicy=<policy>] [--with=<option>]
    [--without=<option>]

    That is for any RPM command. Yes I read the man pages on RPM any ideas if I need to enable RPM or what?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    What happens if you don't use sudo? Use the actual root account to run "rpm -e".

  3. #3
    Just Joined!
    Join Date
    Aug 2008
    Posts
    5
    Same results any idea?

  4. #4
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    The error is about invalid sysntax...
    can you use anyother option of rpm like

    rpm -qa mysql

    or try using

    rpm --erase mysql
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  5. #5
    Just Joined!
    Join Date
    Jan 2008
    Posts
    20
    i think there may be a problem because you may be spelling it wrong,

    some alphabets may be capital in "mysql" like MySql

    check this out,

  6. #6
    Just Joined!
    Join Date
    Aug 2008
    Posts
    5
    Still does not work.

  7. #7
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Quote Originally Posted by 1nf3rn0 View Post
    I am trying to uninstall mysql then reinstall it because I am having issues. When I try to use rpm this is what I am getting.
    I just noticed this part of your post. Unless some of your binaries (executables or libraries) were inadvertently deleted this probably won't help. Linux isn't like Windows in that reinstalling either won't fix your problem or your old configuration could be left behind. Often you can delete an applications configuration and start from scratch as if you had just reinstalled. Remember application preferences are stored in /etc/ for systemwide changes and within a user's home directory for user applications.

    What is the nature of the problem you are having?

  8. #8
    Just Joined!
    Join Date
    Aug 2008
    Posts
    5
    I cannot excute any RPM commands. When I do I receive the message from above. Any ideas where i should look if it is installed on my machine?

  9. #9
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Quote Originally Posted by 1nf3rn0 View Post
    I cannot excute any RPM commands. When I do I receive the message from above. Any ideas where i should look if it is installed on my machine?
    I see from your prompt you ran the rpm command as a regular user. What do you get if you run it as root?

Posting Permissions

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