ASE 12.5 for Linux Install 〜Step 20 ASE12.5を消す〜
ASE 12.5 for Linux Install
〜Step 20 ASE12.5を消す〜
0.更新履歴
1.はじめに
このドキュメントでは,RedHat Linux 7.2に,Sybase Adaptive Server Enterprisee
12.5 for Linuxをアンインストールする手順を示す.
2.プロセス稼動の確認
bash-2.05$ showserver
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
bash-2.05$
|
3.パッケージの確認
bash-2.05$ rpm -qa | grep sybase
sybase-common-12.5-3
sybase-openclient-12.5-3
sybase-ase-12.5-3
sybase-japanese-12.5-3
bash-2.05$
|
4.パッケージを消す
- rootユーザとなり,rpm -eコマンドを使って,パッケージを消す.
bash-2.05$ su
Password:
[root@gx150 sybase-12.5]# rpm -e sybase-common-12.5-3
error: removing these packages would break dependencies:
sybase-common >= 12.5 is needed by sybase-ase-12.5-3
sybase-common >= 12.5 is needed by sybase-openclient-12.5-3
sybase-common >= 12.5 is needed by sybase-japanese-12.5-3
[root@gx150 sybase-12.5]#
|
- 依存関係があって消せないとエラーがでた.
- よって,依存しないパッケージから順番に削除する.
[root@gx150 sybase-12.5]# rpm -e sybase-japanese-12.5-3
[root@gx150 sybase-12.5]# rpm -e sybase-openclient-12.5-3
[root@gx150 sybase-12.5]# rpm -e sybase-ase-12.5-3
[root@gx150 sybase-12.5]# rpm -e sybase-common-12.5-3
[root@gx150 sybase-12.5]#
|
[root@gx150 sybase-12.5]# rpm -qa | grep sybase
[root@gx150 sybase-12.5]#
|
5.ファイルを消す
- パッケージを消しても,すべてのファイルが消されているわけではない.
- duコマンドで,$SYBASE以下のファイルの容量を確認する.
[root@gx150 sybase-12.5]# du -sk /opt/sybase-12.5
699744 /opt/sybase-12.5
[root@gx150 sybase-12.5]#
|
[root@gx150 sybase-12.5]# cd /
[root@gx150 /]# rm -f -R /opt/sybase-12.5/
[root@gx150 /]#
|
[root@gx150 /]# cd /opt
[root@gx150 opt]# ls
[root@gx150 opt]#
|
6.ユーザを消す
- userdelコマンドを使って,sybaseアカウントを削除する.
[root@gx150 /]# /usr/sbin/userdel sybase
[root@gx150 /]#
|