purge a package without removing config or remaining files

2011-11-23 Thread Marc Auslander
The Debian version of the logitechmediaserver has gotten tangled up
with dpkg.

The package used to be squeezeboxserver.  They created a new package
named logitechmediaserver.  However, most of the config files were
retained with their old names.  Installing lms triggered a remove of
sbs, then used the existing config files - so it looked like an
upgrade.

The problem is that we can't now purge squeezeboxserver since it tries
to remove the config files now used by logitechmediaserver.

Any suggestions as to how to fix this.

Would hacking the postrm script in info work?  There is also a .list file - I 
don't
know if dpkg tries to delete those - if so I'd have to hack it as
well.  I think this would clean me up, but it's not an exportable solution.
-- 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/E1RTJZ6-0005Mj-CC@Aptiva



Re: purge a package without removing config or remaining files

2011-11-23 Thread Julien Claassen

Hello Marc!
  I believe your problem *shoud(TM)* be fixed by not purging but removing:
aptitude remove squeezeboxserver
or:
dpkg remove squeezeboxserver
  Not sure if the remove option is exactly the same for dpkg, but it should be 
and otherwise that could be easy to find out from the manpage. - It says, that 
remove is exactly there, to remove a package aka it's binariesand libs, but 
not its config files.

  Warmly yours
   Julien

=-=-=-=-=-=-=-=-=-=-=-=-
Such Is Life: Very Intensely Adorable;
Free And Jubilating Amazement Revels, Dancing On - FLOWERS!

==  Find my music at  ==
http://juliencoder.de/nama/music.html
.
If you live to be 100, I hope I live to be 100 minus 1 day,
so I never have to live without you. (Winnie the Pooh)


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: 
http://lists.debian.org/alpine.deb.2.00.232236180.25...@britney.spears.net



Re: purge a package without removing config or remaining files

2011-11-23 Thread Marc Auslander
Julien Claassen jul...@mail.upb.de writes:

 Hello Marc!
   I believe your problem *shoud(TM)* be fixed by not purging but removing:
 aptitude remove squeezeboxserver
 or:
 dpkg remove squeezeboxserver
   Not sure if the remove option is exactly the same for dpkg, but it
 should be and otherwise that could be easy to find out from the
 manpage. - It says, that remove is exactly there, to remove a package
 aka it's binariesand libs, but not its config files.
   Warmly yours
Julien

Thanks.  I was not clear enough.  It was automatically removed when
the new package was installed.  It now lurks in the configured state
waiting for me to accidently purge it and destroy my new
installation.  I'd like to get rid that risk.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/8762iatqqs@aptiva.optonline.net



Re: purge a package without removing config or remaining files

2011-11-23 Thread Stephen Powell
On Wed, 23 Nov 2011 17:31:55 -0500 (EST), Marc Auslander wrote:
 
 Thanks.  I was not clear enough.  It was automatically removed when
 the new package was installed.  It now lurks in the configured state
 waiting for me to accidently purge it and destroy my new
 installation.  I'd like to get rid that risk.

You might try renaming the config files temporarily, then purging
the old package, then renaming the config files back to their old
names.  Something like this:

 mv x.conf y.conf
 aptitude purge old-package-name
 mv y.conf x.conf

It will attempt to erase the config files during the purge, but it
will not find them, since they have been renamed.  If the missing
config files cause an error in the package purge (they shouldn't),
you can create dummy config files that it can happily erase.
Then, after the package is successfully purged, rename the files
back to the original names and you should be good to go.

-- 
  .''`. Stephen Powell
 : :'  :
 `. `'`
   `-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/285870848.350697.1322101055146.javamail.r...@md01.wow.synacor.com