리눅스 톰캣6 제거

리눅스 톰캣6 제거

1 개요[ | ]

  • 리눅스 톰캣6 설치를 없었던 일로 하고 싶다.;;
  • 설치과정에서 새로 설치된 패키지 17개를 삭제할 것이다.

2 톰캣 중지[ | ]

[root@zetawiki ~]# service tomcat6 stop
Stopping tomcat6:                                          [  OK  ]

3 패키지 제거[ | ]

[root@zetawiki ~]# yum remove tomcat6* jakarta* ecj eclipse-ecj redhat-lsb xalan-j2
... (생략)
==================================================================================================================
 Package                                     Arch           Version                       Repository         Size
==================================================================================================================
Removing:
 ecj                                         noarch         1:3.3.1.1-3.jpp5              installed         1.3 M
 eclipse-ecj                                 x86_64         1:3.2.1-19.el5.centos         installed          23 M
 jakarta-commons-collections-tomcat5         x86_64         3.2-2jpp.3                    installed         187 k
 jakarta-commons-daemon                      noarch         1:1.0.1-7.jpp5                installed          74 k
 jakarta-commons-dbcp-tomcat5                noarch         1.2.2-2.jpp5                  installed         114 k
 jakarta-commons-logging                     noarch         1.1-8.jpp5                    installed         157 k
 jakarta-commons-pool-tomcat5                noarch         1.3-11.jpp5                   installed          47 k
 jakarta-taglibs-standard                    noarch         1.1.2-7.jpp5                  installed         376 k
 redhat-lsb                                  x86_64         4.0-2.1.4.el5                 installed          22 k
 tomcat6                                     noarch         6.0.36-1.jpp5                 installed         200 k
 tomcat6-admin-webapps                       noarch         6.0.36-1.jpp5                 installed          80 k
 tomcat6-el-1.0-api                          noarch         6.0.36-1.jpp5                 installed          33 k
 tomcat6-jsp-2.1-api                         noarch         6.0.36-1.jpp5                 installed          75 k
 tomcat6-lib                                 noarch         6.0.36-1.jpp5                 installed         3.1 M
 tomcat6-servlet-2.5-api                     noarch         6.0.36-1.jpp5                 installed          86 k
 tomcat6-webapps                             noarch         6.0.36-1.jpp5                 installed         737 k
 xalan-j2                                    noarch         2.7.0-10.jpp5                 installed         1.8 M

Transaction Summary
==================================================================================================================
Remove       17 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]: y
... (생략)
  Erasing        : eclipse-ecj                                                                               1/17 
/bin/rm: cannot remove `/var/lib/tomcat6/webapps/examples/WEB-INF/lib/taglibs-core.jar': No such file or directory
/bin/rm: cannot remove `/var/lib/tomcat6/webapps/examples/WEB-INF/lib/taglibs-standard.jar': No such file or directory
  Erasing        : tomcat6-lib                                                                               2/17 
error: %preun(tomcat6-webapps-6.0.36-1.jpp5.noarch) scriptlet failed, exit status 1
  Erasing        : tomcat6-servlet-2.5-api                                                                   3/17 
... (생략)
  Erasing        : jakarta-commons-daemon                                                                   16/17 

Removed:
  ecj.noarch 1:3.3.1.1-3.jpp5                                  eclipse-ecj.x86_64 1:3.2.1-19.el5.centos           
  jakarta-commons-collections-tomcat5.x86_64 0:3.2-2jpp.3      jakarta-commons-daemon.noarch 1:1.0.1-7.jpp5       
  jakarta-commons-dbcp-tomcat5.noarch 0:1.2.2-2.jpp5           jakarta-commons-logging.noarch 0:1.1-8.jpp5        
  jakarta-commons-pool-tomcat5.noarch 0:1.3-11.jpp5            jakarta-taglibs-standard.noarch 0:1.1.2-7.jpp5     
  redhat-lsb.x86_64 0:4.0-2.1.4.el5                            tomcat6.noarch 0:6.0.36-1.jpp5                     
  tomcat6-admin-webapps.noarch 0:6.0.36-1.jpp5                 tomcat6-el-1.0-api.noarch 0:6.0.36-1.jpp5          
  tomcat6-jsp-2.1-api.noarch 0:6.0.36-1.jpp5                   tomcat6-lib.noarch 0:6.0.36-1.jpp5                 
  tomcat6-servlet-2.5-api.noarch 0:6.0.36-1.jpp5               tomcat6-webapps.noarch 0:6.0.36-1.jpp5             
  xalan-j2.noarch 0:2.7.0-10.jpp5                             

Complete!

4 패키지 제거 (2)[ | ]

[root@zetawiki ~]# touch /var/lib/tomcat6/webapps/examples/WEB-INF/lib/taglibs-core.jar
[root@zetawiki ~]# touch /var/lib/tomcat6/webapps/examples/WEB-INF/lib/taglibs-standard.jar
[root@zetawiki ~]# yum remove tomcat6-webapps 
... (생략)
==================================================================================================================
 Package                        Arch                  Version                      Repository                Size
==================================================================================================================
Removing:
 tomcat6-webapps                noarch                6.0.36-1.jpp5                installed                737 k

Transaction Summary
==================================================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]: y
... (생략)
Removed:
  tomcat6-webapps.noarch 0:6.0.36-1.jpp5                                                                          

Complete!

5 폴더 및 yum repo 삭제[ | ]

명령어
ll /etc | grep tomcat
rm -rf /etc/tomcat6
ll /etc | grep tomcat
ll /etc/yum.repos.d/jpackage50.repo
rm -f /etc/yum.repos.d/jpackage50.repo
실행예시
[root@zetawiki ~]# ll /etc | grep tomcat
drwxr-xr-x  3 root root    4096 Jan 30 00:07 tomcat6
[root@zetawiki ~]# rm -rf /etc/tomcat6
[root@zetawiki ~]# ll /etc | grep tomcat
[root@zetawiki ~]# ll /etc/yum.repos.d/jpackage50.repo
-rw-r--r-- 1 root root 2162 Sep 26  2009 /etc/yum.repos.d/jpackage50.repo
[root@zetawiki ~]# rm -f /etc/yum.repos.d/jpackage50.repo

6 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}