nyan &plamolinux に戻る|目次に戻る|**|前に戻る|次をみる
手動でインストールした プログラムを 削除 する方法に ついて 試みる
-t MMDDhhmm[[CC]YY][.ss]
引数で指定した時間にタイム・スタンプを変更する。
MMは月,DDは日,hhは時,mmは分,
CCは西暦年の上2桁,YYは西暦年の下2桁,ssは秒を表す
file タイム・スタンプを変更するファイル
ほなら
# touch dfirst
# touch -t 08250945 dfirst
# touch flast
# touch -t 08250955 flast
Aug 25 09:52 に 作成 された ファイルに 関して 削除を 試みる
# find / -cnewer dfirst ! -type d -print >efile
find: /proc/22785/fd/4: No such file or directory
# find / -cnewer flast ! -type d -print >gfile
find: /proc/22798/fd/4: No such file or directory
# diff -s efile gfile >hdiff
# wc -l hdiff
379 hdiff
粗粗の ファイルの リストが 出来る この 中で KEY WORDとして : proc 関 連の ファイルは 無条件で 除外する 方針で有るので
# sed -e '/proc/d' hdiff >idiff
# wc -l idiff
347 idiff
へてから 手動で 作成した 場所の 物は 除外 出来るでしょう ”/usr/local/src/ ”何ぞで 処理してるでしょうから 一概には 言えませ んが にゃんたろうが 自分で 行った 場所は たまたま 覚えているので KEY WORD: ”/usr/local/src/0001_gnupg”として
# sed -e '/\/usr\/local\/src\/0001_gnupg/d' idiff | wc -l
51
# sed -e '/\/usr\/local\/src\/0001_gnupg/d' idiff >jdiff
# tr -d '<' kdiff
# cp kdiff l_diff
これから 自分で ごみを 削除します。 # vi l_diff ; 余分なもの削除 " > とか -- とか c456 d432 の 様なもの 其後
# mv l_diff master_del_gnu
# wc -l master_del_gnu
45 master_del_gnu
これで 削除 しようとする ファイルの 一覧が 得られた事に なるはずです。 後は 事故責任で (自己責任とも言うようですが)処理しませう。
これからは見る 必要は 有りません
# cat master_del_gnu
/usr/local/bin/gpgsplit
/usr/local/bin/gpg
/usr/local/bin/gpgv
/usr/local/man/man1/gpg.1
/usr/local/man/man1/gpgv.1
/usr/local/man/man1/gpg.ru.1
/usr/local/man/man7/gnupg.7
/usr/local/info/gpg.info
/usr/local/info/gpgv.info
/usr/local/info/dir
/usr/local/share/gnupg/options.skel
/usr/local/share/gnupg/FAQ
/usr/local/share/gnupg/faq.html
/usr/local/share/locale/en@quot/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/en@boldquot/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/be/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/ca/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/cs/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/da/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/de/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/eo/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/el/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/es/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/et/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/fi/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/fr/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/gl/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/hu/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/id/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/it/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/ja/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/pl/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/pt_BR/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/pt/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/ro/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/ru/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/sk/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/sv/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/tr/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/zh_TW/LC_MESSAGES/gnupg.mo
/usr/local/share/locale/zh_CN/LC_MESSAGES/gnupg.mo
/usr/local/libexec/gnupg/gpgkeys_hkp
/usr/local/libexec/gnupg/gpgkeys_finger
/usr/local/libexec/gnupg/gpgkeys_http
続行するのみ
# rm `cat master_del_gnu ` 2>&1 | tee del_gnu_try
ご機嫌窺をしましょう
# ls -l `cat master_del_gnu ` >check_del
へたら
# cat check_del
/bin/ls: /usr/local/bin/gpgsplit: No such file or directory
/bin/ls: /usr/local/bin/gpg: No such file or directory
/bin/ls: /usr/local/bin/gpgv: No such file or directory
/bin/ls: /usr/local/man/man1/gpg.1: No such file or directory
/bin/ls: /usr/local/man/man1/gpgv.1: No such file or directory
/bin/ls: /usr/local/man/man1/gpg.ru.1: No such file or directory
/bin/ls: /usr/local/man/man7/gnupg.7: No such file or directory
/bin/ls: /usr/local/info/gpg.info: No such file or directory
/bin/ls: /usr/local/info/gpgv.info: No such file or directory
/bin/ls: /usr/local/info/dir: No such file or directory
/bin/ls: /usr/local/share/gnupg/options.skel: No such file or directory
/bin/ls: /usr/local/share/gnupg/FAQ: No such file or directory
/bin/ls: /usr/local/share/gnupg/faq.html: No such file or directory
/bin/ls: /usr/local/share/locale/en@quot/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/en@boldquot/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/be/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/ca/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/cs/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/da/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/de/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/eo/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/el/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/es/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/et/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/fi/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/fr/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/gl/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/hu/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/id/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/it/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/ja/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/pl/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/pt_BR/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/pt/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/ro/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/ru/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/sk/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/sv/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/tr/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/zh_TW/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/share/locale/zh_CN/LC_MESSAGES/gnupg.mo: No such file or directory
/bin/ls: /usr/local/libexec/gnupg/gpgkeys_hkp: No such file or directory
/bin/ls: /usr/local/libexec/gnupg/gpgkeys_finger: No such file or directory
/bin/ls: /usr/local/libexec/gnupg/gpgkeys_http: No such file or directory
これで 再度 pkgtool を 利用して gnupg-1.4.2 をインストールする 事に なります。其後
# ls /var/log/packages/ | grep gnu
gnupg-1.4.2
gnuplot
あまり うまい 方法では ないが にゃんたろうの やって なんぼ の世界です。
にゃんたろう 拝!
2005年10月11日 (火) 23:49:19 JST