slackware中removepkg mysql

tengrid發表於2009-05-18

# 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等系統自帶的包則可以. 如下

 

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

# removepkg mysql

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

# ls -lht *mysql*
ls: *mysql*: No such file or directory

# ls -lht *sendmail*
-rw-r--r--    1 root     root         8.6k Jul  8  2002 sendmail-cf-8.12.4-i386-1

# removepkg sendmail

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

# 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

# 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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章