dskvr / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

opkg should ask before removing modified configuration files #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When removing packages it would be nice if opkg asks whether to keep 
modified configuration files (overwritable with a switch, e.g. --keep-
config, or --remove-config, or something in that direction).

It happened to me several times that I spend some time configuring 
something, and upon removal of the package (because of e.g. temporary 
space constraints) I accidentially removed the configuration files, making 
the work undone.

This is especially nice when you are coming from the windows world, where 
99% of apps leave their stuff laying around after deinstallation, so you 
kind of grow to expect that ;-).

Original issue reported on code.google.com by jonas.go...@gmail.com on 14 Nov 2009 at 10:48

GoogleCodeExporter commented 8 years ago
As far as I can tell, opkg retains modified conf files by default.

If you are experiencing problems with this, its likely that the package itself 
has not speficied those configuration files in a 'conffiles' 
file in the control.tar.gz file within the opk. Thus it is an issue to be taken 
up with the package's maintainer.

Can you confirm that it is a problem with a particular package that you are 
installing/removing?

Original comment by graham.g...@gmail.com on 15 Nov 2009 at 3:36

GoogleCodeExporter commented 8 years ago
There was a bug when removing conf files for packages installed to an offline 
root or a non root dest. This has been fixed in 
r317.

Original comment by graham.g...@gmail.com on 16 Nov 2009 at 2:40

GoogleCodeExporter commented 8 years ago
Thanks. I just got to re-test it (had to compile an old toolchain), and noticed 
this 
already worked previously. I was redirected here from openwrt claiming the 
removal 
of config files were intentional, and reported it without testing it with a 
newer 
version again (my opkg was quite old). Silly me for trusting people's 
statements ;-).

Thank you for your quick response. At least it led to another bug found and 
squashed.

Original comment by jonas.go...@gmail.com on 16 Nov 2009 at 9:32