Hi <disclaimer> I am guessing on this </disclaimer> I would guess if you are using /usr/local/bin as the directory the problem is that apt doesn't see any one else using /usr/local/bin dpks -S /usr/local/bin return not found for me, so when you purge apt does what it is supposed to. if you are using .debs why not place the file in /usr/bin, and if there are alternatives then use the alternatives methods I guess the {...}/local/{...} is not meant for deb'ed programmes or libraries. try dpkg -S /usr/bin Alex On Wed, Jun 11, 2008 at 12:43:56PM -0700, michael@estone.ca wrote: > Hello, > Sorry this isn't exactly related to the AMD64 arch, but I thought > I would quickly ask here before trying debian-user. > > I created a custom .deb package with dpkg-deb -b mikesapp. > All my files and such (including the DEBIAN folder) live in mikesapp. > Running dpkg-deb -b creates my .deb file and all is good. > I install with dpkg -i mikesapp.deb. > > The program runs and works all good. > I can apt-get remove package, and everything is still happy and clean. > The main problem I have is when I apt-get --purge remove the package. > The --purge wants to delete all the parent directories from the > installed files. > For example: > > Lets say the custom package .deb will install files into > /usr/local/bin/mikesapp > > When I apt-get remove the package, the mikesapp folder and its contents > are deleted. If I apt-get --purge remove the package, it removes > mikesapp, plus tries to delete bin and local. > bin gets wiped since nothing else was in there, but local stays and > apt-get replies saying "not empty, so not removed". > > Is this normal when building custom .deb packages via dpkg-deb? > Am I missing something when building the package? > > Thanks-you, > > Mike > > > > > -- > To UNSUBSCRIBE, email to debian-amd64-REQUEST@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org > > -- "I think if you know what you believe, it makes it a lot easier to answer questions. I can't answer your question." - George W. Bush 10/04/2000 Reynoldsburg, OH In response to a question about whether he wished he could take back any of his answers in the first debate.
Attachment:
signature.asc
Description: Digital signature