• Re: Is possible to avoid removal of certain files on package removal/pu

    From Johannes Schauer Marin Rodrigues@21:1/5 to All on Tue Jun 6 19:50:01 2023
    Hi Lorenzo,

    Quoting Lorenzo (2023-06-06 19:07:41)
    is there a way to mark a file shipped by a package so that dpkg does not remove it on package removal or purge? I need to test for and read from files that are shipped by one of my packages in postrm script, but the files are already gone at that stage..

    this list is for the development of dpkg itself and not about packaging questions. You can ask the debian-mentors list or irc channel for packaging related questions.

    I can also try to answer your questions privately off list, but in any case I think this sounds like an XY-question where you actually want to do something else than you are asking about. Please give more context for a better answer like:

    - which package is this about?
    - why do you need the files kept?
    - why are you not using a prerm maintainer script?

    Thanks!

    cheers, josch
    --==============‘77888994935434798=MIME-Version: 1.0
    Content-Transfer-Encoding: 7bit
    Content-Description: signature
    Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmR/cT4ACgkQ8sulx4+9 g+HwrRAAgjOhFboOSKGXd4O/+AJavi25qAjrYf2vP4m9zR38sCgJe3EYIc7ANAPv nqRVZCKisHqwg3PajoZTl0MLU95jUMVLd9zKAfp+W0ON6MU1P6Kjrz4+8xzWpyhb MTjbL04FcIPMuQSTnd9yer0R3Gb9RMb/Oj2xAu3JpTXCnILwlFh+RoMJTy4yX34f ISjC7JVjBzL/A4/gGjvf6lQeuk8zm3Qce0d2EcgF5I1UgNxDBSfv50VJ86RgCrMC WflQFaY22rGoQdyy+OLTQIlMlP//YypJlcVA9Os4gGwKBoeMCDc7IdBxyii55vb5 P0euBRfMTzOB7D9Uu+fNBqiZWUOkYrbgMeYFQVVpG2pp+2IWbG1HzcDPbNvdye5u o8bdC4jMz1WjokEq7Q/qyJpnC45NWvodadc7DZb+eXHyt8aFn7VVg+r4I1JDImXA sXqjyCv/RZGI3dC4VF19qqkC4u8NOenNLWUmH0/qGEUh2hnJsjeRWer2MTtgmBhe 6SsKIfzFuOArvSpDvkYD/SAPRexku0hNQ4HLA9Y/zYFWZeyIvaV0FWI03NNqwhTb aSbBT67qiDlv4ocHR4TGy6liP7OHWcNng503K7W2LlYGzc7qihydtFTlP9yf0Hcw 2a/F/83hv1M0AXqbaMwDklfS9+ckp3YEFy8r3mM1A91lqRjeDgI=
    =qReR
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)