Uninstalling software in Linux

Angel Tsankov fn42551 at fmi.uni-sofia.bg
Tue Aug 15 02:11:05 PDT 2006


> Really simple way:
>
> Run ./configure and make as usual, but don't make install yet.
> Run touch /baseline (any file works) to set a baseline date.
> Run make install.
> Run find / -cnewer /baseline | sed -e '/^\/proc/d' -e '^\/sys/d' >
> /packagename.txt .  This will show all of the files that were updated
> in the make install.
>
> Then you can just run rm `cat /packagename.txt` to remove the package.

Hmm, this seams a very neat solution, but one need to be very careful when applying it in a multi-user environment (even in a 
multi-process one), so that files modified between 'make install' and 'find' do not get accidentally deleted. These could be user 
files (ones owned by non-root users) or even configuration or log  files of other programs already installed and running on the 
target system. 




More information about the lfs-support mailing list