Notes from deleting the 3.4.9 server install

2 views
Skip to first unread message

Anthony Shortland

unread,
Nov 6, 2009, 6:38:32 PM11/6/09
to ControlTier Accounting
These notes from removing the most-recent-but-one server RPM from a system:

  • Stopped the server:

[root@centos53 ~]# service ctier stop
Stopping Jetty: OK

  • Erased the RPM:

[root@centos53 opt]# rpm -e ctier-server
warning: /opt/ctier/reportcenter/reportcenter-config.properties saved as /opt/ctier/reportcenter/reportcenter-config.properties.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/reportcenter/WEB-INF/jetty-web.xml saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/reportcenter/WEB-INF/jetty-web.xml.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/jackrabbit/WEB-INF/web.xml saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/jackrabbit/WEB-INF/web.xml.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/jackrabbit/WEB-INF/templates/bootstrap.properties saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/jackrabbit/WEB-INF/templates/bootstrap.properties.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/runtime.properties saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/runtime.properties.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/log4j.properties saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/log4j.properties.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/bootstrap.properties saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/bootstrap.properties.rpmsave
warning: /opt/ctier/jobcenter/jobcenter-config.properties saved as /opt/ctier/jobcenter/jobcenter-config.properties.rpmsave
warning: /opt/ctier/ctl/etc/setup.status saved as /opt/ctier/ctl/etc/setup.status.rpmsave
warning: /opt/ctier/ctl/etc/profile saved as /opt/ctier/ctl/etc/profile.rpmsave
warning: /opt/ctier/ctl/etc/preferences.properties saved as /opt/ctier/ctl/etc/preferences.properties.rpmsave
warning: /opt/ctier/ctl/etc/node.properties saved as /opt/ctier/ctl/etc/node.properties.rpmsave
warning: /opt/ctier/ctl/etc/log4j.properties saved as /opt/ctier/ctl/etc/log4j.properties.rpmsave
warning: /opt/ctier/ctl/etc/framework.properties saved as /opt/ctier/ctl/etc/framework.properties.rpmsave
warning: /opt/ctier/ctl/etc/console-log4j.properties saved as /opt/ctier/ctl/etc/console-log4j.properties.rpmsave
warning: /opt/ctier/ctl/etc/acls.xml saved as /opt/ctier/ctl/etc/acls.xml.rpmsave

  • Still some stuff left under /opt/ctier!:

[root@centos53 opt]# du -sh /opt/ctier
462M    /opt/ctier
[root@centos53 opt]# find /opt/ctier | wc -l 
18537
[root@centos53 opt]# rm -rf /opt/ctier

  • Removed the init.d related stuff:

[root@centos53 opt]# rm -f /etc/default/ctier
[root@centos53 opt]# rm -f /etc/init.d/ctier 

  • Removed the user and the group:

[root@centos53 opt]# userdel ctier
[root@centos53 opt]# groupdel ctier

  • Consciously ignored backing out the ulimit related changes.

Phew ... a few extra features needed!

Anthony.

Greg Schueler

unread,
Nov 6, 2009, 6:45:38 PM11/6/09
to contr...@googlegroups.com
On Fri, Nov 6, 2009 at 3:38 PM, Anthony Shortland <ant...@controltier.com> wrote:
These notes from removing the most-recent-but-one server RPM from a system:

  • Stopped the server:

[root@centos53 ~]# service ctier stop
Stopping Jetty: OK

spec already will do this automatically 
  • Erased the RPM:

