ITPub博客

首页 > Linux操作系统 > Linux操作系统 > slackware中removepkg mysql

slackware中removepkg mysql

原创 Linux操作系统 作者:tengrid 时间:2009-05-18 19:39:25 0 删除 编辑

root@xxx:/etc# more slackware-version
Slackware 8.1

mysql4.1.10a是拉源码安装的,在/var/log/packages目录没有记录,不能通过removepkg方式uninstall,

而mysql-3.23.51-i386-1,sendmail-8.12.4-i386-1等系统自带的包则可以. 如下

 

root@xxx:/usr/local# /usr/local/mysql/bin/mysql -V
/usr/local/mysql/bin/mysql  Ver 14.7 Distrib 4.1.10a, for pc-linux-gnu (i686)

root@xxx:/var/log/packages# removepkg mysql

No such package: /var/log/packages/mysql. Can't remove.

root@xxx:/var/log/packages# ls -lht *mysql*
ls: *mysql*: No such file or directory

root@xxx:/var/log/packages# ls -lht *sendmail*
-rw-r--r--    1 root     root         8.6k Jul  8  2002 sendmail-cf-8.12.4-i386-1

root@xxx# removepkg sendmail

Removing package /var/log/packages/sendmail-8.12.4-i386-1...
Removing files:
  --> Deleting symlink /usr/bin/hoststat
  --> Deleting symlink /usr/bin/mailq
  --> Deleting symlink /usr/bin/newaliases
  --> Deleting symlink /usr/bin/purgestat
  --> Deleting symlink /usr/bin/sendmail
  --> Deleting symlink /usr/lib/sendmail
  --> /etc/mail/access.db.new no longer exists. Skipping.
  --> /etc/mail/access.new no longer exists. Skipping.
  --> /etc/mail/aliases.db.new no longer exists. Skipping.
  --> /etc/mail/aliases.new no longer exists. Skipping.
  --> Deleting /etc/mail/helpfile
  --> /etc/mail/sendmail.cf.new no longer exists. Skipping.
  --> Deleting /etc/mail/statistics
  --> /etc/mail/submit.cf.new no longer exists. Skipping.
  --> Deleting /etc/rc.d/rc.sendmail
  --> Deleting /usr/bin/praliases
  --> Deleting /usr/bin/rmail
  --> Deleting /usr/bin/vacation
  --> Deleting /usr/doc/sendmail-8.12.4/FAQ
  --> Deleting /usr/doc/sendmail-8.12.4/INSTALL
  --> Deleting /usr/doc/sendmail-8.12.4/KNOWNBUGS
  --> Deleting /usr/doc/sendmail-8.12.4/LICENSE
  --> Deleting /usr/doc/sendmail-8.12.4/PGPKEYS
  --> Deleting /usr/doc/sendmail-8.12.4/README
  --> Deleting /usr/doc/sendmail-8.12.4/RELEASE_NOTES
  --> Deleting /usr/doc/sendmail-8.12.4/faq.txt
  --> Deleting /usr/doc/sendmail-8.12.4/op/Makefile
  --> Deleting /usr/doc/sendmail-8.12.4/op/op.me
  --> Deleting /usr/doc/sendmail-8.12.4/op/op.ps
  --> Deleting /usr/man/man1/mailq.1.gz
  --> Deleting /usr/man/man1/newaliases.1.gz
  --> Deleting /usr/man/man1/vacation.1.gz
  --> Deleting /usr/man/man5/aliases.5.gz
  --> Deleting /usr/man/man8/editmap.8.gz
  --> Deleting /usr/man/man8/mail.local.8.gz
  --> Deleting /usr/man/man8/mailstats.8.gz
  --> Deleting /usr/man/man8/makemap.8.gz
  --> Deleting /usr/man/man8/praliases.8.gz
  --> Deleting /usr/man/man8/rmail.8.gz
  --> Deleting /usr/man/man8/sendmail.8.gz
  --> Deleting /usr/man/man8/smrsh.8.gz
  --> Deleting /usr/sbin/editmap
  --> Deleting /usr/sbin/mail.local
  --> Deleting /usr/sbin/mailstats
  --> Deleting /usr/sbin/makemap
  --> /usr/sbin/sendmail.new no longer exists. Skipping.
  --> Deleting /usr/sbin/smrsh
  --> Deleting /usr/share/sendmail/README.linux
  --> Deleting /usr/share/sendmail/linux.smtp.access.cf
  --> Deleting /usr/share/sendmail/linux.smtp.cf
  --> Deleting /usr/share/sendmail/linux.uucp.cf
  --> Deleting /var/log/setup/setup.sendmail
  --> Deleting empty directory /var/spool/mqueue/
