LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unistall docker on centos (https://www.linuxquestions.org/questions/linux-newbie-8/unistall-docker-on-centos-4175574806/)

crltzn 03-13-2016 10:41 PM

unistall docker on centos
 
Hi,


How can I unistall docker on centos? I try to use sudo yum remove docker-engine.x86_64 but I cant remove it. Below is my log. Thanks in advance.



$ sudo yum remove docker-engine.x86_64
Loaded plugins: fastestmirror, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.7.1-1.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ==================================================
Package Arch Version Repository Size
==================================================================================================== ==================================================
Removing:
docker-engine x86_64 1.7.1-1.el6 @/ 19 M

Transaction Summary
==================================================================================================== ==================================================
Remove 1 Package(s)

Installed size: 19 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
error reading information on service docker: Invalid argument
error: %preun(docker-engine-1.7.1-1.el6.x86_64) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package docker-engine
docker-engine-1.7.1-1.el6.x86_64 was supposed to be removed but is not!
Verifying : docker-engine-1.7.1-1.el6.x86_64 1/1

Failed:
docker-engine.x86_64 0:1.7.1-1.el6

Complete!

pan64 03-14-2016 04:10 AM

looks like something damaged. Try to install first and uninstall again. Did you install another version too?

crltzn 03-14-2016 05:20 AM

Hi,

When I try to install it this will pop up.

#sudo yum install docker-engine
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.sonic.net
* epel: mirror.sfo12.us.leaseweb.net
* extras: mirror.web-ster.com
* updates: centos.sonn.com
Package docker-engine-1.7.1-1.el6.x86_64 already installed and latest version
Nothing to do

pan64 03-14-2016 06:23 AM

yum reinstall package

crltzn 03-14-2016 06:39 AM

Hi,

It is ok now.. Thanks a lot pan64

ardvark71 03-14-2016 10:57 AM

Quote:

Originally Posted by crltzn (Post 5515109)
It is ok now.. Thanks a lot pan64

Hi...

Glad you were able to get this resolved. If you would, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks! :)

Regards...


All times are GMT -5. The time now is 12:47 PM.