请大家看看这个,,那么没有make uninstall(注意这个不是make_uninstall)的源代码安装软件的卸载可以用make_uninstall
这里有下载http://www.ibiblio.org/pub/Linux ... nstall-2.0.8.tar.gz
下面是它的说明文件,很简单的,不想翻译啦.希望大家看得懂.不懂可以问..下面再介绍另一个源代码卸载软件.
===========================================================================
Make uninstall v2.0.8 Kent Robotti <robotti@godmail.com> 2/27/2002
This script is used to monitor a command like 'make install',
so a record of the install can be created, which will allow
you to completely remove the package from your system later.
Usually when you compile a package you do './configure ; make ; make install'.
Instead of the 'make install' step do 'mku', and choose
'Monitor' from the menu.
Example: ./configure ; make ; mku
You can see a listing for each installed package in
/var/log/uninstall/packages/package_name.
You can also create a database in "/var/log/uninstall/configure" with
the configure and make rules you want for a particular source package.
Run 'mku' and choose 'Cconfigure' then 'Create' from the menu, to create
the configure rules file.
For example, these are the configure and make rules i want
for the 'fetchmail' source package.
# Configure and make rules for 'fetchmail'.
./configure --prefix=/usr --disable-nls --enable-SDPS \
--enable-RPA --enable-NTLM --with-ssl=/usr/lib
make CFLAGS="-Os -march=i386 -Wall" LDFLAGS="-s"
# http://www.foo.com/home_page_for_package_source
# ftp://ftp.foo.com/pub/ftp_directory_for_package_source
Put a '\' at the end of each configure and make line if there's more than
one, except the last. You can put some notes after '#' if you want.
Then when you want to configure and make a package start 'mku',
and choose 'Configure' then 'Run' from the menu.
You'll have the option of creating a slackware tgz, debiam deb, rpm, or
generic x.mku.tgz package of the install, after the install or later
using /var/log/uninstall/packages/package_name as the guide.
The Monitor option isn't needed if you create a configure rules
file, and use the Configure option to Run it.
To install 'mku' run './INSTALL'.
If you want to compile installwatch.so, do this.
installwatch-0.6.2# make
Then you can put that installwatch.so in /usr/lib.
ATTENTION! If you have a "static" /bin/ln move it to /bin/sln, and
put a non static version in it's place.
# ldd /bin/ln
statically linked
If you have a freebsd system this means the same thing as "static".
# ldd /bin/ln
not a dynamic executable
The source for the installwatch.so program v0.6.3
used with make_uninstall, can be found here.
http://asic-linux.com.mx/~izto
The license for make_uninstall is GNU GPL.
=========================================================================== |