[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: rm should implement option -p, --parents
From: |
Kamil Dudka |
Subject: |
Re: Feature request: rm should implement option -p, --parents |
Date: |
Tue, 7 Jul 2009 19:46:01 +0200 |
User-agent: |
KMail/1.9.7 |
On Tuesday 07 of July 2009 19:31:06 Ralf Wildenhues wrote:
> There is a reason it is not done: "make uninstall" cannot know, from
> looking at the installed tree alone, which set of directories existed
> before "make install" and which were created as part of it. Of those
> that existed before, the user might want them to be kept, for various
> reasons: they could have special permissions or ownership, or their
> presence could be required by some other program that needs them.
> The former (existence before "make install") could be somehow recorded
> at install time (e.g., in the build tree), but the latter (shared-ness
> between packages) really cannot be discovered automatically.
>
> HTH (just as a data point to this issue; I don't intend to argue about
> the merits of rm -p).
I am not sure but I think similar approach is used by Portage on Gentoo Linux.
It removes empty directories recursively on uninstall. The directories "which
should be kept for various reasons" are marked by an empty file ".keep"
within them and therefore not removed.
Kamil
- Feature request: rm should implement option -p, --parents, Guido Flohr, 2009/07/06
- Re: Feature request: rm should implement option -p, --parents, Pádraig Brady, 2009/07/06
- Re: Feature request: rm should implement option -p, --parents, Pádraig Brady, 2009/07/07
- Re: Feature request: rm should implement option -p, --parents, Guido Flohr, 2009/07/07
- Re: Feature request: rm should implement option -p, --parents, Jim Meyering, 2009/07/07
- Re: Feature request: rm should implement option -p, --parents, Ralf Wildenhues, 2009/07/07
- Re: Feature request: rm should implement option -p, --parents,
Kamil Dudka <=