WARNING: Unique directory /var/spool/clientmqueue/ contains new files
  --> Deleting empty directory /usr/doc/sendmail-8.12.4/op/
  --> Deleting empty directory /usr/doc/sendmail-8.12.4/
WARNING: Unique directory /etc/mail/ contains new files
root@xx:/usr/local#

root@xxx:/var/log/packages# more sendmail-cf-8.12.4-i386-1
PACKAGE NAME:     sendmail-cf-8.12.4-i386-1
COMPRESSED PACKAGE SIZE:     248 K
UNCOMPRESSED PACKAGE SIZE:     1030 K
PACKAGE LOCATION: /var/log/mount/slackware/n/sendmail-cf-8.12.4-i386-1.tgz
PACKAGE DEscrīptION:
sendmail-cf: sendmail-cf (configuration files for sendmail)
sendmail-cf:
sendmail-cf: These files are used to create sendmail.cf configuration files.  The
sendmail-cf: m4 macro processor is also required in order to make use of these
sendmail-cf: files.
sendmail-cf:
sendmail-cf: The files and documentation in /usr/share/sendmail should make it
sendmail-cf: possible to support virtually any mail configuration.  NOTE: You
sendmail-cf: probably won't need this package if you're planning to use one of the
sendmail-cf: sendmail.cf samples included in the sendmail package.
sendmail-cf:
FILE LIST:
./
usr/
usr/share/
usr/share/sendmail/
usr/share/sendmail/cf/
usr/share/sendmail/cf/README
usr/share/sendmail/cf/README.linux
usr/share/sendmail/cf/cf/
usr/share/sendmail/cf/cf/Build
usr/share/sendmail/cf/cf/Makefile
usr/share/sendmail/cf/cf/README
usr/share/sendmail/cf/cf/chez.cs.mc
usr/share/sendmail/cf/cf/clientproto.mc
usr/share/sendmail/cf/cf/cs-hpux10.mc
usr/share/sendmail/cf/cf/cs-hpux9.mc
usr/share/sendmail/cf/cf/cs-osf1.mc
usr/share/sendmail/cf/cf/cs-solaris2.mc
usr/share/sendmail/cf/cf/cs-sunos4.1.mc
usr/share/sendmail/cf/cf/cs-ultrix4.mc
usr/share/sendmail/cf/cf/cyrusproto.mc
usr/share/sendmail/cf/cf/generic-bsd4.4.cf
usr/share/sendmail/cf/cf/generic-bsd4.4.mc
usr/share/sendmail/cf/cf/generic-hpux10.cf
usr/share/sendmail/cf/cf/generic-hpux10.mc
usr/share/sendmail/cf/cf/generic-hpux9.cf
usr/share/sendmail/cf/cf/generic-hpux9.mc
usr/share/sendmail/cf/cf/generic-linux.cf
usr/share/sendmail/cf/cf/generic-linux.mc
usr/share/sendmail/cf/cf/generic-mpeix.cf
usr/share/sendmail/cf/cf/generic-mpeix.mc
usr/share/sendmail/cf/cf/generic-nextstep3.3.mc
usr/share/sendmail/cf/cf/generic-osf1.cf
usr/share/sendmail/cf/cf/generic-osf1.mc
usr/share/sendmail/cf/cf/generic-solaris.cf
usr/share/sendmail/cf/cf/generic-solaris.mc
usr/share/sendmail/cf/cf/generic-sunos4.1.cf
usr/share/sendmail/cf/cf/generic-sunos4.1.mc
usr/share/sendmail/cf/cf/generic-ultrix4.cf
usr/share/sendmail/cf/cf/generic-ultrix4.mc
usr/share/sendmail/cf/cf/huginn.cs.mc
usr/share/sendmail/cf/cf/knecht.mc
usr/share/sendmail/cf/cf/mail.cs.mc
usr/share/sendmail/cf/cf/mail.eecs.mc
usr/share/sendmail/cf/cf/mailspool.cs.mc
usr/share/sendmail/cf/cf/python.cs.mc
usr/share/sendmail/cf/cf/s2k-osf1.mc
usr/share/sendmail/cf/cf/s2k-ultrix4.mc
usr/share/sendmail/cf/cf/submit.cf
usr/share/sendmail/cf/cf/submit.mc
usr/share/sendmail/cf/cf/tcpproto.mc
usr/share/sendmail/cf/cf/ucbarpa.mc
usr/share/sendmail/cf/cf/ucbvax.mc
usr/share/sendmail/cf/cf/uucpproto.mc
usr/share/sendmail/cf/cf/vangogh.cs.mc
usr/share/sendmail/cf/cf/generic-nextstep3.3.cf
usr/share/sendmail/cf/cf/linux.smtp-rbl+.mc
usr/share/sendmail/cf/cf/linux.smtp-rbl.mc
usr/share/sendmail/cf/cf/linux.smtp.access.mc
usr/share/sendmail/cf/cf/linux.smtp.mc
usr/share/sendmail/cf/cf/linux.uucp.mc
usr/share/sendmail/cf/cf/config.mc
usr/share/sendmail/cf/domain/
usr/share/sendmail/cf/domain/Berkeley.EDU.m4
usr/share/sendmail/cf/domain/CS.Berkeley.EDU.m4
usr/share/sendmail/cf/domain/EECS.Berkeley.EDU.m4
usr/share/sendmail/cf/domain/S2K.Berkeley.EDU.m4
usr/share/sendmail/cf/domain/generic.m4
usr/share/sendmail/cf/domain/berkeley-only.m4
usr/share/sendmail/cf/feature/
usr/share/sendmail/cf/feature/accept_unqualified_senders.m4
usr/share/sendmail/cf/feature/accept_unresolvable_domains.m4
usr/share/sendmail/cf/feature/access_db.m4
usr/share/sendmail/cf/feature/allmasquerade.m4
usr/share/sendmail/cf/feature/always_add_domain.m4
usr/share/sendmail/cf/feature/authinfo.m4
usr/share/sendmail/cf/feature/bestmx_is_local.m4
usr/share/sendmail/cf/feature/bitdomain.m4
usr/share/sendmail/cf/feature/blacklist_recipients.m4
usr/share/sendmail/cf/feature/compat_check.m4
usr/share/sendmail/cf/feature/delay_checks.m4
usr/share/sendmail/cf/feature/dnsbl.m4
usr/share/sendmail/cf/feature/domaintable.m4
usr/share/sendmail/cf/feature/enhdnsbl.m4
usr/share/sendmail/cf/feature/generics_entire_domain.m4
usr/share/sendmail/cf/feature/genericstable.m4
usr/share/sendmail/cf/feature/ldap_routing.m4
usr/share/sendmail/cf/feature/msp.m4
usr/share/sendmail/cf/feature/limited_masquerade.m4
usr/share/sendmail/cf/feature/local_lmtp.m4
usr/share/sendmail/cf/feature/local_no_masquerade.m4
usr/share/sendmail/cf/feature/local_procmail.m4
usr/share/sendmail/cf/feature/lookupdotdomain.m4
usr/share/sendmail/cf/feature/loose_relay_check.m4
usr/share/sendmail/cf/feature/mailertable.m4
usr/share/sendmail/cf/feature/masquerade_entire_domain.m4
usr/share/sendmail/cf/feature/masquerade_envelope.m4
usr/share/sendmail/cf/feature/no_default_msa.m4
usr/share/sendmail/cf/feature/no垃圾广告ify.m4
usr/share/sendmail/cf/feature/nodns.m4
usr/share/sendmail/cf/feature/notsticky.m4
usr/share/sendmail/cf/feature/nouucp.m4
usr/share/sendmail/cf/feature/nullclient.m4
usr/share/sendmail/cf/feature/preserve_local_plus_detail.m4
usr/share/sendmail/cf/feature/preserve_luser_host.m4
usr/share/sendmail/cf/feature/promiscuous_relay.m4
usr/share/sendmail/cf/feature/queuegroup.m4
usr/share/sendmail/cf/feature/redirect.m4
usr/share/sendmail/cf/feature/relay_based_on_MX.m4
usr/share/sendmail/cf/feature/relay_entire_domain.m4
usr/share/sendmail/cf/feature/relay_hosts_only.m4
usr/share/sendmail/cf/feature/relay_local_from.m4
usr/share/sendmail/cf/feature/relay_mail_from.m4
usr/share/sendmail/cf/feature/smrsh.m4
usr/share/sendmail/cf/feature/stickyhost.m4
usr/share/sendmail/cf/feature/use_ct_file.m4
usr/share/sendmail/cf/feature/use_cw_file.m4
usr/share/sendmail/cf/feature/uucpdomain.m4
usr/share/sendmail/cf/feature/virtuser_entire_domain.m4
usr/share/sendmail/cf/feature/virtusertable.m4
usr/share/sendmail/cf/hack/
usr/share/sendmail/cf/hack/cssubdomain.m4
usr/share/sendmail/cf/m4/
usr/share/sendmail/cf/m4/cf.m4
usr/share/sendmail/cf/m4/cfhead.m4
usr/share/sendmail/cf/m4/proto.m4
usr/share/sendmail/cf/m4/version.m4
usr/share/sendmail/cf/mailer/
usr/share/sendmail/cf/mailer/cyrus.m4
usr/share/sendmail/cf/mailer/cyrusv2.m4
usr/share/sendmail/cf/mailer/fax.m4
usr/share/sendmail/cf/mailer/local.m4
usr/share/sendmail/cf/mailer/mail11.m4
usr/share/sendmail/cf/mailer/phquery.m4
usr/share/sendmail/cf/mailer/pop.m4
usr/share/sendmail/cf/mailer/procmail.m4
usr/share/sendmail/cf/mailer/qpage.m4
usr/share/sendmail/cf/mailer/smtp.m4
usr/share/sendmail/cf/mailer/usenet.m4
usr/share/sendmail/cf/mailer/uucp.m4
usr/share/sendmail/cf/ostype/
usr/share/sendmail/cf/ostype/aix3.m4
usr/share/sendmail/cf/ostype/aix4.m4
usr/share/sendmail/cf/ostype/aix5.m4
usr/share/sendmail/cf/ostype/altos.m4
usr/share/sendmail/cf/ostype/amdahl-uts.m4
usr/share/sendmail/cf/ostype/a-ux.m4
usr/share/sendmail/cf/ostype/bsd4.3.m4
usr/share/sendmail/cf/ostype/bsd4.4.m4
usr/share/sendmail/cf/ostype/bsdi.m4
usr/share/sendmail/cf/ostype/bsdi1.0.m4
usr/share/sendmail/cf/ostype/bsdi2.0.m4
usr/share/sendmail/cf/ostype/darwin.m4
usr/share/sendmail/cf/ostype/dgux.m4
usr/share/sendmail/cf/ostype/domainos.m4
usr/share/sendmail/cf/ostype/dynix3.2.m4
usr/share/sendmail/cf/ostype/freebsd4.m4
usr/share/sendmail/cf/ostype/freebsd5.m4
usr/share/sendmail/cf/ostype/gnu.m4
usr/share/sendmail/cf/ostype/hpux10.m4
usr/share/sendmail/cf/ostype/hpux11.m4
usr/share/sendmail/cf/ostype/hpux9.m4
usr/share/sendmail/cf/ostype/irix4.m4
usr/share/sendmail/cf/ostype/irix5.m4
usr/share/sendmail/cf/ostype/irix6.m4
usr/share/sendmail/cf/ostype/isc4.1.m4
usr/share/sendmail/cf/ostype/linux.m4
usr/share/sendmail/cf/ostype/maxion.m4
usr/share/sendmail/cf/ostype/mklinux.m4
usr/share/sendmail/cf/ostype/mpeix.m4
usr/share/sendmail/cf/ostype/nextstep.m4
usr/share/sendmail/cf/ostype/openbsd.m4
usr/share/sendmail/cf/ostype/osf1.m4
usr/share/sendmail/cf/ostype/powerux.m4
usr/share/sendmail/cf/ostype/ptx2.m4
usr/share/sendmail/cf/ostype/qnx.m4
usr/share/sendmail/cf/ostype/riscos4.5.m4
usr/share/sendmail/cf/ostype/sco-uw-2.1.m4
usr/share/sendmail/cf/ostype/sco3.2.m4
usr/share/sendmail/cf/ostype/sinix.m4
usr/share/sendmail/cf/ostype/solaris2.m4
usr/share/sendmail/cf/ostype/solaris2.ml.m4
usr/share/sendmail/cf/ostype/solaris2.pre5.m4
usr/share/sendmail/cf/ostype/solaris8.m4
usr/share/sendmail/cf/ostype/sunos3.5.m4
usr/share/sendmail/cf/ostype/sunos4.1.m4
usr/share/sendmail/cf/ostype/svr4.m4
usr/share/sendmail/cf/ostype/ultrix4.m4
usr/share/sendmail/cf/ostype/unixware7.m4
usr/share/sendmail/cf/ostype/unknown.m4
usr/share/sendmail/cf/ostype/uxpds.m4
usr/share/sendmail/cf/sh/
usr/share/sendmail/cf/sh/makeinfo.sh
usr/share/sendmail/cf/siteconfig/
usr/share/sendmail/cf/siteconfig/uucp.cogsci.m4
usr/share/sendmail/cf/siteconfig/uucp.old.arpa.m4
usr/share/sendmail/cf/siteconfig/uucp.ucbarpa.m4
usr/share/sendmail/cf/siteconfig/uucp.ucbvax.m4
install/
install/slack-desc
root@xxx:/var/log/packages

root@xxx:/var/log/removed_packages# ls
apache-1.3.24-i386-1  mysql-3.23.51-i386-1  openssh-3.2.3p1-i386-1  sendmail-8.12.4-i386-1

removepkg删除包的详细信息参考man removepkg

 

那么,如何彻底地uninstall所有与mysql有关的文件,目录呢?

看来只能找到所有相关的文件,目录,link并删除了.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/94384/viewspace-600311/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-05-18

  • 博文量
    136
  • 访问量
    378289