Apache Directory Project - [Installer] RPM Uninstall Experiment

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > May 2007 > [Installer] RPM Uninstall Experiment





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [Installer] RPM Uninstall Experiment
Ole Ersoy

2007-05-14, 7:11 pm

Well - I still need to do the actual experiment,
but here's how I would set it up, and I suspect
that just looking at this might be enough to figure
out why the current RPM only uninstalls the /etc/init.d/apacheds file,
in case this helps with the release process.

OK - First I would create a bogus spec file...

Then I would put something like this in it:
%files
%defattr(-,root,root)
/usr/local/bin/indent
%doc /usr/local/info/indent.info
%doc %attr(0444,root,root) /usr/local/man/man1/indent.1
%doc COPYING AUTHORS README NEWS

These are the files that I want to RPM to install.

Now RPM officially knows about the files to be installed, since I listed
them in them under the %files macro.

So since it knows about them, I would think it it would
remove them when I do

rpm -e bogus-package

I'm guessing that the ADS rpm
just copies the files to the file
system without officially declaring
them in the %files macro.

Hence they all have root permissions
and no uninstallee.

Cheers,
- Ole


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com