What does this command mean on Centos 7 "rpm -e --nodeps --justdb"?

Could anyone please tell me what this command means on Centos 7?
rpm -e --nodeps --justdb

Also I have by accident installed two versions of MySQL on my server:
 via two commands:
sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
sudo yum -y install mysql-community-server

and separately

sudo yum install php-mysql
sudo yum --enablerepo=remi,remi-php56 install php-pecl-apcu php-cli php-pdo php-mysqlnd php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-xml

Open in new window

I was following some installation tutorial and by accident installed both. How do I get rid of one of them and which would you recommend me to remove as I would prefer the best of the two.

thanks in advance
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
rpm -e --nodeps --justdb

rpm is the package manager, -e stands for erase (--erase option), --nodeps means it won't check for dependencies and --justdb means just update the databse, not the filesystem.

To uninstall using yum:
yum remove <name-of-package>

Open in new window

Using rpm:
rpm -ev <name-of-package> 

Open in new window

Concerning the mysql to uninstall, it actually depends on which one you need, I could assume you don't need the development release for example.... So it depends on what the tutorial is about.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
badwolfffAuthor Commented:
Thanks. No, rightly I don't need the development release. In that case the right installation command would have been:
sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
sudo yum -y install mysql-community-server


Also how do I find and uninstall the other one?

Just out of curiosity. That non-development release ouf of the two here, which version it is?
I need 5.6.
Zephyr ICTCloud ArchitectCommented:
Does your system already have mysql installed?

Because using rpm -Uvh will upgrade a package, not "install it"

If you want to install use "rpm -ivh"

Try finding the package with "rpm -qi <name-of-package>"

For example:  rpm -qi mysql

See what is listed.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.