[root@centos53 opt]# rpm -e ctier-server
warning: /opt/ctier/reportcenter/reportcenter-config.properties saved as /opt/ctier/reportcenter/reportcenter-config.properties.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/reportcenter/WEB-INF/jetty-web.xml saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/reportcenter/WEB-INF/jetty-web.xml.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/jackrabbit/WEB-INF/web.xml saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/jackrabbit/WEB-INF/web.xml.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/jackrabbit/WEB-INF/templates/bootstrap.properties saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/jackrabbit/WEB-INF/templates/bootstrap.properties.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/runtime.properties saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/runtime.properties.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/log4j.properties saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/log4j.properties.rpmsave
warning: /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/bootstrap.properties saved as /opt/ctier/pkgs/jetty-6.1.14/webapps/itnav/WEB-INF/classes/bootstrap.properties.rpmsave
warning: /opt/ctier/jobcenter/jobcenter-config.properties saved as /opt/ctier/jobcenter/jobcenter-config.properties.rpmsave
warning: /opt/ctier/ctl/etc/setup.status saved as /opt/ctier/ctl/etc/setup.status.rpmsave
warning: /opt/ctier/ctl/etc/profile saved as /opt/ctier/ctl/etc/profile.rpmsave
warning: /opt/ctier/ctl/etc/preferences.properties saved as /opt/ctier/ctl/etc/preferences.properties.rpmsave
warning: /opt/ctier/ctl/etc/node.properties saved as /opt/ctier/ctl/etc/node.properties.rpmsave
warning: /opt/ctier/ctl/etc/log4j.properties saved as /opt/ctier/ctl/etc/log4j.properties.rpmsave
warning: /opt/ctier/ctl/etc/framework.properties saved as /opt/ctier/ctl/etc/framework.properties.rpmsave
warning: /opt/ctier/ctl/etc/console-log4j.properties saved as /opt/ctier/ctl/etc/console-log4j.properties.rpmsave
warning: /opt/ctier/ctl/etc/acls.xml saved as /opt/ctier/ctl/etc/acls.xml.rpmsave

These are "config" files.  modified config files will be backed up by rpm before being removed. 
  • Still some stuff left under /opt/ctier!:

[root@centos53 opt]# du -sh /opt/ctier
462M    /opt/ctier
[root@centos53 opt]# find /opt/ctier | wc -l 
18537
[root@centos53 opt]# rm -rf /opt/ctier

Other content created in the dir after rpm installation (e.g. workbench/rdfdata/*) is not removed by rpm because it wasn't part of the rpm contents 
  • Removed the init.d related stuff:

[root@centos53 opt]# rm -f /etc/default/ctier
[root@centos53 opt]# rm -f /etc/init.d/ctier 

spec will already do this 
  • Removed the user and the group:

[root@centos53 opt]# userdel ctier
[root@centos53 opt]# groupdel ctier

Is this something that the rpm should do at uninstall?

personally I don't think it should.  I have a "ctier" user that I use for other things as well on one linux box.  This plays fine with "useradd" because it only adds the user if it doesn't already exist.  

I guess it seems overly destructive, but I don't know what the precedent is for it.

Alex-SF

unread,
Nov 6, 2009, 7:09:07 PM11/6/09
to ControlTier
on the same note, what about contents under CTL_BASE?

On Nov 6, 3:45 pm, Greg Schueler <g...@controltier.com> wrote:
> On Fri, Nov 6, 2009 at 3:38 PM, Anthony Shortland
> <anth...@controltier.com>wrote:
>
>
>
>
>
> > These notes from removing the most-recent-but-one server RPM from a system:
>
> >    - Stopped the server:
>
> > [root@centos53 ~]# service ctier stop
> > Stopping Jetty: OK
>
> > spec already will do this automatically
>
> >    - Erased the RPM:
> >    - Still some stuff left under /opt/ctier!:
>
> > [root@centos53 opt]# du -sh /opt/ctier
> > 462M    /opt/ctier
> > [root@centos53 opt]# find /opt/ctier | wc -l
> > 18537
> > [root@centos53 opt]# rm -rf /opt/ctier
>
> > Other content created in the dir after rpm installation (e.g.
>
> workbench/rdfdata/*) is not removed by rpm because it wasn't part of the rpm
> contents
>
>
>
>
>
>
>
> >    - Removed the init.d related stuff:
>
> > [root@centos53 opt]# rm -f /etc/default/ctier
> > [root@centos53 opt]# rm -f /etc/init.d/ctier
>
> > spec will already do this
>
> >    - Removed the user and the group:
>
> > [root@centos53 opt]# userdel ctier
> > [root@centos53 opt]# groupdel ctier
>
> Is this something that the rpm should do at uninstall?
>
> personally I don't think it should.  I have a "ctier" user that I use for
> other things as well on one linux box.  This plays fine with "useradd"
> because it only adds the user if it doesn't already exist.
>
> I guess it seems overly destructive, but I don't know what the precedent is
> for it.
>
>
>
>
>
> >    - Consciously ignored backing out the ulimit related changes.

Anthony Shortland

unread,
Nov 6, 2009, 7:22:21 PM11/6/09
to contr...@googlegroups.com
Right ... you can make a case either way ... I nuked then manually
because I wanted to do a clean client install ... but we could err on
the side of caution!
Reply all
Reply to author
Forward
0 new messages